Skip to content

feat: add git-backed session review modes#17961

Merged
nexxeln merged 17 commits intodevfrom
review-git-changes
Mar 19, 2026
Merged

feat: add git-backed session review modes#17961
nexxeln merged 17 commits intodevfrom
review-git-changes

Conversation

@nexxeln
Copy link
Copy Markdown
Member

@nexxeln nexxeln commented Mar 17, 2026

Summary

  • add git and branch changes as review sources in the app, make git changes the default, and keep the desktop review tree in sync with the selected source
  • extend the opencode VCS API to expose uncommitted diffs and branch diffs against the detected default branch, including clean empty states and branch visibility rules
  • introduce a shared Git service, route existing git callsites through it, and move reusable git parsing/default-branch primitives out of Vcs

Testing

  • bun typecheck (packages/opencode)
  • bun typecheck (packages/app)
  • bun test test/project/vcs.test.ts test/project/project.test.ts test/server/project-init-git.test.ts (packages/opencode)
  • bun test --preload ./happydom.ts ./src/context/global-sync/event-reducer.test.ts (packages/app)

@nexxeln nexxeln requested a review from adamdotdevin as a code owner March 17, 2026 14:14
@nexxeln nexxeln changed the title Add git and branch changes to session review feat: add git and branch review modes Mar 17, 2026
@nexxeln nexxeln changed the title feat: add git and branch review modes feat: add git-backed session review modes Mar 19, 2026
Copy link
Copy Markdown
Contributor

@kitlangton kitlangton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It generally looks good to me. I left a few little requests and nitpicks. Feel free to ignore any of them. We can always address them later. Also, I might have missed it, but it would be good to have a test file for the effectful git service.

@nexxeln nexxeln merged commit e6f5214 into dev Mar 19, 2026
7 of 9 checks passed
@nexxeln nexxeln deleted the review-git-changes branch March 19, 2026 13:59
rekram1-node added a commit that referenced this pull request Mar 19, 2026
AvatarGanymede pushed a commit to AvatarGanymede/opencode-dev that referenced this pull request Mar 19, 2026
filipeandre pushed a commit to filipeandre/opencode that referenced this pull request Mar 19, 2026
raf1hh pushed a commit to raf1hh/opencode that referenced this pull request Mar 20, 2026
demostanis pushed a commit to demostanis/opencode that referenced this pull request Mar 20, 2026
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.

2 participants