quick-fixes round: quiz-only teach-check reveal, ESC-abort confirm popup + question dismissal, confidence prompt diet
- requiresReveal gates on pending.tool === 'quiz' (owner: only graded quizzes arrive collapsed; ask/explain always open) - ESC-abort chain opens AbortTurnDialog everywhere (owner ruling); from a pending question abort IS dismissal — dismissedAnswer rides the answer path, the teacher acknowledges the skip in its next turn; popup-Esc is claimed via the state gate (two window listeners fire per Esc) - 25-confidence.md: stripped the slider/JSON/calibration mechanics — pure reading doctrine remains - toolQuestionKind named once in core (dock parity), dock switched to it
This commit is contained in:
@@ -41,6 +41,12 @@ export interface PendingToolCall {
|
||||
/** Tools that render in the question dock and gate the composer. */
|
||||
export const QUESTION_TOOLS = ["quiz", "ask_user_question", "explain"] as const;
|
||||
|
||||
/** The tool→kind map (the dock's own fold, named once — the dismissal
|
||||
* path and the dock must never disagree on what a tool is). */
|
||||
export function toolQuestionKind(tool: string): "quiz" | "ask" | "explain" {
|
||||
return tool === "quiz" ? "quiz" : tool === "explain" ? "explain" : "ask";
|
||||
}
|
||||
|
||||
/** Tools fulfilled by background sub-agent jobs (W2/W6). */
|
||||
export const JOB_TOOLS = ["research", "demo", "visual"] as const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user