@@ -21,7 +21,6 @@ type screenSnapshot struct {
2121type AgentIO interface {
2222 Write (data []byte ) (int , error )
2323 ReadScreen () string
24- Cursor () (int , int )
2524}
2625
2726type ConversationConfig struct {
@@ -290,7 +289,6 @@ func (c *Conversation) writeMessageWithConfirmation(ctx context.Context, message
290289
291290 // wait for the screen to change after the carriage return is written
292291 screenBeforeCarriageReturn := c .cfg .AgentIO .ReadScreen ()
293- cursorBeforeCarriageReturnX , cursorBeforeCarriageReturnY := c .cfg .AgentIO .Cursor ()
294292 lastCarriageReturnTime := time.Time {}
295293 if err := util .WaitFor (ctx , util.WaitTimeout {
296294 Timeout : 15 * time .Second ,
@@ -307,11 +305,8 @@ func (c *Conversation) writeMessageWithConfirmation(ctx context.Context, message
307305 }
308306 time .Sleep (25 * time .Millisecond )
309307 screen := c .cfg .AgentIO .ReadScreen ()
310- cursorX , cursorY := c .cfg .AgentIO .Cursor ()
311308
312- return screen != screenBeforeCarriageReturn ||
313- cursorX != cursorBeforeCarriageReturnX ||
314- cursorY != cursorBeforeCarriageReturnY , nil
309+ return screen != screenBeforeCarriageReturn , nil
315310 }); err != nil {
316311 return xerrors .Errorf ("failed to wait for processing to start: %w" , err )
317312 }
0 commit comments