Repository navigation
Commit, push and open a PR in one click; sidebar PR badge shows open/merged/closed - #1685
Conversation
…363) The Git panel gets a Commit & PR button: it drafts the commit message when the box is blank, commits the staged files, then pushes and opens (or updates) the PR with agent-drafted text, falling back to the thread title. The sidebar #N badge now carries the PR state, with GitHub colours and a merge glyph once merged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 72cca79f6e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| onCreatePr && | ||
| detail?.thread.worktreePath && | ||
| !project?.remoteHost && | ||
| !isArchived |
There was a problem hiding this comment.
Disable Commit & PR while the agent is working
When detail.thread.status === "working", this condition still supplies onCommitAndPr, so the Changes pane enables the action while the agent may be modifying the same worktree. Clicking it commits the current snapshot and immediately pushes/opens a PR, allowing later writes from the active run to be omitted and potentially racing Git index operations; gate this path on !isWorking, as the header Git action already does.
Useful? React with 👍 / 👎.
Closes #363. The Git panel can now take uncommitted work all the way to a pull request in one click, and the sidebar shows each thread's PR state at a glance.
Changes
Committed, but the PR failed: …, so you know the commit happened.#Nlink gets a PR icon, GitHub colours (open green, merged violet, closed red) and a hover title likePR #12 open. It reads the persisted last-known state, so a failed refresh never blanks or flickers it.Verification
npm run test:renderer: 3169 pass, 0 fail. New tests cover the chain, a PR failure after the commit, the button hidden without a PR path, and the badge state.tsc --noEmitandvite buildclean.suggestCommitMessage/commit/suggestPrText/createPrcalls).Notes for reviewers
🤖 Generated with Claude Code