Skip to content

fix(plugin): userConfig enums + sensitive flags + per-integration toggles (v2.0.5)#182

Merged
auroracapital merged 2 commits intomainfrom
fix/userconfig-enums-and-sensitive
May 1, 2026
Merged

fix(plugin): userConfig enums + sensitive flags + per-integration toggles (v2.0.5)#182
auroracapital merged 2 commits intomainfrom
fix/userconfig-enums-and-sensitive

Conversation

@auroracapital
Copy link
Copy Markdown
Collaborator

@auroracapital auroracapital commented May 1, 2026

Summary

Plugin settings UI was rendering every option as a raw text input. Three fixes:

  1. Enums for fields with finite known value spaces: fix_model, notify_channel, aws_region, max_fixes_per_hour, task_reminder_threshold, watcher_timeout_seconds, doppler_config.
  2. sensitive: true on 22 credential fields so the UI masks them.
  3. 25 per-integration *_enabled toggles so users explicitly opt in to each integration. Same pattern as deploy_fix_enabled, recap_marquee_enabled. Covers all of: telegram, discord, pushover, ntfy, sentry, linear, datadog, newrelic, otel, doppler, klaviyo, meta_ads, ga4, gsc, shopify, shipbob, bland_ai, elevenlabs, groq, stripe, revenuecat, postnl, dpd, ups, fedex.

Remaining text inputs are user-specific identifiers (Sentry org slug, Linear team key, store URLs, account/customer IDs) with no enumerable value space — freeform text is correct for those.

Bumps marketplace.json + plugin.json to 2.0.5.

Follow-up not in this PR

Display masked *****abc1 for credentials already in keychain/Doppler/prefs but not yet in Claude Code userConfig. Requires a bin/ops-credentials-sync script that reconciles external stores → userConfig at install time. Separate PR.

Test plan

  • All enum fields render as picker
  • All sensitive fields masked
  • 29 boolean toggles total (4 pre-existing + 25 new)
  • CI green

Note

Low Risk
Primarily metadata changes to plugin.json that affect the settings UI (picklists, masking, and new opt-in booleans) with minimal runtime impact; main risk is mis-specified config defaults/enums altering how users configure integrations.

Overview
Bumps the plugin version to 2.0.5 in both the marketplace manifest and plugin.json, and documents the release in CHANGELOG.md.

Improves the plugin settings UX by adding enum picklists for several finite-value userConfig fields, marking credential-like fields as sensitive so they’re masked in the UI, and introducing per-integration *_enabled boolean toggles (default false) so each integration is explicitly opt-in.

Reviewed by Cursor Bugbot for commit 36cc482. Bugbot is set up for automated code reviews on this repo. Configure here.

…bled toggles

Plugin settings UI rendered every option as a raw text input, including
credentials and finite-value selectors. Three fixes:

1. Added `enum` to finite-value fields:
   - fix_model: opus|sonnet|haiku
   - notify_channel: macos|ntfy|pushover|discord|telegram|none
   - aws_region: 16 commonly-used regions
   - max_fixes_per_hour: 1|3|5|10
   - task_reminder_threshold: 5|10|20|50
   - watcher_timeout_seconds: 300|600|900|1800|3600
   - doppler_config: dev|stg|prd|ci

2. Marked 22 credential fields `sensitive: true` so the UI masks them:
   Telegram api_hash/session, Klaviyo, Meta Ads, Shopify admin, ShipBob,
   Bland AI, ElevenLabs, Groq, Stripe, RevenueCat, Datadog, New Relic,
   Pushover, Discord bot/webhook, Doppler token, DPD password, UPS+FedEx
   client secrets.

3. Added 25 per-integration *_enabled boolean toggles so users explicitly
   opt in to each integration before the related credential fields matter.
   Same pattern as deploy_fix_enabled, recap_marquee_enabled. Covers:
   telegram, discord, pushover, ntfy, sentry, linear, datadog, newrelic,
   otel, doppler, klaviyo, meta_ads, ga4, gsc, shopify, shipbob, bland_ai,
   elevenlabs, groq, stripe, revenuecat, postnl, dpd, ups, fedex.

