There was an error while loading. Please reload this page.
1 parent b44fe5d commit 9deab88Copy full SHA for 9deab88
1 file changed
lib/screentracker/pty_conversation.go
@@ -195,7 +195,7 @@ func (c *PTYConversation) Start(ctx context.Context) {
195
c.initialPromptReady = true
196
}
197
198
- if !c.loadStateSuccessful && c.cfg.StatePersistenceConfig.LoadState {
+ if c.initialPromptReady && !c.loadStateSuccessful && c.cfg.StatePersistenceConfig.LoadState {
199
_ = c.loadState()
200
c.loadStateSuccessful = true
201
@@ -596,7 +596,7 @@ func (c *PTYConversation) SaveState() error {
596
// Clear dirty flag after successful save
597
c.dirty = false
598
599
- c.cfg.Logger.Info("State saved successfully to: %s", stateFile)
+ c.cfg.Logger.Info(fmt.Sprintf("State saved successfully to: %s", stateFile))
600
601
return nil
602
0 commit comments