Repository navigation
fix(opencode-plugin): support separate management read token - #7885
diegosouzapw merged 5 commits into
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Code Review
This pull request introduces an optional managementReadToken configuration to the OmniRoute OpenCode plugin. This token is used specifically for management-plane catalog reads (such as combos, pricing, and providers) to support least-privilege deployments, while inference requests continue to use the primary apiKey. The changes include updates to the options schema, cache key generation, provider and config hooks, documentation, and a comprehensive suite of unit tests verifying the token's isolation and fallback behavior. There are no review comments, so I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
Addressed both Important review findings in 4d09fff:
Validation: Prettier, package build, full 269-test package suite, |
|
Fixed the remaining path-prefix auth finding in The fetch interceptor now derives its exact allowed inference paths from the configured base URL pathname after normalizing it to Validation:
|
…bullet Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
161de7d
into
cheaper-inference:release/v3.8.49
|
Merged — thanks @RaviTharuma! The separate management-read-token scoping is a clean addition, and it correctly keeps the server-facing |
…-inference#7885) * fix(opencode-plugin): separate management read token * fix(opencode-plugin): scope inference auth and snapshots * fix(opencode-plugin): scope auth to base path * docs(changelog): format opencode management-read-token fragment as a bullet Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com> --------- Co-authored-by: Ravi Tharuma <RaviTharuma@users.noreply.github.com> Co-authored-by: Diego Rodrigues de Sa e Souza <diegosouza.pw@gmail.com> Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
…-inference#7885) * fix(opencode-plugin): separate management read token * fix(opencode-plugin): scope inference auth and snapshots * fix(opencode-plugin): scope auth to base path * docs(changelog): format opencode management-read-token fragment as a bullet Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com> --------- Co-authored-by: Ravi Tharuma <RaviTharuma@users.noreply.github.com> Co-authored-by: Diego Rodrigues de Sa e Souza <diegosouza.pw@gmail.com> Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
Summary
managementReadTokento@omniroute/opencode-plugin/api/combos, auto combos, pricing/enrichment, compression metadata, and providers)/v1/models, inference/chat, and generated providerapiKeyon the OpenCode inference credentialapiKeyfallback when the option is absentmcpAutoEmittoken selection independent and include both credentials in the catalog cache identityTests
npm run build(@omniroute/opencode-plugin)npm test(268 passing)npx tsc --noEmitCloses #7884