feat: show ShieldAlert icon for conflict-review tabs (#249)
* feat: show ShieldAlert icon for conflict-review tabs Display a distinct orange ShieldAlert icon for tabs opened in conflict-review mode, differentiating them from regular diff tabs. * fix: clear stale Rebasing/Merging badge on non-active worktrees The git status polling only runs for the active worktree. When a non-active worktree finishes rebasing, its conflict operation was never updated to 'unknown', leaving the badge stuck. Add a lightweight git:conflictOperation IPC (fs-only, no git subprocess) and poll it for non-active worktrees that have a non-unknown operation. Once the operation clears, the worktree drops out of the poll list.
This commit is contained in:
@@ -237,7 +237,7 @@ async function getConflictCompatibilityStatus(
|
||||
// rebase is still in progress but REBASE_HEAD is absent. The rebase-merge/ or
|
||||
// rebase-apply/ directory persists for the entire rebase, so checking it
|
||||
// catches the "rebase in progress, no conflicts on current step" case.
|
||||
async function detectConflictOperation(worktreePath: string): Promise<GitConflictOperation> {
|
||||
export async function detectConflictOperation(worktreePath: string): Promise<GitConflictOperation> {
|
||||
const gitDir = await resolveGitDir(worktreePath)
|
||||
const mergeHead = path.join(gitDir, 'MERGE_HEAD')
|
||||
const rebaseHead = path.join(gitDir, 'REBASE_HEAD')
|
||||
|
||||
Reference in New Issue
Block a user