Repository navigation
Clarify Git operation status across workspaces - #37093
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
Walkthrough
Merge Risk:
|
51ff0c6 to
b4b49f1
Compare
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
064c0342-2445-47b7-b2b4-f530a8a71889
Files selected for processing: 14-
src/renderer/src/components/right-sidebar/CommitArea.test.tsxsrc/renderer/src/components/right-sidebar/source-control-primary-action.tssrc/renderer/src/i18n/locales/de.jsonsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/pt.jsonsrc/renderer/src/i18n/locales/ru.jsonsrc/renderer/src/i18n/locales/tr.jsonsrc/renderer/src/i18n/locales/zh-Hant.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/store/slices/editor-remote-branch-actions.test.ts
Files skipped from review as they are similar to previous changes: 1-
- src/renderer/src/i18n/locales/en.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
-
af1b190 to
18864d2
Compare
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

Minor · Show the cross-worktree waiting state during Create-PR… · source-control-primary-action.ts:44-49
src/renderer/src/components/right-sidebar/source-control-primary-action.ts:44-49
Minor · Functional Correctness · Quick win Show the cross-worktree waiting state during Create-PR preparation.
When another worktree starts a Git operation while the local Create-PR intent is awaiting an asynchronous step, the adapter keeps the disabled “Preparing branch for review…” action because of the explicit exemption. This hides the reason the action must wait and omits
isWaitingForRemoteOperation. Remove the exemption so the adapter returns the localized cross-worktree waiting action.Suggested fix
inputs.isRemoteOperationActive && inputs.isRemoteOperationInAnotherWorktree && - !inputs.isCommitting && - !(inputs.isPrIntentInFlight && decision.kind === 'create_pr_intent') + !inputs.isCommitting

Minor · Show the cross-worktree waiting state in the… · primary-create-pr-intent-action.ts:199-218
src/renderer/src/components/right-sidebar/source-control/review/primary-create-pr-intent-action.ts:199-218
Minor · Functional Correctness · Quick win Show the cross-worktree waiting state in the Create-PR header.
When another worktree starts a Git operation while the local Create-PR intent is in flight,
resolveCreatePrIntentInFlightPrimaryActionstill returns “Preparing branch for review…”. Pass the cross-worktree state into this resolver and return the existing waiting action before the preparation action. Preserve the!isCommittingcondition used by the adapter.Suggested fix
export function resolveCreatePrIntentInFlightPrimaryAction( - inputs?: Pick<PrimaryActionInputs, 'hostedReviewCreation'> + inputs?: Pick< + PrimaryActionInputs, + | 'hostedReviewCreation' + | 'isCommitting' + | 'isRemoteOperationActive' + | 'isRemoteOperationInAnotherWorktree' + > ): PrimaryAction { const copy = localizedHostedReviewCopy( resolveSupportedHostedReviewCopyProvider(inputs?.hostedReviewCreation?.provider) ) + if ( + inputs?.isRemoteOperationActive && + inputs.isRemoteOperationInAnotherWorktree && + !inputs.isCommitting + ) { + return { + kind: 'create_pr_intent', + label: translate( + 'settings.sourceControl.gitOperationInAnotherWorkspace', + 'Git operation running elsewhere' + ), + title: translate( + 'settings.sourceControl.remoteOperationInAnotherWorkspace', + "Another workspace is running a Git operation, such as push, pull, or force push. Wait for it to finish before using this action, so the two operations don't overlap." + ), + disabled: true, + isWaitingForRemoteOperation: true + } + } + return {

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
78823dfc-7328-4170-ac42-30b4f830175f
Files selected for processing: 2-
src/renderer/src/store/slices/editor/actions/git-remote-push-pull.tssrc/renderer/src/store/slices/editor/actions/git-remote-sync.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
-
|
@coderabbitai Fixing. Will be in the next commit |
|
Tip For best results, initiate chat on the files or code changes. @AmethystLiang Thanks for the update. The finding remains open until the fix is complete. You are interacting with an AI system. |
18864d2 to
671467f
Compare
Upstream regrouped src/main and the settings pane by owner, so fork imports follow the moved modules. GitBranchStatusSettings and GitInlineBlameSetting join settings/source-control beside the pane that renders them. The branch status segment reads remoteOperations now that stablyai#37093 replaced inFlightRemoteOpKind, scoped to its own workspace so a fetch elsewhere no longer spins it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upstream regrouped src/main and the settings pane by owner, so fork imports follow the moved modules. GitBranchStatusSettings and GitInlineBlameSetting join settings/source-control beside the pane that renders them. The branch status segment reads remoteOperations now that stablyai#37093 replaced inFlightRemoteOpKind, scoped to its own workspace so a fetch elsewhere no longer spins it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upstream regrouped src/main and the settings pane by owner, so fork imports follow the moved modules. GitBranchStatusSettings and GitInlineBlameSetting join settings/source-control beside the pane that renders them. The branch status segment reads remoteOperations now that stablyai#37093 replaced inFlightRemoteOpKind, scoped to its own workspace so a fetch elsewhere no longer spins it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upstream regrouped src/main and the settings pane by owner, so fork imports follow the moved modules. GitBranchStatusSettings and GitInlineBlameSetting join settings/source-control beside the pane that renders them. The branch status segment reads remoteOperations now that stablyai#37093 replaced inFlightRemoteOpKind, scoped to its own workspace so a fetch elsewhere no longer spins it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upstream regrouped src/main and the settings pane by owner, so fork imports follow the moved modules. GitBranchStatusSettings and GitInlineBlameSetting join settings/source-control beside the pane that renders them. The branch status segment reads remoteOperations now that stablyai#37093 replaced inFlightRemoteOpKind, scoped to its own workspace so a fetch elsewhere no longer spins it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upstream regrouped src/main and the settings pane by owner, so fork imports follow the moved modules. GitBranchStatusSettings and GitInlineBlameSetting join settings/source-control beside the pane that renders them. The branch status segment reads remoteOperations now that stablyai#37093 replaced inFlightRemoteOpKind, scoped to its own workspace so a fetch elsewhere no longer spins it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upstream regrouped src/main and the settings pane by owner, so fork imports follow the moved modules. GitBranchStatusSettings and GitInlineBlameSetting join settings/source-control beside the pane that renders them. The branch status segment reads remoteOperations now that stablyai#37093 replaced inFlightRemoteOpKind, scoped to its own workspace so a fetch elsewhere no longer spins it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Problem
When a Git operation runs in one workspace, another workspace can look like it is publishing its own branch. This makes it hard to tell what is happening and why its Git action is disabled.
Solution
Show “Git busy elsewhere” when another workspace is running a Git operation, with an explanation to wait. Track each operation by workspace so the active workspace shows its own progress and overlapping operations remain tracked until each finishes.
ELI5
If another workspace is busy with Git, Orca now says so instead of showing a misleading publishing spinner.
What Changed
Why
The previous shared operation label could make a workspace appear to be publishing when the operation was happening elsewhere. Workspace-specific tracking keeps the feedback accurate while retaining the existing protection against overlapping actions.
Linked Issue
No linked issue.
Visual Proof
TODO: Attach before and after screenshots or videos.
Testing
Automated tests were added or updated for waiting feedback, overlapping operations, and recovery behavior. Test execution and platforms are not documented.
AI Disclosure
TODO if applicable.
Review
Agent skill upstream boundary
Notes
TODO: Verify security, cross-platform support, remote SSH, mobile, backwards compatibility, and performance.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)