Remaining text inputs are user-specific identifiers (Sentry org slug,
Linear team key, store URLs, account/customer IDs) with no enumerable
value space — freeform text is correct for those.

Bumps marketplace.json + plugin.json to 2.0.5.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 1, 2026

Warning

Rate limit exceeded

@auroracapital has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 21 minutes and 40 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a9353dc7-339f-4ae0-b1c9-231bb652011e

📥 Commits

Reviewing files that changed from the base of the PR and between e234bf4 and 36cc482.

📒 Files selected for processing (3)
  • .claude-plugin/marketplace.json
  • claude-ops/.claude-plugin/plugin.json
  • claude-ops/CHANGELOG.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/userconfig-enums-and-sensitive

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 21 minutes and 40 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

@auroracapital auroracapital merged commit 866b772 into main May 1, 2026
8 checks passed
@auroracapital auroracapital deleted the fix/userconfig-enums-and-sensitive branch May 1, 2026 05:46
Comment on lines 513 to +519
"type": "string",
"sensitive": true,
"default": ""
},
"dhl_parcel_key": {
"title": "DHL Parcel NL API Key",
"description": "API key from My DHL Parcel \u2192 User settings \u2192 API settings. Paired with dhl_parcel_user_id.",
"description": "API key from My DHL Parcel User settings API settings. Paired with dhl_parcel_user_id.",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The doppler_config field's default value "" is not included in its enum list, which will cause a schema validation failure for default configurations.
Severity: HIGH

Suggested Fix

To resolve the schema inconsistency, add the empty string "" to the enum array for the doppler_config field. This will make the default value a valid choice according to the schema.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: claude-ops/.claude-plugin/plugin.json#L513-L519

Potential issue: The `doppler_config` field in the `plugin.json` configuration schema
specifies a default value of `""` (an empty string). However, the same field has an
`enum` constraint that only allows the values `["dev", "stg", "prd", "ci"]`. The default
value is not a member of the allowed enum values, making the schema internally
inconsistent. Any plugin host that validates the configuration against this schema will
reject the default value, likely causing errors for users who have not explicitly
configured a Doppler environment, which is the default state as `doppler_enabled`
defaults to `false`.

Did we get this right? 👍 / 👎 to inform future reviews.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.

Reviewed by Cursor Bugbot for commit 36cc482. Configure here.

"sensitive": false,
"default": ""
"default": "",
"enum": ["dev", "stg", "prd", "ci"]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enum missing empty default for optional doppler_config field

Medium Severity

The doppler_config field has "default": "" but the enum is ["dev", "stg", "prd", "ci"]. The empty string default is not a valid enum value. Since Doppler is optional (and doppler_enabled defaults to false), newly installed users will have an empty value that doesn't match any enum option. The UI picker cannot represent the current "not configured" state, and schema validation may reject the default.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 36cc482. Configure here.

"min": 0,
"max": 20
"max": 20,
"enum": [1, 3, 5, 10]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enum excludes documented zero value for disabling fixes

Medium Severity

The max_fixes_per_hour field has "min": 0 and documentation stating "range 0..20", but the new enum is [1, 3, 5, 10]. This removes the ability to set 0, which is a documented safety mechanism to completely disable auto-fix dispatches while keeping monitoring active. The enum also caps at 10 despite "max": 20 being specified.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 36cc482. Configure here.

auroracapital added a commit that referenced this pull request May 2, 2026
…release (#199)

The v2.0.5 → v2.0.9 patch series shipped meaningful features (multi-workspace
Slack #195, /ops:credentials audit #184, ops-ci current-state filter #196,
telegram preflight #185, userConfig schema upgrades #182). Per semver these
should have been a minor bump. This release retroactively rolls them up
into v2.1.0 with a single coherent CHANGELOG entry.

No code changes — only:
- plugin.json: 2.0.9 → 2.1.0
- CHANGELOG.md: new [2.1.0] entry consolidating Added/Fixed/Notes for the patch series
- README header + What's-new section: refer to v2.1.0
- 11 docs/*.md badges + agents-reference subtitle + migration latest-stable note: v2.0.9 → v2.1.0

Marketplace pin (.claude-plugin/marketplace.json) bumped in follow-up PR.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant