Repository navigation
feat(coderd/x/chatd): give API root chats the async ask_user_question - #206
Conversation
|
@codex review
|
Codex Review Summary: ✅ CompletedThis 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. |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Merged as a squash of head
|
A root chat created by an API client got no
ask_user_questiontool outside plan mode.turn_environment.goadds the async tool only for UI client chats, so an API root could not ask its owner anything. Withfork-nested-subagentson,appendForkToolsincoderd/x/chatd/fork_tools.gonow adds the async tool to every root chat that is not an explore chat and does not already haveask_user_question. The owner answers in the web UI, and the turn continues without waiting, as it does for UI roots.turn_environment.gois unchanged. UI roots still get the tool there, and plan mode keeps its blocking tool, because the new code skips a turn that already has the tool.TestDescendantQuestionTurnToolscovers an API root (async tool), a plan-mode root (blocking tool only), an explore chat (no tool) and the experiment off (no tool). If the new append is removed through a-overlay, the API root case fails.docs/fork/pstack-adapter.mddescribes the API root tool and has updatedfork_tools.goline references.Part of #4