Skip to content

Commit 593b65f

Browse files
committed
refactor: remove unused InitialPrompt field from PTYConversation
The public InitialPrompt string field is no longer used after refactoring. The initial prompt is now stored in cfg.InitialPrompt (as []MessagePart) and managed internally. Removing this field avoids confusion and maintains clean encapsulation. Addresses PR review feedback.
1 parent b5437f7 commit 593b65f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/screentracker/pty_conversation.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ type PTYConversation struct {
9494
screenBeforeLastUserMessage string
9595
lock sync.Mutex
9696

97-
// InitialPrompt is the initial prompt passed to the agent
98-
InitialPrompt string
99-
// initialPromptSent keeps track if the InitialPrompt has been successfully sent to the agent
97+
// initialPromptSent keeps track if the initial prompt has been successfully sent to the agent
10098
initialPromptSent bool
10199
// initialPromptReady is closed when the agent is ready to receive the initial prompt
102100
initialPromptReady chan struct{}

0 commit comments

Comments
 (0)