Skip to content

Fix SSH archive hook on worktree removal - #2665

Merged
AmethystLiang merged 1 commit into
mainfrom
https-github.com-stablyai-orca-issues-2656
May 23, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
https-github.com-stablyai-orca-issues-2656

Conversation

@AmethystLiang

Copy link
Copy Markdown
Contributor

Summary

  • run archive hooks before SSH worktree deletion so remote teardown scripts see the worktree directory
  • execute SSH archive hooks through the relay non-interactive executor with ORCA hook environment variables
  • keep removal best-effort when archive hooks fail or relay execution rejects

Fixes #2656

Verification

  • pnpm vitest run --config config/vitest.config.ts src/main/ipc/worktrees.test.ts
  • pnpm vitest run --config config/vitest.config.ts src/main/providers/ssh-git-provider.test.ts
  • pnpm run typecheck

Review

  • Codex deep review round 1: no findings; residual test gaps addressed
  • Codex deep review round 2: found rejected remote hook execution could block removal; fixed and covered

@AmethystLiang
AmethystLiang merged commit 7def1c7 into main May 23, 2026
2 checks passed
@AmethystLiang
AmethystLiang deleted the https-github.com-stablyai-orca-issues-2656 branch May 23, 2026 06:02
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 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.

SSH-remote worktree removal skips orca.yaml archive hook

1 participant