@@ -1248,9 +1248,9 @@ func TestInitialPromptReadiness(t *testing.T) {
12481248 c := st .NewPTY (ctx , cfg , & testEmitter {})
12491249 c .Start (ctx )
12501250
1251- // Agent not ready initially, status should be changing.
1252- advanceFor (ctx , t , mClock , 1 * time .Second )
1253- assert .Equal (t , st .ConversationStatusChanging , c .Status ())
1251+ // Agent not ready initially, status should be changing.
1252+ advanceFor (ctx , t , mClock , 1 * time .Second )
1253+ assert .Equal (t , st .ConversationStatusChanging , c .Status ())
12541254 // Agent becomes ready, prompt gets enqueued, status becomes "changing"
12551255 agent .setScreen ("ready" )
12561256 advanceFor (ctx , t , mClock , 1 * time .Second )
@@ -1282,9 +1282,9 @@ func TestInitialPromptReadiness(t *testing.T) {
12821282 c := st .NewPTY (ctx , cfg , & testEmitter {})
12831283 c .Start (ctx )
12841284
1285- // Status is "changing" while waiting for readiness (prompt not yet enqueued).
1286- advanceFor (ctx , t , mClock , 1 * time .Second )
1287- assert .Equal (t , st .ConversationStatusChanging , c .Status ())
1285+ // Status is "changing" while waiting for readiness (prompt not yet enqueued).
1286+ advanceFor (ctx , t , mClock , 1 * time .Second )
1287+ assert .Equal (t , st .ConversationStatusChanging , c .Status ())
12881288 // Agent becomes ready. The snapshot loop detects this, enqueues the prompt,
12891289 // then sees queue + stable + ready and signals the send loop.
12901290 // writeStabilize runs with onWrite changing the screen, so it completes.
@@ -1736,12 +1736,12 @@ func TestInitialPromptSent(t *testing.T) {
17361736
17371737 // Verify no prompt was sent (should only have the initial screen message)
17381738 messages := c .Messages ()
1739- for _ , msg := range messages {
1740- if msg .Role == st .ConversationRoleUser {
1741- t .Errorf ("Unexpected user message sent: %q (empty prompt should not be restored)" , msg .Message )
1742- }
1739+ for _ , msg := range messages {
1740+ if msg .Role == st .ConversationRoleUser {
1741+ t .Errorf ("Unexpected user message sent: %q (empty prompt should not be restored)" , msg .Message )
17431742 }
1744- })
1743+ }
1744+ })
17451745}
17461746
17471747func TestSendRejectsWhenInitialPromptNotReady (t * testing.T ) {
@@ -1777,4 +1777,4 @@ func TestSendRejectsWhenInitialPromptNotReady(t *testing.T) {
17771777 // Send() rejects immediately instead of blocking forever.
17781778 err := c .Send (st.MessagePartText {Content : "hello" })
17791779 assert .ErrorIs (t , err , st .ErrMessageValidationChanging )
1780- }
1780+ }
0 commit comments