refactor(subturn): remove redundant system prompt handling in runTurn function
This commit is contained in:
1 parent
53404f18ca
commit
01c2f8d608
1 file changed
-4
@@ -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