Skip to content

Add git diff review and commit prep panel#99

Merged
slashdevcorpse merged 3 commits into
mainfrom
feature/git-review-panel
May 31, 2026
Merged

Add git diff review and commit prep panel#99
slashdevcorpse merged 3 commits into
mainfrom
feature/git-review-panel

Conversation

@slashdevcorpse
Copy link
Copy Markdown
Owner

@slashdevcorpse slashdevcorpse commented May 31, 2026

Summary\n- add a local git review API with grouped staged, unstaged, untracked, and deleted file status\n- render a local changes panel with selectable files, inline diff preview, patch copy, commit-message copy, and explicit staging\n- keep the flow local-only; no push, PR creation, reset, or checkout actions are exposed\n- cover git status grouping and selected staging behavior\n\n## Testing\n- pnpm -C apps/codex-claw lint\n- pnpm -C apps/codex-claw build\n- pnpm -C apps/codex-claw test\n\nCloses #86


Summary by cubic

Add a local git diff review and commit prep panel in Chat via a new local API. You can preview diffs, copy a combined patch or draft commit message, and stage selected files—kept strictly local; aligns with Linear #86.

  • New Features
    • Server: adds /api/git-review (GET returns grouped status, per-file diffs, combined patch, draft commit message; POST { action: 'stage', paths } stages selected files).
    • UI: new git-branch toggle in the chat header opens a panel with grouped files, checkboxes to select, inline diff preview, and buttons to copy Patch/Message or Stage selected.
    • Behavior: supports staged/unstaged/untracked/deleted, synthesizes diffs for untracked text files, caps diff size for safety, and includes tests covering grouping and staging.

Written for commit 7dedce7. Summary will update on new commits.

Review in cubic

Copilot AI review requested due to automatic review settings May 31, 2026 07:56
@slashdevcorpse slashdevcorpse merged commit e5c3a7f into main May 31, 2026
5 of 6 checks passed
@slashdevcorpse slashdevcorpse deleted the feature/git-review-panel branch May 31, 2026 07:58
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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