feat: add session account list and switch commands#7
Open
0xYiliu wants to merge 1 commit intodkraemerwork:mainfrom
Open
feat: add session account list and switch commands#70xYiliu wants to merge 1 commit intodkraemerwork:mainfrom
0xYiliu wants to merge 1 commit intodkraemerwork:mainfrom
Conversation
Why: - Users need explicit session-scoped commands to inspect configured OpenAI accounts and switch the current session to a specific account - The plugin needed session context tracking so these commands can resolve the active session and update the correct binding What: - Added codex-account-list and codex-switch-account commands and registered them as primary tools - Added session context tracking to map session IDs to prompt cache keys for session-scoped account operations - Added account lookup helpers and tests covering account commands, session context, and runtime fetch behavior Impact: - Users can list configured accounts and switch the current session to a selected OpenAI account - Session-scoped account binding now has the context needed for command-driven switching
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.
Summary
codex-account-listto show configured OpenAI accounts for the current sessioncodex-switch-accountto switch the current session to a selected accountprompt_cache_keycontext so session-scoped switching can update the right bindingWhy
opencode-openai-multi-authalready supports multiple accounts, but there was no session-scoped command flow to inspect or switch the account used by the current session. This change adds those commands and the supporting session context needed to make them work reliably.Validation
npm testnpm run build