Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"test": "vp test run"
},
"dependencies": {
"@anthropic-ai/claude-agent-sdk": "^0.3.170",
"@anthropic-ai/claude-agent-sdk": "^0.3.220",
"@effect/platform-bun": "catalog:",
"@effect/platform-node": "catalog:",
"@effect/platform-node-shared": "catalog:",
Expand Down
7 changes: 7 additions & 0 deletions apps/server/src/provider/Layers/ClaudeAdapter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2872,6 +2872,7 @@ describe("ClaudeAdapterLive", () => {
},
],
toolUseID: "tool-use-1",
requestId: "req-tool-use-1",
},
);

Expand Down Expand Up @@ -2948,6 +2949,7 @@ describe("ClaudeAdapterLive", () => {
{
signal: new AbortController().signal,
toolUseID: "tool-agent-1",
requestId: "req-tool-agent-1",
},
);

Expand All @@ -2972,6 +2974,7 @@ describe("ClaudeAdapterLive", () => {
{
signal: new AbortController().signal,
toolUseID: "tool-grep-approval-1",
requestId: "req-tool-grep-approval-1",
},
);

Expand Down Expand Up @@ -3509,6 +3512,7 @@ describe("ClaudeAdapterLive", () => {
{
signal: new AbortController().signal,
toolUseID: "tool-exit-1",
requestId: "req-tool-exit-1",
},
);

Expand Down Expand Up @@ -3675,6 +3679,7 @@ describe("ClaudeAdapterLive", () => {
const permissionPromise = canUseTool("AskUserQuestion", askInput, {
signal: new AbortController().signal,
toolUseID: "tool-ask-1",
requestId: "req-tool-ask-1",
});

// The adapter should emit a user-input.requested event.
Expand Down Expand Up @@ -3801,6 +3806,7 @@ describe("ClaudeAdapterLive", () => {
const permissionPromise = canUseTool("AskUserQuestion", askInput, {
signal: new AbortController().signal,
toolUseID: "tool-ask-2",
requestId: "req-tool-ask-2",
});

// Should still get user-input.requested even in full-access mode.
Expand Down Expand Up @@ -3866,6 +3872,7 @@ describe("ClaudeAdapterLive", () => {
{
signal: controller.signal,
toolUseID: "tool-ask-abort",
requestId: "req-tool-ask-abort",
},
);

Expand Down
11 changes: 11 additions & 0 deletions apps/server/src/provider/Layers/ClaudeAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2825,6 +2825,14 @@ export const makeClaudeAdapter = Effect.fn("makeClaudeAdapter")(function* (
message,
);
return;
// SDK 0.3.22x system subtypes with no T3 surface today — consume so
// exhaustiveness stays green without work-log spam.
case "background_tasks_changed":
case "control_request_progress":
case "informational":
case "model_refusal_no_fallback":
case "worker_shutting_down":
return;
default: {
// Exhaustiveness guard: every subtype in the SDK's typed union is
// handled above, so `message` narrows to never here — a new SDK
Expand Down Expand Up @@ -2950,6 +2958,9 @@ export const makeClaudeAdapter = Effect.fn("makeClaudeAdapter")(function* (
// Composer prompt suggestions have no T3 surface; consumed deliberately.
case "prompt_suggestion":
return;
// SDK 0.3.22x top-level messages with no T3 surface yet.
case "conversation_reset":
return;
default: {
// Exhaustiveness guard (see handleSystemMessage): new SDK top-level
// message types fail typecheck here instead of warning at runtime.
Expand Down
81 changes: 37 additions & 44 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading