gsxdsm
dc4c2b2204
FN-6453: clean up AI-merge worktrees after setup failures
...
Ensure AI-merge clean-room directories are cleaned up even when setup fails before worktree registration.
- Move clean-room directory creation inside the cleanup guard so terminal setup failures can remove it.
- Skip cleanup only when no merge root was ever created, while still unregistering any registered paths.
- Add regression coverage for active-session registration failure after mkdtemp and before git worktree add.
Files changed:
.../ai-merge-worktree-cleanup.test.ts | 31 ++++++++++++++++++++++
packages/engine/src/merger-ai.ts | 21 ++++++++++-----
2 files changed, 45 insertions(+), 7 deletions(-)
Fusion-Task-Id: FN-6453
Fusion-Task-Lineage: 364b329b-c3e7-4902-8ca8-673360b0d9ac
2026-06-15 02:29:08 -07:00
..
2026-05-17 19:36:12 -07:00
2026-05-16 17:08:09 -07:00
2026-06-11 18:14:45 -07:00
2026-06-02 08:35:47 -07:00
2026-06-15 02:29:08 -07:00
2026-05-16 22:36:57 -07:00
2026-05-18 06:20:53 -07:00
2026-05-17 17:07:01 -07:00
2026-05-15 16:19:42 -07:00
2026-05-14 22:16:44 -07:00
2026-05-13 22:08:41 -07:00
2026-05-21 19:15:27 -07:00
2026-05-21 19:15:27 -07:00
2026-05-22 21:40:40 -07:00
2026-06-03 23:54:09 -07:00
2026-06-03 23:54:09 -07:00
2026-06-03 20:12:27 -07:00
2026-06-03 20:12:27 -07:00
2026-06-08 22:35:04 -07:00
2026-06-08 22:35:04 -07:00
2026-05-14 19:06:25 -07:00
2026-06-03 15:57:41 -07:00
2026-06-09 09:41:28 -07:00
2026-05-16 18:55:03 -07:00
2026-06-08 22:35:04 -07:00
2026-05-16 10:50:06 -07:00
2026-05-22 16:09:43 -07:00
2026-05-23 00:22:19 -07:00
2026-05-15 20:18:55 -07:00
2026-05-30 20:48:16 -07:00
2026-06-03 21:02:01 -07:00
2026-05-21 07:05:48 -07:00
2026-05-20 14:29:07 -07:00
2026-05-22 23:12:49 -07:00
2026-05-16 21:15:10 -07:00
2026-05-31 08:32:01 -07:00
2026-06-04 10:56:47 -07:00
2026-06-09 02:15:03 -07:00
2026-05-22 20:20:42 -07:00
2026-05-21 12:04:58 -07:00
2026-05-21 19:15:27 -07:00
2026-05-18 00:53:24 -07:00
2026-06-04 10:56:47 -07:00
2026-05-19 10:07:44 -07:00
2026-05-18 18:27:08 -07:00
2026-05-20 01:01:08 -07:00
2026-05-23 04:05:25 -07:00
2026-06-09 12:51:20 -07:00
2026-06-09 09:41:28 -07:00
2026-05-22 14:38:29 -07:00
2026-06-03 22:31:23 -07:00
2026-05-15 11:41:35 -07:00
2026-05-20 08:23:40 -07:00
2026-05-18 01:30:16 -07:00
2026-05-20 18:49:38 -07:00
2026-05-30 20:48:16 -07:00
2026-05-30 14:42:50 -07:00
2026-05-23 20:18:08 -07:00
2026-06-11 20:27:29 -07:00
2026-05-16 22:36:57 -07:00
2026-05-18 12:46:23 -07:00
2026-05-17 19:36:14 -07:00
2026-05-17 17:29:31 -07:00
2026-06-14 19:26:55 -07:00
2026-06-02 18:11:26 -07:00
2026-06-02 15:33:31 -07:00
2026-05-16 20:27:40 -07:00
2026-06-14 15:29:35 -07:00
2026-05-16 22:36:57 -07:00
2026-06-08 22:35:04 -07:00
2026-06-14 10:59:21 -07:00
2026-05-20 18:49:38 -07:00
2026-05-16 21:26:04 -07:00
2026-05-21 19:15:27 -07:00
2026-05-21 09:06:23 -07:00
2026-06-02 11:03:18 -07:00
2026-06-08 22:35:04 -07:00
2026-06-08 22:35:04 -07:00
2026-05-17 19:37:02 -07:00
2026-05-21 19:15:27 -07:00
2026-05-17 19:37:02 -07:00
2026-06-03 19:38:23 -07:00
2026-05-20 06:42:05 -07:00
2026-05-18 14:16:22 -07:00
2026-05-16 17:59:03 -07:00
2026-05-17 18:37:48 -07:00
2026-05-29 20:05:14 -07:00
2026-05-21 16:30:31 -07:00
2026-05-17 23:29:21 -07:00
2026-05-18 02:25:21 -07:00
2026-05-17 09:51:10 -07:00
2026-05-21 19:15:27 -07:00
2026-05-18 15:50:48 -07:00
2026-06-03 23:54:09 -07:00
2026-06-03 19:38:23 -07:00
2026-05-15 12:40:10 -07:00
2026-05-20 02:46:49 -07:00
2026-05-23 21:54:07 -07:00
2026-06-02 16:21:07 -07:00
2026-06-08 22:35:04 -07:00
2026-05-23 17:07:14 -07:00
2026-05-21 09:06:23 -07:00
2026-05-21 09:06:23 -07:00
2026-05-15 21:57:57 -07:00
2026-05-15 21:57:57 -07:00
2026-05-18 02:43:33 -07:00
2026-06-14 11:19:11 -07:00
2026-05-29 00:55:17 -07:00
2026-05-19 19:28:05 -07:00
2026-06-02 21:42:38 -07:00
2026-05-16 22:36:57 -07:00
2026-06-07 18:51:46 -07:00
2026-05-31 08:32:01 -07:00
2026-05-22 22:10:45 -07:00
2026-06-04 10:56:47 -07:00
2026-05-16 21:34:25 -07:00
2026-05-17 15:55:18 -07:00
2026-05-20 09:42:40 -07:00
2026-06-11 16:15:07 -07:00
2026-05-16 20:54:39 -07:00
2026-05-18 15:51:01 -07:00
2026-05-20 07:44:57 -07:00
2026-05-15 20:53:54 -07:00
2026-05-20 16:43:27 -07:00
2026-06-12 15:51:15 -07:00