Skip to content

Commit 1eb67a6

Browse files
fix(claude): retain question option previews in runtime data
1 parent 05e60c7 commit 1eb67a6

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3272,6 +3272,9 @@ export function claudeUserInputQuestions(
32723272
label,
32733273
description:
32743274
typeof optionRecord.description === "string" ? optionRecord.description.trim() : "",
3275+
...(typeof optionRecord.preview === "string"
3276+
? { preview: optionRecord.preview }
3277+
: {}),
32753278
},
32763279
];
32773280
})

‎packages/contracts/src/orchestrationV2.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,7 @@ export const OrchestrationV2UserInputQuestion = Schema.Struct({
11311131
label: TrimmedNonEmptyString,
11321132
description: TrimmedNonEmptyString,
11331133
value: Schema.optional(Schema.String),
1134+
preview: Schema.optional(Schema.String),
11341135
}),
11351136
),
11361137
multiSelect: Schema.optional(Schema.Boolean),

0 commit comments

Comments
 (0)