LegGasai
33371b069e
feat(worktree)!: merge create_worktree into enter_worktree
...
The model has one tool for entering a worktree, as Claude Code's
EnterWorktree: `enter_worktree({ name?, from? })`. When the pool of the
checkout the Session is in holds a registered worktree of that name, the call
enters it and changes neither Git state nor files. Otherwise it creates a new
branch and checkout from `from`, HEAD by default, and enters it. `from` asks
for a new worktree, so it fails with `WORKTREE_ALREADY_EXISTS` when the name is
taken; a call without a name always creates one. The result adds `created`.
`create_worktree` is removed. `ctx.worktrees.create` and `enter` keep their
behavior: the tool calls `enter` first and `create` only on
`WORKTREE_NOT_FOUND`, so Host callers such as the forge panel still create.
The upgrade guide `create-worktree-tool-merged` covers the removed tool name.
2026-11-16 13:32:27 +08:00
..
2026-11-11 15:35:08 +08:00
2026-11-04 18:17:58 +08:00
2026-11-04 13:25:24 +00:00
2026-11-13 07:56:57 +00:00
2026-11-13 20:55:02 +08:00
2026-10-21 15:12:47 +08:00
2026-11-11 15:12:02 +08:00
2026-10-20 02:13:37 +08:00
2026-11-11 12:47:01 +08:00
2026-11-11 12:47:01 +08:00
2026-10-15 03:56:26 +08:00
2026-11-11 15:15:26 +08:00
2026-11-13 10:11:54 +08:00
2026-11-13 10:11:54 +08:00
2026-11-04 13:25:24 +00:00
2026-11-02 16:07:28 +08:00
2026-11-02 16:07:29 +08:00
2026-11-04 13:25:24 +00:00
2026-11-05 00:22:36 +08:00
2026-10-28 01:58:28 +08:00
2026-10-28 01:58:28 +08:00
2026-11-12 11:52:56 +08:00
2026-11-12 11:52:56 +08:00
2026-11-12 19:27:57 +08:00
2026-11-12 19:27:57 +08:00
2026-11-12 19:27:57 +08:00
2026-11-12 19:27:57 +08:00
2026-10-21 14:40:16 +08:00
2026-11-05 00:22:36 +08:00
2026-10-20 02:13:37 +08:00
2026-10-22 04:09:35 +00:00
2026-10-20 02:14:33 +08:00
2026-11-13 10:11:54 +08:00
2026-11-13 16:13:03 +08:00
2026-10-20 00:35:51 -07:00
2026-10-15 23:33:49 +08:00
2026-10-18 14:29:23 +08:00
2026-10-28 01:58:28 +08:00
2026-10-22 21:46:29 +08:00
2026-11-05 20:34:44 +08:00
2026-11-05 20:34:44 +08:00
2026-11-05 20:34:44 +08:00
2026-10-29 01:50:09 +08:00
2026-11-05 16:26:40 +08:00
2026-10-29 20:42:07 +08:00
2026-10-20 00:06:19 +08:00
2026-11-13 15:57:55 +08:00
2026-10-15 16:47:43 +08:00
2026-10-30 14:00:01 +08:00
2026-11-12 23:14:32 +08:00
2026-11-05 16:26:40 +08:00
2026-11-04 18:18:00 +08:00
2026-10-30 13:41:02 +08:00
2026-10-19 17:34:49 +08:00
2026-11-12 16:43:02 +08:00
2026-11-11 15:14:28 +08:00
2026-10-30 17:09:00 +08:00
2026-11-12 16:42:20 +08:00
2026-11-11 11:43:44 +08:00
2026-11-12 11:51:12 +08:00
2026-11-13 13:05:16 +08:00
2026-10-22 18:05:13 +08:00
2026-10-22 18:05:13 +08:00
2026-10-22 18:05:13 +08:00
2026-11-12 12:15:13 +08:00
2026-11-02 16:07:29 +08:00
2026-11-02 16:07:29 +08:00
2026-11-04 04:59:30 +08:00
2026-11-13 07:56:57 +00:00
2026-10-30 13:47:01 +08:00
2026-10-30 13:47:01 +08:00
2026-11-04 04:07:26 +00:00
2026-11-05 12:58:57 +08:00
2026-11-05 17:04:43 +08:00
2026-11-05 17:04:43 +08:00
2026-11-12 23:14:32 +08:00
2026-11-13 20:18:56 +08:00
2026-11-12 23:14:32 +08:00
2026-11-13 16:29:31 +08:00
2026-10-29 13:40:54 +08:00
2026-10-29 13:40:54 +08:00
2026-10-19 18:37:48 +08:00
2026-11-13 15:45:04 +08:00
2026-10-18 00:28:33 +08:00
2026-10-18 00:28:33 +08:00
2026-11-16 13:32:27 +08:00
2026-10-18 14:29:23 +08:00
2026-10-18 14:29:23 +08:00
2026-10-28 19:40:54 +08:00
2026-10-29 13:40:54 +08:00
2026-10-22 22:14:47 +08:00
2026-11-12 16:43:02 +08:00
2026-11-11 15:15:26 +08:00
2026-11-13 16:06:36 +08:00
2026-10-30 14:25:27 +08:00
2026-10-26 03:25:12 +08:00
2026-11-13 07:56:57 +00:00
2026-11-04 18:18:01 +08:00
2026-11-13 14:18:42 +08:00
2026-10-24 14:58:40 +08:00
2026-10-19 18:37:48 +08:00
2026-10-19 19:33:43 +08:00
2026-11-11 15:15:26 +08:00
2026-10-30 23:42:08 +08:00
2026-10-19 18:37:48 +08:00
2026-10-19 18:37:48 +08:00
2026-10-19 18:37:48 +08:00
2026-10-19 18:37:48 +08:00
2026-10-19 18:37:48 +08:00
2026-10-19 18:37:48 +08:00
2026-10-19 18:37:48 +08:00
2026-10-19 19:33:43 +08:00
2026-10-19 18:37:48 +08:00
2026-10-18 00:28:33 +08:00
2026-11-12 17:09:15 +08:00
2026-10-19 23:00:32 +08:00
2026-11-05 01:57:13 +08:00
2026-11-05 01:57:13 +08:00
2026-11-12 19:27:57 +08:00
2026-11-07 16:08:00 +08:00
2026-11-13 10:11:54 +08:00
2026-11-05 00:22:36 +08:00
2026-11-05 00:22:36 +08:00
2026-10-15 23:33:49 +08:00
2026-10-14 14:43:59 +08:00
2026-10-14 14:43:59 +08:00
2026-11-05 00:22:36 +08:00
2026-11-02 16:07:28 +08:00
2026-11-02 16:07:29 +08:00
2026-11-02 16:07:28 +08:00
2026-11-04 18:17:58 +08:00
2026-11-11 08:39:14 +00:00
2026-11-06 17:40:24 +08:00
2026-11-13 16:06:36 +08:00
2026-10-31 10:40:31 +08:00
2026-11-13 15:57:55 +08:00
2026-11-13 17:44:59 +08:00
2026-10-27 01:20:56 +08:00
2026-11-11 08:39:14 +00:00
2026-10-13 14:10:56 +08:00
2026-10-22 22:14:47 +08:00
2026-10-22 22:14:47 +08:00
2026-11-04 04:07:26 +00:00
2026-11-13 14:58:12 +08:00
2026-11-07 16:08:00 +08:00
2026-11-07 16:08:00 +08:00
2026-11-03 13:04:26 +08:00
2026-11-11 08:39:14 +00:00
2026-10-26 11:05:45 +08:00
2026-11-05 00:22:36 +08:00
2026-11-05 00:22:36 +08:00
2026-10-22 20:42:19 +08:00
2026-10-22 20:42:19 +08:00
2026-11-04 13:25:24 +00:00
2026-11-05 00:22:36 +08:00
2026-11-13 20:55:02 +08:00
2026-10-18 14:29:23 +08:00
2026-11-03 12:51:08 +08:00
2026-11-13 10:11:54 +08:00
2026-11-13 10:11:54 +08:00
2026-10-22 20:35:15 +08:00
2026-10-19 22:39:29 +08:00
2026-10-19 22:39:29 +08:00
2026-11-13 16:23:25 +08:00
2026-11-13 17:14:36 +08:00
2026-10-23 12:12:38 +08:00
2026-10-23 12:12:38 +08:00
2026-11-11 12:47:01 +08:00
2026-11-11 12:47:01 +08:00
2026-10-22 22:14:47 +08:00
2026-10-22 22:14:47 +08:00
2026-10-19 22:23:13 +08:00
2026-10-19 22:23:13 +08:00
2026-10-19 22:23:13 +08:00
2026-10-20 12:44:14 +08:00
2026-10-20 12:44:14 +08:00
2026-10-15 03:56:25 +08:00
2026-10-15 03:56:25 +08:00
2026-11-11 12:47:00 +08:00
2026-11-11 12:47:00 +08:00
2026-10-27 11:16:58 +08:00
2026-10-26 18:54:40 +08:00
2026-11-13 14:18:42 +08:00
2026-10-24 14:58:40 +08:00
2026-11-05 21:26:38 +08:00
2026-11-13 16:06:36 +08:00
2026-11-05 17:53:22 +08:00
2026-11-05 17:53:22 +08:00
2026-11-05 11:11:05 +00:00
2026-11-05 11:11:05 +00:00
2026-11-05 11:11:05 +00:00
2026-11-05 11:11:05 +00:00
2026-10-23 12:12:38 +08:00
2026-10-23 12:12:38 +08:00
2026-10-22 20:35:15 +08:00
2026-10-28 16:55:39 +08:00
2026-10-28 16:55:39 +08:00
2026-11-12 16:11:08 +08:00
2026-11-02 16:07:29 +08:00
2026-11-07 17:02:19 +08:00
2026-11-05 01:57:13 +08:00
2026-11-05 01:57:13 +08:00
2026-10-26 23:51:18 +08:00
2026-10-26 23:51:18 +08:00
2026-11-11 15:14:28 +08:00
2026-10-28 11:22:35 +08:00