fix(server): stop surfacing Claude 'task_updated' messages as work-log errors

The Claude Agent SDK emits system/task_updated as a task-state sync
patch (per its typings, clients merge it into their local task map).
The adapter's system-message switch had no case for it, so it fell
into the unknown-message default and showed up in the work log as a
red-X 'Claude system message' row on every background task status
change. Terminal statuses already arrive via task_notification, so
absorb the message silently; the raw payload remains in the provider
log file.

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
Theo BrowneandClaude Fable 5 committed 2026-07-06 03:22:32 -07:00
1 parent 6009720844
commit e62609ba3c
1 file changed
+5
@@ -2741,6 +2741,11 @@ export const makeClaudeAdapter = Effect.fn("makeClaudeAdapter")(function* (
return;
case "thinking_tokens":
return;
// Task-state sync patch for the client's local task map. Terminal
// statuses arrive separately via task_notification, so there is
// nothing to surface; the raw payload stays in the provider log.
case "task_updated":
return;
case "permission_denied":
yield* offerRuntimeEvent({
...base,