Skip to content

fix(ui): update/sync diff summary when git status changed#16807

Open
xieyonn wants to merge 1 commit intoanomalyco:devfrom
xieyonn:feat/modify-status
Open

fix(ui): update/sync diff summary when git status changed#16807
xieyonn wants to merge 1 commit intoanomalyco:devfrom
xieyonn:feat/modify-status

Conversation

@xieyonn
Copy link

@xieyonn xieyonn commented Mar 9, 2026

Issue for this PR

Closes #11856
Closes #10920

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Update/Sync ui Modified Files when git status changed outside opencode.

  1. Add new event GitStatusChanged, fired when .git changed. This happend when use git command outside opencode (git add/git commit/git reset...)
  2. Subscribe event GitStatusChanged then update diff summary.

How did you verify your code works?

  1. start opencode in cli.
  2. using git add/reset make some changes.
  3. verify Modified Files ui change.

Screenshots / recordings

a

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

1. Add new event GitStatusChanged, fired when .git/index, .git/HEAD changed.
  This happend when use git command outside opencode (git add/git commit/git
      reset...)
2. Subscribe event GitStatusChanged then update diff summary, sync to session
   summary.
@xieyonn xieyonn force-pushed the feat/modify-status branch from 20a9939 to 6697fd6 Compare March 10, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] "Modified Files" panel does not clear after git commit Desktop does not keep session changes current

1 participant