Skip to content

Live command output in the transcript #64

Closed

Description

@rynfar

Ledger row TR-CMDOUT. Expanding a command work-log item shows its output, streamed live while the command runs and final once it settles.

Web source: apps/web/src/components/chat/CommandOutputPanel.tsx (incl. useCommandOutputStreaming), apps/web/src/components/chat/ShellCommandBlock.tsx, packages/client-runtime/src/state/commandOutput.ts, @t3tools/shared/terminalOutput, mounted from apps/web/src/components/chat/V2ItemInspector.tsx.

Activity

  1. added this to the M2 Parity core milestone on Nov 2, 2026
  2. added
    parity
    native:feature
    status:in-progress
    status:review
    and removed
    status:in-progress
    status:review
    on Nov 2, 2026
  3. rynfar commented on Nov 2, 2026

    @rynfar
    OwnerAuthor

    Live output landed in #66 (TR-CMDOUT partial). Open: syntax-highlighted command line (ShellCommandBlock), selecting/copying output (native has no selectable plain-text element yet).

  4. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    Implemented in #110 (7dd57b9caefb4b68af05ef4e96c96cf1f7a03220): streamed command-output rows now use the shared native ShellCommandBlock equivalent. Bash command tokens and supported embedded scripts (inline interpreter flags, heredocs, nested shell wrappers) use the existing Tree-sitter highlighter, run off the UI thread, and are cached per command/syntax palette. Selection and visible control characters remain supported.

    The work-row font-size gap from #108 is also fixed, including related row sizes and icon offsets. Before/after offscreen PNG paths for light/dark at 16px and 20px are in the PR body. Workspace tests, Clippy, theme/parity/conformance checks and check:changed native pass.

    TR-CMDOUT/TR-INSPECT stay partial: PowerShell and fish/Perl/AppleScript/Ruby/XML embedded grammars are unavailable in the existing native highlighter. Those retain plain text or the surrounding shell-string style. This closes the Bash/common embedded-language command-line gap; the grammar coverage above remains open here.

  5. added
    status:in-progress
    status:review
    and removed
    status:in-progress
    on Nov 3, 2026
  6. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    Implemented the requested grammar coverage in #132, head 1c742e2f84303914bb61c8062385109eb8dfaa02: PowerShell plus fish, Perl, AppleScript, Ruby and XML embedded scripts use the shared cached background highlighter. Core detection now also covers osascript option values/stdin, PowerShell call operators and the new filename extensions. Core detection and token-role tests passed after demonstrating the failures first.

    Workspace tests (1,177), Clippy, theme/parity/conformance checks and check:changed native pass. The PR lists local before/after PowerShell, fish and Ruby command-row captures, non-streaming raw-inspector captures, and measured dependency/binary sizes. No turns or server writes were used.

    TR-CMDOUT and TR-INSPECT remain partial: other filename-inferred heredoc languages outside native's enabled grammar set, such as C/C++ and Java, still fall back. Release binary size and real-window rendering were not verified; screenshots used the required offscreen renderer.

  7. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    PR #132 updated at 19087329a8429e13f061a732abdcd5a3351e403f after independent review. All six findings were reproduced and fixed: heredoc/comment-safe language selection; Ruby variables, operators, booleans and escapes; the full PowerShell parameter theme role; winning XML quote/punctuation/entity colors; web filename aliases (.pl plain/Prolog, .pm Perl, Ruby aliases); and fish/AppleScript plain fallback matching the pinned web engine. Their grammar dependencies were removed.

    Six tests exercise the production cached-command path, installed highlight/locals queries and final theme-resolved colors; all six failed at the reviewed head. All 1,183 workspace tests and required Clippy/theme/parity/conformance/check:changed gates pass. Refreshed local command-row and raw-inspector captures and gate logs are listed in the PR. No turns or server writes were used.

    TR-CMDOUT/TR-INSPECT stay partial for the broader web filename catalog, other plain-file targets and unported lexer coverage. Fish and AppleScript now match the web's plain rendering. Development binary: +7.69 MiB against c5820e2, 0.33 MiB smaller than the reviewed head; linked __TEXT is +7.56 MiB against the base. Real-window rendering and release binary size remain unverified. fork/native was unchanged, so no rebase was needed.

  8. removed
    status:review
    on Nov 3, 2026
  9. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    Shell grammar coverage merged in #132 (8c126fa7b2). It adds PowerShell command highlighting and Perl, Ruby and XML embedded-script highlighting, with web-aligned language selection (heredoc bodies, comments and substitutions are skipped) and web token roles after theme resolution. Fish and AppleScript scripts render plain, as on web, because the pinned @pierre/highlights engine has no grammar for them; .pl maps to Prolog (plain) and .pm to Perl, as on web. The exact reviewed head 19087329a8 passed a trial-merge gate onto c5820e2f45: GATE GREEN, 1,183 tests. The fresh Sol reviewer found two P2s and three P3s; all were fixed with production-path failing-first tests and the same reviewer approved.

    TR-CMDOUT and TR-INSPECT stay partial. Still open: filename-inferred heredoc languages beyond the enabled grammars (for example C, C++ and Java) and the web lexer constructs not yet ported. Unverified: real-window rendering and release binary size (development binary +7.69 MiB, mostly Perl).

  10. rynfar commented on Nov 14, 2026

    @rynfar
    OwnerAuthor

    Closed by PR #373 (00b9b2a0a6).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    native:featureparity

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions