Repository navigation
fix(agent): isolate qodercli from inherited SDK mode - #242
Conversation
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. |
|
Validation record:
This confirms that the adapter remains on its existing ordinary JSON protocol while being isolated from SDK mode inherited from the parent process. |
|
Follow-up validation after commit
Risk review:
|
Summary
Prevent the built-in qodercli adapter from inheriting
QODER_AGENT_SDK_ENTRYPOINTfrom SDK-hosted parent processes such as Qoder Work. Without this isolation, nested ordinary qodercli commands are misclassified as Agent SDK sessions and fail withsdk_invalid_args.Related issues
Closes #240
Changes
QODER_AGENT_SDK_ENTRYPOINTfor version checks, inline and file/stdin runs, resumed sessions, and MCP remove/add commandsTest plan
make testpassesmake verifypasses (fmt + vet + lint)make buildpassesNotes for reviewers
The adapter intentionally remains on qodercli's ordinary
-p --output-format jsonprotocol. Merely switching tostream-jsonwould be incomplete because genuine Agent SDK mode also requires structured stdin, initialization/control messages, and an SDK authentication payload.