Skip to content

transcript: doperpowers' ask tool is a question row (desk DC9, shared edit 1) - #26

Merged
SSFSKIM merged 2 commits into
masterfrom
desk-ask-classify
Oct 17, 2026
Merged

SSFSKIM merged 2 commits into
masterfrom
desk-ask-classify

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 17, 2026

Copy link
Copy Markdown
Owner

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 document docs/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 AskUserQuestion and mcp__maws__ask as 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 toolUseResult is the result text, or null. So a new transcript/model/ask-mod.ts reads the answers back out of the engine's own AskUserQuestion summary text, matching them to the call's questions in order:

  • Answered: the answers are read from that summary.
  • "The user did not answer" and a decline (wrapped in <tool_use_error> for this tool) both read as Skipped.
  • Async: the answer arrives later in another turn, so the row stays "Not answered". The desk overlays the log's answered event.
  • Other refusals: the row keeps the existing path that shows the error.

Files:

  • classify.ts: ASK_MOD_TOOL and its table entry.
  • ask-mod.ts (new): the reader.
  • derive.ts: the question row's tool.result branch.

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 AskUserQuestion and mcp__maws__ask paths are unchanged.

Validation Evidence

  • Focused tests, under the slot: 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.tsx gives 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, and QuestionRow rendering the answers.
  • Renderer project: pnpm exec vitest run --project renderer gives 5535 passed and 1 skipped. pnpm --filter desk-web test gives 423/423. pnpm typecheck exits 0, and eslint is clean on the 8 changed files.
  • Gate: scripts/ci-gate.sh /tmp/desk-ask-classify --gates static,unit ran as run 39045490193: static success, unit success.
  • Review: an independent review (doperpowers reviewer-medium) found nothing material. It confirmed the built-in paths are preserved, no runtime import cycle exists, and the parser matches the summaries of engine 2.1.300 and of a real recorded call.

Unresolved Review Findings

None.

Residue

  • The desktop app's async ask-mod question stays "Not answered" for a disk-only session. The answer is in the transcript, in the ask mod's later delivery row that names the call id, but deriveTurn works one turn at a time. The desk fills it from the log. The desktop app could read the delivery row in a later pass.

… 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.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-17T15:40:55.047955Z dd7c37a PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant