Skip to content

Repository rows in thread details can't open that repository's diff #40318

Open

Description

@Guria

What happened

In the thread details panel, each repository listed beside the thread's own folder (e.g. base t3/review-mu… +123 −187) shows line counts, but nothing on the row opens those changes. Expanding it shows Git actions ("Commit, push & PR") but no Changes row. To see the diff you have to open the Diff panel from elsewhere and switch repositories in its picker.

Also, a repository with commits that aren't pushed and no uncommitted edits shows no counts at all, so the row gives no sign that the branch has work.

Single-repo projects are unaffected: their Changes row opens the diff.

Diagnosis

  • apps/web/src/components/chat/ThreadRepositorySections.tsx renders GitActionsControl with showChanges={false} and no onOpenChanges, so repository sections never get the Changes row that the thread folder gets.
  • apps/web/src/components/DiffPanel.tsx keeps the selected Git repository in local state (const [gitRepositoryPath, setGitRepositoryPath] = useState<string | null>(null)), so no caller can open the panel on a specific repository.
  • Repository rows count only uncommitted changes (repositorySectionSummary in packages/client-runtime/src/state/threadRepositories.ts reads status.workingTree). The thread folder's Changes row counts the branch against its base and falls back to uncommitted changes (resolveChangesTotals in GitActionsControl.logic.ts). So commits that aren't pushed show no counts on a repository row.
  • Possible shape: lift the repository choice into the diff selection or route state the panel already reads, then turn on the Changes row in repository sections (and/or make the +/− counts clickable) so it opens the panel on that repository. Using the same totals as the Changes row fixes the missing counts too.

Steps to reproduce

Reproduced in a dev build of main (c1464d6):

  1. Create a project whose root folder is not a Git repository and holds two repositories, personal and base, both on a branch with an upstream.
  2. In base, make uncommitted edits. In personal, commit a change without pushing and leave no uncommitted edits.
  3. Open a thread in that project and add both via Other repositories....
  4. Expand base: the row shows +13 −20, but the section offers only "Commit, push & PR" and "Remove from this thread". There is no way to open its diff.
  5. Expand personal: it offers "Push & create PR" (so there is unpushed work), but the row shows no counts and there is no way to open its diff.
  6. Control: in a project whose folder is itself the repository, the panel shows "Changes vs origin/main +20 −4", and clicking it opens the Diff panel.

Version

0.1.12-nightly.20261121.5038 (desktop). Unchanged on main as of 2026-11-21.

Environment

macOS arm64 (Darwin 27.2.0), T3 Code Desktop against its local server.

Evidence

Screenshots to be attached below:

  1. base with uncommitted changes: counts shown, no Changes row.
  2. personal with an unpushed commit: no counts, no Changes row.
  3. Single-repo control: Changes row present.
  4. Single-repo control: Changes opens the Diff panel.
  5. Mockup of the proposed design: a Changes row per repository section, counts that include unpushed commits, and clickable counts on collapsed rows.

Related issues

None found. Builds on #35925 (a project covers several repositories).

Workaround

Open the Diff panel and choose the repository in its picker.


Produced by Claude Opus 5.5 (claude-opus-5-5) in Claude Code, via T3 Code triage.

Activity

  1. Guria commented on Nov 21, 2026

    @Guria
    Author

    Screenshots for the evidence list above (hostname anonymised).

    1. base with uncommitted changes: counts shown, no Changes row.
    base with uncommitted changes, no Changes row

    2. personal with an unpushed commit: no counts, no Changes row.
    personal with an unpushed commit, no counts

    3. Single-repo control: Changes row present.
    single-repo project with a Changes row

    4. Single-repo control: Changes opens the Diff panel.
    Changes row opens the Diff panel

    5. Proposed design (mockup).
    mockup of the proposed design

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

    via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions