fix(mcp): scope decision-pack cache to auth token - #314
Merged
JSONbored merged 2 commits intoJun 2, 2026
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gittensory-ui | ed9c7bc | Commit Preview URL Branch Preview URL |
Jun 02 2026, 05:24 PM |
JSONbored
deleted the
codex/propose-fix-for-contributor-authorization-bypass
branch
June 2, 2026 17:25
Closed
12 tasks
This was referenced Jul 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
decisionPackAuthCacheKey()and importcreateHashfromnode:crypto.authCacheKeyin the cache filename key and stored cache metadata and require it duringreadDecisionPackCache()andisCompatibleDecisionPackCacheEntry()checks so entries are bound to the current token.authCacheKey).test/unit/mcp-cli.test.tsto assert cached entries containauthCacheKeyand add a regression test that verifies a different local token will not reuse an existing cache on a 429 fallback.Testing
git diff --check && npm run typecheckand the typecheck completed successfully.npx vitest run test/unit/mcp-cli.test.ts -t "decision-pack cache"and the updated decision-pack cache tests passed.npx vitest run test/unit/mcp-cli.test.ts -t "ignores incompatible"and the related cache/clear tests passed after adjusting test timeouts/expectations.npm run test:unitinvocation was previously interrupted by an unrelated long-running agent process, but the targeted cache test runs and typecheck above succeeded.Codex Task