[codex] Persist production token batch group flag#515
Merged
Conversation
jjcc123312
marked this pull request as ready for review
July 23, 2026 14:31
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.
Important
This is a focused production-configuration follow-up to #481.
📝 变更描述 / Description
Problem and evidence
PR #481 was deployed successfully, but the production console still hid the batch token-group action. The public
/api/statusresponse showedtoken_batch_group_enabled: falsebecause the feature flag intentionally defaults to false and the production deploy workflow did not persist an enabled value.The production rollout has now completed safely: all Redis-sharing runtimes run the compatible code, old revisions drained beyond the 5-second quota flush interval and 60-second token-cache TTL, and
newapi-consoleis serving the enabled capability at 100% traffic.Scope and design
TOKEN_BATCH_GROUP_ENABLED=truein thedeploy-consolejob.gcloud --update-env-varspayload on every future console revision..env.exampledefault offalse.Impact and risks
This changes only production console deployment configuration and rollout documentation. It does not change Go runtime behavior, database schema, Redis data, router deployment, or website deployment. The live console flag is already enabled out of band, so merging this PR prevents future console deploys from losing that state.
Multi-node safety remains unchanged: the cache protocol was deployed fleet-wide before the flag was enabled.
🚀 变更类型 / Type of change
🔗 关联任务 / Related Issue
✅ 提交前检查项 / Checklist
git diff --check和生产验证均通过。📸 运行证明 / Proof of Work
newapi-console-batchgroup-e62d0108e3c6, 100% traffic.https://console.flatkey.ai/api/status:token_batch_group_enabled: true./keysUI: selecting a token shows the更新分组bulk action.newapi-router-20260723-130619-e62d0108e3c6.git diff --checkpassed.Deployment recommendation
token_batch_group_enabled: true; do not approve a router job solely for this PR.