Skip to content

Commit ebf7640

Browse files
Ben Smithclaude
andcommitted
fix(acp-registry): log the ACP error code, not the agent's message
A rejected thought-level option logged the agent's error text. Log the numeric ACP error code instead, so log annotations stay bounded. Implemented with Claude Opus 5.5 in T3 Code. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent eccb2f3 commit ebf7640

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/provider-acp-registry/src/server/glmTextGeneration.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ export const makeGlmTextGeneration = Effect.fn("makeGlmTextGeneration")(function
253253
Effect.logWarning("GLM session rejected a configuration option value", {
254254
optionId: option.id,
255255
value: selection.value,
256-
detail: error.message,
256+
code: error.code,
257257
}),
258258
}),
259259
);

0 commit comments

Comments
 (0)