Skip to content

Commit 0c87a3a

Browse files
committed
fix(server): a blank Claude approval title falls back to its description
1 parent 4be44c1 commit 0c87a3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8956,7 +8956,7 @@ export const makeClaudeAdapterV2 = Effect.fn("makeClaudeAdapterV2")(function* (
89568956

89578957
const requestKind = providerRequestKindFromClaudeTool(toolName);
89588958
// Claude's decision reason reaches the client separately, as the presentation's reason.
8959-
const explanation = (callbackOptions.title ?? callbackOptions.description)?.trim();
8959+
const explanation = callbackOptions.title?.trim() || callbackOptions.description?.trim();
89608960
// The user approves the operation itself; Claude's text only explains it. The command
89618961
// stays untrimmed: `trim` drops unicode blanks such as U+00A0 that a shell keeps.
89628962
const command = ["command", "cmd", "script"]

0 commit comments

Comments
 (0)