agent-orchestrator/packages/web/src/app
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
..
api fix(core): adopt orphaned orchestrator worktrees (#1643) 2026-05-05 20:34:00 +05:30
dev/terminal-test Fix direct terminal attach and keep project-scoped mux routing (#1608) 2026-05-04 19:55:10 +05:30
icon-192 Fix metadata loading and refresh orchestrator session links 2026-03-26 11:12:55 +05:30
icon-512 Fix metadata loading and refresh orchestrator session links 2026-03-26 11:12:55 +05:30
orchestrators Fix root dashboard project selection (#1480) 2026-04-24 18:35:38 +05:30
projects/[projectId] refactor(core): storage redesign — projectId-based paths, JSON metadata (#1466) 2026-04-28 17:55:53 +05:30
prs feat(web): collapse attention zones to 4 with 5-zone feature flag (#1202) 2026-04-17 22:24:25 +05:30
sessions/[id] fix(web): source sidebar orchestrator from API field, not session list (#1623) 2026-05-04 00:09:43 +05:30
test-direct Fix direct terminal attach and keep project-scoped mux routing (#1608) 2026-05-04 19:55:10 +05:30
apple-icon.tsx Fix metadata loading and refresh orchestrator session links 2026-03-26 11:12:55 +05:30
error.test.tsx fix(web): preserve session view on polling errors and add missing link mock 2026-04-06 22:49:51 -07:00
error.tsx feat(web): add dashboard error boundaries 2026-04-06 22:49:51 -07:00
global-error.test.tsx feat(web): add dashboard error boundaries 2026-04-06 22:49:51 -07:00
global-error.tsx feat(web): add dashboard error boundaries 2026-04-06 22:49:51 -07:00
globals.css Fix direct terminal attach and keep project-scoped mux routing (#1608) 2026-05-04 19:55:10 +05:30
icon.tsx Fix metadata loading and refresh orchestrator session links 2026-03-26 11:12:55 +05:30
layout.test.ts Fix root dashboard project selection (#1480) 2026-04-24 18:35:38 +05:30
layout.tsx Fix root dashboard project selection (#1480) 2026-04-24 18:35:38 +05:30
loading.test.tsx feat(web): add global loading.tsx with spinner for route transitions 2026-04-06 22:49:51 -07:00
loading.tsx feat(web): add global loading.tsx with spinner for route transitions 2026-04-06 22:49:51 -07:00
manifest.test.ts style(design): design review fixes + fresh Warm Terminal design system (#927) 2026-04-11 16:30:03 +05:30
manifest.ts style(design): design review fixes + fresh Warm Terminal design system (#927) 2026-04-11 16:30:03 +05:30
not-found.test.tsx feat(web): add dashboard error boundaries 2026-04-06 22:49:51 -07:00
not-found.tsx feat(web): add dashboard error boundaries 2026-04-06 22:49:51 -07:00
page.tsx fix(web): surface dashboard SSR load failures (#1316) 2026-04-21 11:38:02 +05:30
providers.test.tsx test(web): add Providers component test for diff coverage 2026-04-06 22:52:53 -07:00
providers.tsx feat(web): add MuxProvider React context for persistent WebSocket 2026-04-06 22:46:29 -07:00