fix(rectification): stop speaking unstampable distinguish stems (BUG-674/675)
Distinguish followups that cannot stamp a probe now go to persistExhaustionCollect instead of repeating the card stem in the assistant body. Choice focuses without asked_turn_id hang on the last assistant turn, and persisted_question with a live choice_card renders the existing card. Representative-time inconsistency is warn-only (BUG-676 investigating).
This commit is contained in:
@@ -347,6 +347,16 @@ export function interviewSessionOutcomeFromSnapshot(payload: RectificationCaseSn
|
||||
return null;
|
||||
}
|
||||
|
||||
export function persistedQuestionSurface(input: Readonly<{
|
||||
questionKind?: string | null;
|
||||
hasChoiceCard: boolean;
|
||||
questionPersisted: boolean;
|
||||
}>): "none" | "spoken" | "choice_card" {
|
||||
if (!input.questionPersisted) return "none";
|
||||
if (input.questionKind === "choice" && input.hasChoiceCard) return "choice_card";
|
||||
return "spoken";
|
||||
}
|
||||
|
||||
export function interviewChoiceCardUnavailable(input: Readonly<{
|
||||
questionKind?: string | null;
|
||||
hasChoiceCard: boolean;
|
||||
|
||||
Reference in New Issue
Block a user