mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
refactor(subturn): remove redundant system prompt handling in runTurn function
This commit is contained in:
@@ -491,10 +491,6 @@ func runTurn(ctx context.Context, al *AgentLoop, ts *turnState, cfg SubTurnConfi
|
||||
childAgent.MaxTokens = parentAgent.MaxTokens
|
||||
}
|
||||
|
||||
if cfg.ActualSystemPrompt != "" {
|
||||
childAgent.Sessions.AddMessage(ts.turnID, "system", cfg.ActualSystemPrompt)
|
||||
}
|
||||
|
||||
promptAlreadyAdded := false
|
||||
|
||||
// Preload ephemeral session history
|
||||
|
||||
Reference in New Issue
Block a user