Skip to content

Commit af1bfde

Browse files
committed
Match Claude todo-write tools by name substring
- Treat any tool name containing `todowrite` as a completed todo-write action - Preserve turn state updates for renamed Claude tool variants
1 parent 5b08d35 commit af1bfde

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/server/src/provider/Layers/ClaudeAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1761,7 +1761,7 @@ function makeClaudeAdapter(options?: ClaudeAdapterLiveOptions) {
17611761
};
17621762

17631763
if (
1764-
tool.toolName.toLowerCase() === "todowrite" &&
1764+
tool.toolName.toLowerCase().includes("todowrite") &&
17651765
!toolResult.isError &&
17661766
context.turnState
17671767
) {

0 commit comments

Comments
 (0)