agent-orchestrator/packages/plugins
yyovil be061a3989
fix(core): adopt orphaned orchestrator worktrees (#1643)
* fix(core): adopt orphaned orchestrator worktrees (#1641)

* fix: address review feedback on worktree adoption

- Normalize CRLF line endings in parseWorktreeList for cross-platform support
- Collapse duplicate classifySpawnError payload blocks into single condition
- Filter prunable/deleted worktree entries in findManagedWorkspace
- Add GIT_TIMEOUT to git() helper for all execFileAsync calls
- Add tests for prunable entries and CRLF parsing

* fix: update test assertions for git() helper timeout

All git() calls now pass timeout: GIT_TIMEOUT to execFileAsync.
Update toHaveBeenCalledWith assertions to include the new option.
postCreate sh -c calls remain unchanged (direct execFileAsync).

* fix: mock existsSync in findManagedWorkspace tests

The existsSync(entry.path) filter added for prunable worktree detection
needs existsSync to return true for valid worktree paths in adoption tests.

* fix: use mockReturnValueOnce to prevent existsSync mock leaking

vi.clearAllMocks() does not reset mockReturnValue, only mock history.
Using mockReturnValueOnce ensures existsSync stubs don't leak to
subsequent tests and cause clearStaleWorktreePath to consume git mocks.

---------

Co-authored-by: AO Bot <ao-bot@composio.dev>
2026-05-05 20:34:00 +05:30
..
agent-aider refactor(core): extract hasRecentCommits helper into @aoagents/ao-core (#1437) 2026-05-05 18:58:53 +05:30
agent-claude-code chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
agent-codex chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
agent-cursor refactor(core): extract hasRecentCommits helper into @aoagents/ao-core (#1437) 2026-05-05 18:58:53 +05:30
agent-kimicode chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
agent-opencode chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
notifier-composio chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
notifier-desktop chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
notifier-discord chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
notifier-openclaw chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
notifier-slack chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
notifier-webhook chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
runtime-process chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
runtime-tmux refactor(spawn): plugin-owned preflight + collapse project resolution (#1622) 2026-05-04 14:03:26 +05:30
scm-github refactor(spawn): plugin-owned preflight + collapse project resolution (#1622) 2026-05-04 14:03:26 +05:30
scm-gitlab chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
terminal-iterm2 chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
terminal-web chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
tracker-github refactor(spawn): plugin-owned preflight + collapse project resolution (#1622) 2026-05-04 14:03:26 +05:30
tracker-gitlab chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
tracker-linear chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
workspace-clone chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
workspace-worktree fix(core): adopt orphaned orchestrator worktrees (#1643) 2026-05-05 20:34:00 +05:30