Skip to content

Commit da000cf

Browse files
SunkenInTimeclaude
andcommitted
fix(server): drop a Claude task's tool call link when the task ends
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 34adb2f commit da000cf

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7920,6 +7920,12 @@ export const makeClaudeAdapterV2 = Effect.fn("makeClaudeAdapterV2")(function* (
79207920
rosterChanged = true;
79217921
} else if (message.type === "system" && message.subtype === "task_notification") {
79227922
yield* endClaudeMonitorTasks((taskId) => taskId === message.task_id);
7923+
yield* Ref.update(toolUseIdsByTaskId, (current) => {
7924+
if (!current.has(message.task_id)) return current;
7925+
const updated = new Map(current);
7926+
updated.delete(message.task_id);
7927+
return updated;
7928+
});
79237929
const removed = yield* clearPendingBackgroundTask(
79247930
input.nativeThreadId,
79257931
message.task_id,

0 commit comments

Comments
 (0)