-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Parent: #54
Problem
CLI shell commands become rich CommandRun objects with command/title/output, rendered as collapsible blocks with $ command prefix and full output. VS Code run_in_terminal becomes a generic ToolInvocation with Using "Run in Terminal" — the biggest visual divergence.
The data IS already available in VS Code's format: toolSpecificData.commandLine has the command, toolSpecificData.terminalCommandOutput.text has the output. We just don't extract it into a CommandRun.
Change
- Add
_extract_command_run(item) -> CommandRun | Nonehelper (sibling to_parse_tool_invocation_serialized) - In
_process_response_items(), call it right after the existingtool_invappend — one newif cmd_run: command_runs.append(cmd_run)line - Update raw_blocks content for terminal tools to use
$ {command}format (triggers thematched_cmdrendering path in the template)
Scope
~20 lines — new helper function + 3 lines in _process_response_items
Conflict note
Fully additive approach avoids restructuring the _process_response_items flow that the agent-collapsibles branch modifies. The new helper and call site sit outside their if subagent/elif chain.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels