Skip to content

Inline file-change diff (tool-call diff in the diff panel) #58

Closed

Description

@rynfar

Ledger row TR-DIFF. Clicking a file_change work-log item opens the diff panel scoped to that one tool call, rendering its patch the way the web does.

Web source: apps/web/src/lib/toolCallDiff.ts, its consumer apps/web/src/components/DiffPanel.tsx (diffSelection.kind === "tool-call", resolveToolCallDiffTarget), and the work-log entry point that sets that selection.

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
    on Nov 2, 2026
  3. rynfar commented on Nov 2, 2026

    @rynfar
    OwnerAuthor

    Remaining gap after #62: side chats don't offer a file change's Open diff yet. The diff panel follows only the open thread's items, and a side chat's subscription drops while the diff tab is active, so a running change opened from a side chat would never refetch once it settles. The web opens these in the parent's panel through parentPanel.openToolDiff. TR-DIFF stays partial until the panel can follow that thread.

  4. removed
    status:review
    on Nov 2, 2026
  5. rynfar commented on Nov 2, 2026

    @rynfar
    OwnerAuthor

    Main-thread path landed in #62 (TR-DIFF partial). Open: "Open diff" from side-chat transcripts.

  6. added
    status:in-progress
    on Nov 3, 2026
  7. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    Factory is taking the remaining side-chat Open diff gap as one coherent follow-up. The side chat must route the selected tool-call diff into the parent panel, which must keep following that source thread when replacing the side-chat tab. Handle running-to-settled refetch, cancellation on panel/selection/environment changes, stale replies, and permission guards without continuous polling or duplicate unbounded subscriptions. Web reference is ChatView.tsx sideChatParentPanel/openToolDiff and DiffPanel.tsx/toolCallDiff.ts. Work stays native-only and must not regress main-thread diff scopes or review-comment insertion.

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

    @rynfar
    OwnerAuthor

    Merged in #119 as 41fc65a28a, from exact reviewed and gated head b1f8b36772. The same independent Sol reviewer approved the fix head with no findings: both P2s, unloaded-source eligibility and snapshot-delivered deletion, are resolved. The fresh parent trial-merge gate onto df70579cb8 is GREEN: 1,109 native tests, Clippy, theme, parity and conformance. TR-DIFF is done.

    Not yet verified end to end: real reconnect/snapshot fallback, permission revocation, deletion, environment switching, remote/relay and review-comment insertion. Settlement in the runtime trace was synthetic.

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