@@ -418,7 +418,7 @@ func TestInitialPromptReadiness(t *testing.T) {
418418 SnapshotInterval : 1 * time .Second ,
419419 ScreenStabilityLength : 2 * time .Second ,
420420 AgentIO : & testAgent {screen : "loading..." },
421- IsAgentReadyForInitialPrompt : func (message string ) bool {
421+ ReadyForInitialPrompt : func (message string ) bool {
422422 return message == "ready"
423423 },
424424 }
@@ -431,7 +431,7 @@ func TestInitialPromptReadiness(t *testing.T) {
431431
432432 // Even though screen is stable, status should be changing because agent is not ready
433433 assert .Equal (t , changing , c .Status ())
434- assert .False (t , c .AgentReadyForInitialPrompt )
434+ assert .False (t , c .ReadyForInitialPrompt )
435435 assert .False (t , c .InitialPromptSent )
436436 })
437437
@@ -441,7 +441,7 @@ func TestInitialPromptReadiness(t *testing.T) {
441441 SnapshotInterval : 1 * time .Second ,
442442 ScreenStabilityLength : 2 * time .Second ,
443443 AgentIO : & testAgent {screen : "loading..." },
444- IsAgentReadyForInitialPrompt : func (message string ) bool {
444+ ReadyForInitialPrompt : func (message string ) bool {
445445 return message == "ready"
446446 },
447447 }
@@ -458,7 +458,7 @@ func TestInitialPromptReadiness(t *testing.T) {
458458 c .AddSnapshot ("ready" )
459459 c .AddSnapshot ("ready" )
460460 assert .Equal (t , stable , c .Status ())
461- assert .True (t , c .AgentReadyForInitialPrompt )
461+ assert .True (t , c .ReadyForInitialPrompt )
462462 assert .False (t , c .InitialPromptSent )
463463 })
464464
@@ -468,7 +468,7 @@ func TestInitialPromptReadiness(t *testing.T) {
468468 SnapshotInterval : 1 * time .Second ,
469469 ScreenStabilityLength : 2 * time .Second ,
470470 AgentIO : & testAgent {screen : "loading..." },
471- IsAgentReadyForInitialPrompt : func (message string ) bool {
471+ ReadyForInitialPrompt : func (message string ) bool {
472472 return false // Agent never ready
473473 },
474474 }
@@ -481,7 +481,7 @@ func TestInitialPromptReadiness(t *testing.T) {
481481
482482 // Status should be stable because no initial prompt to wait for
483483 assert .Equal (t , stable , c .Status ())
484- assert .False (t , c .AgentReadyForInitialPrompt )
484+ assert .False (t , c .ReadyForInitialPrompt )
485485 assert .True (t , c .InitialPromptSent ) // Set to true when initial prompt is empty
486486 })
487487
@@ -491,7 +491,7 @@ func TestInitialPromptReadiness(t *testing.T) {
491491 SnapshotInterval : 1 * time .Second ,
492492 ScreenStabilityLength : 2 * time .Second ,
493493 AgentIO : & testAgent {screen : "processing..." },
494- IsAgentReadyForInitialPrompt : func (message string ) bool {
494+ ReadyForInitialPrompt : func (message string ) bool {
495495 return false // Agent never ready
496496 },
497497 }
@@ -505,7 +505,7 @@ func TestInitialPromptReadiness(t *testing.T) {
505505
506506 // Status should be stable because initial prompt was already sent
507507 assert .Equal (t , stable , c .Status ())
508- assert .False (t , c .AgentReadyForInitialPrompt )
508+ assert .False (t , c .ReadyForInitialPrompt )
509509 assert .True (t , c .InitialPromptSent )
510510 })
511511
@@ -515,7 +515,7 @@ func TestInitialPromptReadiness(t *testing.T) {
515515 SnapshotInterval : 1 * time .Second ,
516516 ScreenStabilityLength : 2 * time .Second ,
517517 AgentIO : & testAgent {screen : "ready" },
518- IsAgentReadyForInitialPrompt : func (message string ) bool {
518+ ReadyForInitialPrompt : func (message string ) bool {
519519 return message == "ready"
520520 },
521521 }
@@ -526,20 +526,20 @@ func TestInitialPromptReadiness(t *testing.T) {
526526 c .AddSnapshot ("ready" )
527527 c .AddSnapshot ("ready" )
528528 assert .Equal (t , stable , c .Status ())
529- assert .True (t , c .AgentReadyForInitialPrompt )
529+ assert .True (t , c .ReadyForInitialPrompt )
530530
531531 // After agent is detected as ready, normal status logic applies
532532 // Screen changes should cause changing status
533533 c .AddSnapshot ("changing" )
534534 assert .Equal (t , changing , c .Status ())
535- assert .True (t , c .AgentReadyForInitialPrompt )
535+ assert .True (t , c .ReadyForInitialPrompt )
536536
537537 // Once screen stabilizes again, status should be stable
538- // AgentReadyForInitialPrompt remains true
538+ // ReadyForInitialPrompt remains true
539539 c .AddSnapshot ("stable now" )
540540 c .AddSnapshot ("stable now" )
541541 c .AddSnapshot ("stable now" )
542542 assert .Equal (t , stable , c .Status ())
543- assert .True (t , c .AgentReadyForInitialPrompt )
543+ assert .True (t , c .ReadyForInitialPrompt )
544544 })
545545}
0 commit comments