Skip to content

[Bug]: Changes is disabled on New thread even when the selected branch has a diff #43905

Done

Description

@faga295

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Create a temporary repository with a clean working tree and one committed change on repro/changes relative to origin/main. The remote below is a local bare repository.

    repro_dir=$(mktemp -d)
    git init -q --bare -b main "$repro_dir/origin.git"
    git init -q -b main "$repro_dir/fixture"
    cd "$repro_dir/fixture"
    git config user.name "Repro Fixture"
    git config user.email "[email protected]"
    
    printf 'One\nTwo\nThree\n' > example.txt
    git add example.txt
    git commit -qm "Initial fixture"
    git remote add origin "$repro_dir/origin.git"
    git push -qu origin main
    git remote set-head origin main
    
    git switch -qc repro/changes
    printf 'One\nTwo edited\nThree\nFour\nFive\nSix\n' > example.txt
    git commit -qam "Add a branch diff"
    git status --short
    git diff --shortstat origin/main...HEAD
    pwd
  2. In T3 Code desktop, add the fixture directory printed by pwd as a project and open New thread for it.

  3. Use Current checkout with repro/changes selected. Before sending anything, open Thread details. The Changes vs origin/main row shows +4 / −1 and is disabled.

  4. Send a first message that leaves the repo untouched, such as “Reply only with OK. Do not run tools or edit files.”

  5. In the same checkout and branch, click Changes vs origin/main again. It still shows +4 / −1, but now opens Diff, where you can expand example.txt to see the changes.

Expected behavior

Clicking Changes opens the selected branch’s diff on the New thread screen, so I can review it before sending the first message.

Actual behavior

The Changes row is greyed out and cannot be clicked, even though it already shows nonzero diff totals (+150 / −97 in the reported example). After the thread starts, Changes becomes clickable.

Impact

Minor bug or occasional failure

Version or commit

0.1.12 (Beta)

Environment

T3 Code desktop on macOS 15.8.2, local checkout.

Screenshots, recordings, or supporting files

Reporter screenshots from two branch examples. The steps above reproduce both states on one branch.

New thread. The row is disabled even though it shows +150 / −97.

New thread with Changes disabled and +150 / −97

After a thread has started. The row is enabled. This screenshot shows +320 / −69.

Started thread with Changes enabled and +320 / −69

Workaround

Start the thread first, then open Changes.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions