Skip to content

Raw item inspector in tool rows (TR-INSPECT) #78

Closed

Description

@rynfar

Ledger row TR-INSPECT (todo): the raw item inspector shown in expanded tool rows: the tool call's structured input, the fetched output (turn item detail), JSON highlighting, pending/error/empty states.

Web source: apps/web/src/components/chat/V2ItemInspector.tsx (and FetchedToolOutput), its use in apps/web/src/components/chat/TimelineWorkEntryRow.tsx, and the turn item detail fetch it calls (useTurnItemDetail, turnItemNeedsDetailFetch, turnItemOutputText). Text should use the selectable text element from #72.

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

    Merged in #82 (2ad8ce7dc2). TR-INSPECT is partial; left open for: syntax-highlighted command line (shared with TR-CMDOUT #64).

  4. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    Implemented in #110 (7dd57b9caefb4b68af05ef4e96c96cf1f7a03220): raw item inspectors, including dynamic-tool command arguments 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. 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.

  6. 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.

  7. 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