Repository navigation
fix(miro): start without a token and fail fast at first use - #5211
Conversation
An unset miro_api_token showed as an error in the /plugin menu because the option was
required and the server exited at startup. Drop required (keep sensitive) and start the
server with clients that throw one setup error naming `/plugin configure
miro@melodic-software`. A missing variable, an empty string, and the unexpanded
`${user_config.miro_api_token}` text all count as unset. Behavior with a token is unchanged.
Regenerates dist/index.min.js. Bumps miro to 0.4.14.
Refs #5208
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01H4pw3AKPP9sNePN5qwf9jL
|
PR body contract — issue linkage This PR body does not yet satisfy the issue-linkage contract:
Edit the body and this comment updates itself on the next run. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Claude finished @kyle-sexton's task in 2m 56s —— View job Security review complete
No security issues found. Reviewed the token-handling change end to end (this PR's actual security-relevant surface):
Net effect is a small security improvement: previously a required-but-possibly-empty token could reach No CRITICAL / IMPORTANT / SUGGESTION findings to report. |
|
Claude finished @kyle-sexton's task in 5m 41s —— View job Code review complete
SummaryReviewed the diff ( Two inline findings on documentation left inconsistent with the fix itself (posted on the PR):
One cross-file finding with no changed line to anchor it to:
Everything else (bundle regeneration, version bump, CHANGELOG entry, |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ad1c7eca41
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…d-in The setup skill no longer reports a token as supplied from tool presence, since the server now starts and lists tools without one; verify-api detects the unset state and routes to /plugin configure. The manifest description and README lead-in no longer frame the token as required to enable. docs/catalog.md regenerated. Refs #5208 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01H4pw3AKPP9sNePN5qwf9jL
|
Claude finished @kyle-sexton's task in 1m 52s —— View job Security review complete
No security issues found. Reviewed the full diff at HEAD
No instruction-surface deletions (no guardrail, check step, or allow/deny rule was removed or narrowed by this diff) and no GitHub Actions changes in scope. |
|
Claude finished @kyle-sexton's task in 2m 13s —— View job Code review complete (
|
Summary
An unset
miro_api_tokenshowed as an error in the/pluginmenu (required: true, and the server exited at startup). Now:plugin.json:requireddropped frommiro_api_token(stillsensitive); description corrected./plugin configure miro@melodic-software, plus the token URL and theMIRO_API_TOKENalternative. Missing variable, empty string, and the literal${user_config.miro_api_token}all count as unset. The change is inserver/src/miro-client.ts(throwing client proxies instead ofprocess.exit(1)), so no wrapper script.mirobumped 0.4.13 to 0.4.14;dist/index.min.jsregenerated withnpm run bundle.package-lock.jsonuntouched. The vault-exec README recipe no longer needs a placeholder value.Refs #5208
Verification run
npm run typecheck,npm test(7 files, 45 tests, includes starting the committed bundle over stdio with each of the three unset shapes and asserting the guidance error, plus a mocked-API token-set case): pass.npm run verify-bundle: dist matches source.npm run lint: no errors (one existing biome schema-version info).scripts/check-changelog-parity.sh --checkand--check-bump origin/main: pass.scripts/validate-plugins.sh,scripts/validate-plugin-contracts.mjs: pass.markdownlint-cli2on the three changed markdown files: 0 issues.Not verified
The
/pluginmenu and/mcpwere not tested live. Whether droppingrequiredclears the Errors-tab row, and what${user_config.*}becomes in MCPenvwhen unset, are undocumented; the server guards all three shapes regardless. Close #5208 only after checking/pluginon a live install with miro enabled and no token.🤖 Generated with Claude Code
https://claude.ai/code/session_01H4pw3AKPP9sNePN5qwf9jL