refactor(subturn): remove redundant system prompt handling in runTurn function

This commit is contained in:
Administrator
2026-03-19 11:10:44 +08:00
parent 53404f18ca
commit 01c2f8d608
-4
View File
@@ -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