Skip to content

feat(native): complete TR-CMDOUT and TR-INSPECT parity - #373

Merged
rynfar merged 1 commit into
nativefrom
nw/244-tr-cmdout-inspect
Nov 14, 2026
Merged

rynfar merged 1 commit into
nativefrom
nw/244-tr-cmdout-inspect

Conversation

@rynfar

@rynfar rynfar commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Closes the remaining Wave Q7 parity gaps for TR-CMDOUT and TR-INSPECT in apps/native.

Changes

  • apps/native/crates/core/src/shell_command.rs: Restrict cat heredoc target inference to stdout redirections (>, >>, >|, &>, &>>) so stdin redirects do not trigger filename lexing, and expand file_language across @pierre/diffs EXTENSION_TO_FILE_FORMAT exact basenames, compound suffixes, case-sensitive extensions, and GPUI grammar aliases.
  • apps/native/crates/app/src/transcript/command_output.rs: Export resolve_syntax_style / CommandStyleResolver, replace the 3-language plain-text list with a general LanguageRegistry::singleton().language(language).is_none() default run so all unbundled languages clear outer shell string coloring, and align Earlier output not shown styling (11px, italic, muted foreground, 4px bottom margin).
  • apps/native/crates/app/src/transcript/media.rs: Add tool_output_image_gallery using MediaViewer::open_with_scope so tool output image thumbnails open in a gallery scoped to all images in that tool call at the clicked index.
  • apps/native/crates/app/src/transcript/inspector.rs: Route structured Runs::Code and Runs::Json highlights through resolve_syntax_style / CommandStyleResolver for full web syntax role colors (function.method.call, etc.), add TurnItemKind::Reasoning card rendering and budget accounting, and use tool_output_image_gallery for CallPart::Images.
  • apps/native/parity/LEDGER.md: Mark TR-CMDOUT and TR-INSPECT as done (#244).

Verification

  • cargo clippy --manifest-path apps/native/Cargo.toml --workspace --all-targets -- -D warnings: passed (0 warnings/errors).
  • cargo test --manifest-path apps/native/Cargo.toml -p t3-core -p t3-client: t3-core 1385 passed + conformance.rs 8 passed; t3-client 110 passed.
  • cargo test --manifest-path apps/native/Cargo.toml -p t3-native -- transcript::command_output transcript::inspector transcript::media selectable_text --test-threads=1: 31 passed; 0 failed.
  • node --test apps/native/parity/sync.test.ts: 42 passed; 0 failed.
  • vp fmt --check on apps/native/parity/LEDGER.md: passed.
  • Offscreen 1440x900 --snapshot verification in Dark and Light modes covering expanded cat > main.c, cat > BUILD, python3, stdout, and V2ItemInspector (js TypeScript code, html, JSON options & output):
Dark Light
Dark Light

Ref #244
Closes #64
Closes #78
Closes #233

Expand shell heredoc filename/lexer parity against Pierre diffs, clear outer shell string colors on all unbundled embedded languages, align command-output truncation styling, route inspector structured code/JSON blocks through web syntax roles, add Reasoning inspector card rendering and tool-output gallery scope, and mark TR-CMDOUT/TR-INSPECT done in LEDGER.md.

Model/harness: Antigravity / Gemini
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