Repository navigation
Description
User outcome: after clicking a project action such as a coverage report or diagnostic command, inspect its output and attach selected evidence to the next prompt without rerunning the command in another terminal.
Current competitor reference: T3 Code runProjectScript, inspected 2026-09-10, opens the terminal and writes the chosen project script there. This is a source comparison, not hands-on verification of T3 or a recommendation to copy its terminal implementation.
Reproduced in Solenta at 9fc8645: mounted the real ThreadView and invoked the real projectCommands.runCommand using an in-memory store and a simulated command runner. The runner returned a distinctive coverage result with exit code zero. Assertions verified that the API result retained the log, the two saved transcript events contained only start/success summaries, and the output was absent both after clicking the action and after remounting with those events. The check passed without React console errors. The process response was simulated; no live project command or benchmark was run.
Cause: runOne returns CommandRunResult.log but persists only eventText summaries. Success omits output, and failure retains only a 1500-character tail. runHeaderCommand ignores the returned result. The runner already bounds the captured log through verify.js.
Smallest useful scope: retain a bounded per-invocation result with thread/worktree, action name, command, exit result and duration. Reuse the existing transcript/artifact presentation for expandable output, Copy and Add to prompt. Add to prompt prepares an editable draft; it must not send or run anything automatically. A compact completed-result view can ship before live streaming or a PTY redesign.
Acceptance:
- Successful output is inspectable even when exit code is zero; failed/timeout results retain an explicit result and bounded output.
- Truncation is visible. Retained history and payloads remain bounded; do not enlarge the global work-log envelope.
- Results remain with the originating thread and invocation across switching and remounting, including two runs of the same action.
- Copy or Add to prompt names the source command/worktree, preserves existing text and attachments, and cannot write into another thread's draft.
- Duplicate clicks still cannot launch concurrent copies; inspecting a result never reruns its command.
- Cover successful, failed, timed-out and rejected starts using the actual header-to-service contract.
Dedup: #153 is CLOSED plan:done and already delivered setup/named actions. This is the residual output-consumption gap for named actions. #396 remains the environment-provisioning/setup-log plan; share plumbing where useful rather than expanding this into provisioning. #1184 covers interactive PTY terminals and #1185 terminal selection/search, neither makes these separately executed quick-action results available. #244 remains exact-state verification evidence; this proposal makes no claim that a successful action verifies later code.
Activity
currentbits commentedon Oct 13, 2026
Landed from Solenta thread "P2: Make quick-action output inspectable and reusable in the" (PR #1633). Closed on merge.
Flush the #1216 test store before deleting its temp dir
Show an actionable error when a pasted image can't be attached (#1643)
Flush the #1216 test store before deleting its temp dir