Skip to content

Commit 596f3b8

Browse files
committed
fix(web): clarify how to answer optionless questions
1 parent 4c3a9d5 commit 596f3b8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/web/src/components/chat/ChatComposer.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import type {
3535
ScopedThreadRef,
3636
ServerProvider,
3737
ThreadId,
38+
UserInputQuestion,
3839
} from "@t3tools/contracts";
3940
import {
4041
EnvironmentRequestInvalidError,
@@ -407,6 +408,7 @@ export interface ChatComposerProps {
407408
customAnswer: string;
408409
activeQuestion: {
409410
id: string;
411+
options: UserInputQuestion["options"];
410412
initialAnswer?: string | undefined;
411413
multiSelect?: boolean | undefined;
412414
allowCustomAnswer?: boolean | undefined;
@@ -3529,7 +3531,9 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
35293531
: activePendingProgress
35303532
? isChoiceOnlyPendingQuestion
35313533
? "Choose an option above"
3532-
: "Type your own answer, or leave this blank to use the selected option"
3534+
: activePendingProgress.activeQuestion?.options.length
3535+
? "Type your own answer, or leave this blank to use the selected option"
3536+
: "Type your answer"
35333537
: showPlanFollowUpPrompt && activeProposedPlan
35343538
? "Add feedback to refine the plan, or leave this blank to implement it"
35353539
: projectSelectionRequired

0 commit comments

Comments
 (0)