Repository navigation
transcript: doperpowers' ask tool is a question row (desk DC9, shared edit 1) - #26
Merged
Merged
Conversation
… is a question row The desk's DC9 (§9.5): the ask mod's tool is classified beside AskUserQuestion, so its call draws as a question row and stays in view when its turn folds and in the report. A plugin tool stores no structured answers (its toolUseResult is its text), so the row reads them back from the engine's AskUserQuestion summary the call returned; an async ask's return answers nothing yet, and the human's decline, which the engine stores inside <tool_use_error> for this tool, reads Skipped rather than as a refusal.
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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Part of the desk's DC9 (the session view): the first of the two shared MAWS edits in composite §9.5 (
docs/doperpowers/specs/2026-10-15-desk-design.md, child DC9; execution documentdocs/doperpowers/plans/2026-10-17-desk-dc9-session-view.md, task S1). It changes the MAWS desktop app as well as the desk, so it gets its own review and lands on its own.What
MAWS's transcript treated only
AskUserQuestionandmcp__maws__askas questions. A question asked through doperpowers' ask tool,mcp__doperpowers__AskUserQuestion(the ask mod), was folded into the working record. It now draws as a question row and stays in view when its turn folds in the report.This takes more than one table entry. The ask mod's input matches the built-in's, but its result does not: a plugin tool stores no structured answers, and its
toolUseResultis the result text, or null. So a newtranscript/model/ask-mod.tsreads the answers back out of the engine's own AskUserQuestion summary text, matching them to the call's questions in order:<tool_use_error>for this tool) both read as Skipped.answeredevent.Files:
classify.ts:ASK_MOD_TOOLand its table entry.ask-mod.ts(new): the reader.derive.ts: the question row'stool.resultbranch.All edits are tagged DC9. The reader lives in its own module, so classify.ts does not import it; that import would create a module-load cycle (classify → ask-mod → cells → classify).
The built-in
AskUserQuestionandmcp__maws__askpaths are unchanged.Validation Evidence
pnpm exec vitest run src/renderer/src/transcript/model/{ask-mod,classify,derive}.test.ts src/renderer/src/owner/report/project.test.ts src/renderer/src/transcript/view/rows/requests.test.tsxgives 5 files, 140/140, no warnings. The new tests cover both summary forms, answers containing quotes, Skipped, async, decline, a refusal, the row staying at level 0 of a folded marked turn, andQuestionRowrendering the answers.pnpm exec vitest run --project renderergives 5535 passed and 1 skipped.pnpm --filter desk-web testgives 423/423.pnpm typecheckexits 0, and eslint is clean on the 8 changed files.scripts/ci-gate.sh /tmp/desk-ask-classify --gates static,unitran as run 39045490193: static success, unit success.Unresolved Review Findings
None.
Residue
deriveTurnworks one turn at a time. The desk fills it from the log. The desktop app could read the delivery row in a later pass.