@@ -22,7 +22,7 @@ import { canSnooze, effectiveSnoozed } from "./threadSettled.ts";
2222const environmentId = EnvironmentId . make ( "environment-v2" ) ;
2323
2424describe ( "V2 client presentation" , ( ) => {
25- it ( "keeps async questions in Working until the run completes " , ( ) => {
25+ it ( "an async question blocks snooze and wakes a snoozed thread " , ( ) => {
2626 const runId = RunId . make ( "run-async-question" ) ;
2727 const running = {
2828 ...v2ThreadShell ,
@@ -39,22 +39,12 @@ describe("V2 client presentation", () => {
3939 } ,
4040 } ;
4141 const active = presentThreadShell ( environmentId , running ) ;
42- expect ( active . hasPendingUserInput ) . toBe ( false ) ;
43- expect ( isThreadWorking ( active ) ) . toBe ( true ) ;
4442 expect ( canSnooze ( active , { now : "2026-06-20T00:05:00.000Z" } ) ) . toBe ( false ) ;
45-
46- const completed = presentThreadShell ( environmentId , {
47- ...running ,
48- activeRunId : null ,
49- status : "completed" ,
50- } ) ;
51- expect ( completed . hasPendingUserInput ) . toBe ( true ) ;
52- expect ( isThreadWorking ( completed ) ) . toBe ( false ) ;
5343 expect ( effectiveSnoozed ( active , { now : "2026-06-20T00:05:00.000Z" } ) ) . toBe ( false ) ;
5444 } ) ;
5545
56- it ( "keeps blocking and legacy questions out of Working" , ( ) => {
57- for ( const capability of [ { blocking : true } , { } ] ) {
46+ it ( "moves a running thread with any question out of Working" , ( ) => {
47+ for ( const capability of [ { blocking : false } , { blocking : true } , { } ] ) {
5848 const shell = presentThreadShell ( environmentId , {
5949 ...v2ThreadShell ,
6050 latestRunId : RunId . make ( "run-blocking-question" ) ,
0 commit comments