Skip to content

Commit dbe7297

Browse files
committed
fix(server): preserve customAnswer in Claude question options
1 parent e2f0782 commit dbe7297

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,11 @@ describe("ClaudeAdapterV2 runtime query policy", () => {
282282
options: [
283283
{ label: "Simple", description: "Use fewer moving parts", preview },
284284
{ label: "Safe", description: "Keep the current setup" },
285+
{
286+
label: "Write my own answer",
287+
description: "Write my own answer",
288+
customAnswer: true,
289+
},
285290
],
286291
multiSelect: true,
287292
},
@@ -295,6 +300,11 @@ describe("ClaudeAdapterV2 runtime query policy", () => {
295300
options: [
296301
{ label: "Simple", description: "Use fewer moving parts", preview },
297302
{ label: "Safe", description: "Keep the current setup" },
303+
{
304+
label: "Write my own answer",
305+
description: "Write my own answer",
306+
customAnswer: true,
307+
},
298308
],
299309
multiSelect: true,
300310
},

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3691,6 +3691,7 @@ export function claudeUserInputQuestions(
36913691
...(typeof optionRecord.preview === "string"
36923692
? { preview: optionRecord.preview }
36933693
: {}),
3694+
...(optionRecord.customAnswer === true ? { customAnswer: true } : {}),
36943695
},
36953696
];
36963697
})

0 commit comments

Comments
 (0)