Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): blank question option descriptions no longer fail the run #15317

Closedtarik02(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/15317/headopened View on GitHub

Showing 4 changed files with 73 additions and 7 deletions (loading 1).

x
0 of 4 viewed, 4 left
30 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsModified
View file
@@ -19,6 +19,7 @@
NodeId,
type OrchestrationV2AppThread,
type OrchestrationV2ProviderThread,
+ OrchestrationV2UserInputQuestion,
ProjectId,
ProviderInstanceId,
type ProviderApprovalDecision,
@@ -118,6 +119,10 @@
​
+const decodeUserInputQuestions = Schema.decodeUnknownExit(
+ Schema.Array(OrchestrationV2UserInputQuestion),
+);
+​
function makeClaudeTestTurnInput(input: {
readonly threadId: ThreadId;
readonly providerThread: OrchestrationV2ProviderThread;
@@ -268,6 +273,31 @@
});
​
+ it("fills blank AskUserQuestion option descriptions from the label", () => {
+ // A question with a blank description used to fail event ingestion, which
+ // failed the run while Claude still waited for the answer.
+ const questions = ClaudeAdapterV2.claudeUserInputQuestions({
+ questions: [