Skip to content

Branch changes sidebar reports line diff now agains origin/remote, no longer against current worktree #21922

@claell

Description

@claell

What version of the Codex App are you using (From “About Codex” dialog)?

lastest

What subscription do you have?

Edu

What platform is your computer?

Windows 11

What issue are you seeing?

Before, the sidebar on the top right of the Codex window used to report line changes against the current worktree (meaning if the worktree was clean, no changed lines would be displayed). As of now (and I have verified this), it reports against the diff between the worktree and the remote. This leads to unexpected and misleading diff lines in case the local repo commits have not all been pushed to the remote, yet. I mean, I never really trusted this number, as the feature has always been a bit flaky (at least in the past), but this really is unexpected.

Image

See the screenshot. This is for example during an ongoing edit, reporting much more changed lines than happening in the current worktree.

What steps can reproduce the bug?

Open a repository branch with unsynced local commits.

What is the expected behavior?

Show the worktree diff, not the diff lines against remote.

Additional information

Is this a feature, not a bug? Not sure. But it is super hard to understand it, not good UX at all, and not what I'd expect. Also, this seems like a regression, as past behavior was showing diff lines against the current local repo state, not against the remote.

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions