File tree Expand file tree Collapse file tree
crates/jcode-tui/src/tui/app/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#[ test]
22fn auto_poke_stays_armed_when_a_turn_has_no_todos ( ) {
33 with_temp_jcode_home ( || {
4+ assert ! ( !crate :: config:: config( ) . features. todo_gate_digest) ;
45 let mut app = create_test_app ( ) ;
56 app. auto_poke_incomplete_todos = true ;
67 app. auto_poke_default_on = true ;
@@ -188,14 +189,11 @@ fn completed_cycle_rearms_auto_poke_only_when_default_on() {
188189 changed. completion_confidence = Some ( crate :: todo:: ConfidenceState :: Plausible ) ;
189190 crate :: todo:: save_todos ( & app. session . id , & [ changed] ) . expect ( "save changed todo" ) ;
190191 assert ! ( app. schedule_auto_poke_followup_if_needed( ) ) ;
191- assert ! ( app. queued_messages[ 0 ] . starts_with( crate :: todo:: TODO_GATE_DIGEST_PREFIX ) ) ;
192- assert ! ( !app. todo_final_response_requested) ;
193- app. queued_messages . clear ( ) ;
194- app. pending_queued_dispatch = false ;
195- assert ! ( app. schedule_auto_poke_followup_if_needed( ) ) ;
192+ // Disabling the aggregate digest must not disable completion validation.
196193 assert ! (
197194 app. queued_messages[ 0 ] . starts_with( crate :: todo:: TODO_COMPLETION_CONTINUATION_MESSAGE )
198195 ) ;
196+ assert ! ( !app. todo_final_response_requested) ;
199197 app. queued_messages . clear ( ) ;
200198 app. pending_queued_dispatch = false ;
201199 crate :: todo:: save_todos ( & app. session . id , & [ completed ( "todo-1" ) ] ) . expect ( "save validated" ) ;
You can’t perform that action at this time.
0 commit comments