Skip to content

Collapse task dispatch args to a sentence, not raw JSON - #440

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-5762-dispatch-tool-args-transcript
Aug 9, 2026
Merged

Collapse task dispatch args to a sentence, not raw JSON#440
TheGreatAxios merged 1 commit into
mainfrom
cl-5762-dispatch-tool-args-transcript

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Task/dispatch tool calls always collapse to a sentence (description, else prompt) instead of dumping raw argument JSON into the transcript
  • Object args always get a summarised view; expanded detail uses real line breaks for nested briefs (arrays, multi-line prompts)
  • Generic safety: toolCallRow never leaves summary unset when a verb/view exists, so paint cannot fall through to raw args

Closes CL-5762

Test plan

  • bun test ./src/tui/tool-formatter.test.ts ./src/tui/diff-rows.test.ts ./src/tui/tool-subject.test.ts ./src/tui/collapse.test.ts ./src/tui/mcp-view.test.ts
  • Manual: dispatch a task with a long brief; collapsed row shows description; expand shows fields with real newlines, not \n escapes

@linear-code

linear-code Bot commented Aug 9, 2026

Copy link
Copy Markdown

CL-5762

A task spawn with a large brief fell through to painting the whole arguments
object into the transcript. Prefer description then prompt as the subject,
always summarise object args, and expand nested fields with real line breaks
instead of escaped JSON strings.
@TheGreatAxios
TheGreatAxios force-pushed the cl-5762-dispatch-tool-args-transcript branch from b2da955 to fbe7ca9 Compare August 9, 2026 14:48
@TheGreatAxios
TheGreatAxios merged commit 545b616 into main Aug 9, 2026
2 checks passed
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