Repository navigation
chore: merge upstream question stack (coder/coder#31312) - #17
Conversation
Outside plan mode, root chats created from the web UI get an async ask_user_question. The call returns at once with an "async" marker, the agent keeps working, and the answer arrives later as a user message whose first line names the call. The chat owner gets one web push per question, sent only after the step that holds the result commits. Options now carry only a label: the schema asks for one short, complete answer and drops the description field. Plan mode and chats created through the API keep the blocking tool. Refs CODAGT-1460
…label-only question options without a placeholder
…label-only question options with a story
… sees The paragraph said the answer names the tool call, which only holds once the web UI adds the call line later in the stack, and it described the tool's call mechanics instead of what happens in the chat.
…raph This page's tools table and the paragraph above name each tool, so the paragraph about ask_user_question names it too. The only wrong claim was that the answer names the tool call, which the web UI does not do until later in the stack.
…mbered one-line answers The options are now one complete answer each (coder#31310), so the form gives each answer its own numbered row that number keys pick, renders the question as Markdown, and keeps unsent answers per call in local storage so a reload does not lose them. This is the net change of mike/codagt-1460-question-options at 922760c, collapsed into one commit to rebase it onto main without replaying the merges from the layer below.
…their call line An async answer's first line names the ask_user_question call for the model. The bubble, the queue row, Copy, Edit and the prompt history now leave that line out, and an edit adds it back on send so the answer still answers its question. This is the net change of mike/codagt-1460-async-answer-messages at 7518ffb, rebased onto queued-message editing (coder#29555). The editing hook now loads history and queued targets through one path, so the call line is split off where a target loads and kept on the loaded target. Queued edits therefore hide and restore it too, and the guard that keeps an edit opened during an earlier send uses the hook's existing load counter.
…e agent works An async question does not end the turn, so its card stays answerable while the chat streams, and closes once a newer valid question replaces it. Answers are matched to their call by occurrence, because providers can reuse a call ID in a later turn. This is the net change of mike/codagt-1460-async-ask-user-question at 95dfb69, collapsed into one commit to rebase it onto main without replaying the merges from the layer below.
The agent keeps working after an async question, so its transcript card scrolls away under new output. While the question is open, its answer form moves to a collapsible panel above the chat input, and sending an answer returns focus to the chat input. This is the net change of mike/codagt-1460-question-dock at c455707, collapsed into one commit to rebase it onto main without replaying the merges from the layer below. It includes the focus handling from the closed coder#31372.
… sees The tools table said dashboard questions never stop work, which is not true in plan mode. The section led with the tool name instead of what the reader sees, and repeated the API caveat that the tools section already states.
This page names ask_user_question in its tools table and in the plan mode section, so the section about the same tool outside plan mode names it too.
…an mode This PR exposes ask_user_question outside plan mode in dashboard chats, so the tools table and the plan mode note no longer call it plan-mode-only. The architecture page names Coder as the actor.
…-question-options
…op comments that restate the code Deletes doc comments that only repeat a name or describe the code below them, and separates the form's setup steps with blank lines.
…0-async-answer-messages
…op asyncAnswer comments that restate the code
…t-1460-async-ask-user-question # Conflicts: # site/src/pages/AgentsPage/components/ChatElements/tools/AskUserQuestionTool.tsx
…ts and split long blocks Deletes doc comments that describe the code below them and separates the logical steps in the promote, timeline, and question form blocks with blank lines.
…agt-1460-question-dock # Conflicts: # site/src/pages/AgentsPage/components/ChatElements/tools/AskUserQuestionTool.tsx # site/src/pages/AgentsPage/components/ChatElements/tools/Tool.tsx
…pse controls Names the custom-answer field by what the reader sees, says the blocked-turn note comes from the tool's instructions, and says which chats count as dashboard chats.
…rate steps in the tool block renderer
…0-async-answer-messages
…rate steps in deriveMessageDisplayState
…t-1460-async-ask-user-question
…rate steps in upsertDurableMessages
…agt-1460-question-dock
|
@codex review |
|
@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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 58fb51f3ef
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
UATRun through Coder Agents on the local deployment, with a dev server built from this branch inside a
Non-blocking findings: all four are upstream behavior as written. Under the fork rule, the fork does not patch them.
None of them comes from the merge. The head is unchanged since the tested SHA.
|
|
Part of #6.
Merges the upstream question stack into fork
mainas upstream wrote it, so W5 and later workspaces can build on asyncask_user_questionand the question dock. Merge with a merge commit (not squash), like sync PRs, so a later merge of the same upstream branch brings only new commits.Merged head:
mike/codagt-1460-question-dockat3ffaffd9d57db97e3396226dd6c3cde21cabda76(fetched 2026-11-08 23:01 CET).mike/codagt-1460-chatd-async-ask9e7a2487ebmike/codagt-1460-question-options8435c136a8mike/codagt-1460-async-answer-messagesdb1851b11bmike/codagt-1460-async-ask-user-questionb162a9c818mike/codagt-1460-question-dock3ffaffd9d5Each listed head is an ancestor of the merged head. The branch forked from upstream
mainate746555e3a, which forkmainalready contains, so the merge brings only the stack's 28 commits.coderd/x/chatd(8 files),site/src(47 files) anddocs/coder-agents(2 files); nocoderd/databasefile changes, sochatdmig routehas nothing to add.ClientType == ui).Validation on the merge commit:
go build ./coderd/x/chatd/...,go test ./coderd/x/chatd/ ./coderd/x/chatd/chattool/against Postgres 17 (pass),biome check,tsc -p .and Vitest for the 12 touched test files (419 tests, pass).