style: fix remaining golines and gofmt lint issues
- spawn.go:97: break long fmt.Sprintf into multi-line
- loop.go:1179: break long if-condition into multi-line
- loop.go:2742: map[string]interface{} -> map[string]any (gofmt rewrite)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c1b370e132
commit
c7f1a5acfe
2 changed files with 7 additions and 3 deletions
|
|
@ -1176,7 +1176,8 @@ func (al *AgentLoop) runAgentLoop(ctx context.Context, agent *AgentInstance, opt
|
|||
|
||||
// 5a. Auto-advance plan phases after LLM iteration
|
||||
postStatus := agent.ContextBuilder.GetPlanStatus()
|
||||
if !agent.ContextBuilder.HasActivePlan() || !(postStatus == "executing" || postStatus == "review" || postStatus == "completed") {
|
||||
if !agent.ContextBuilder.HasActivePlan() ||
|
||||
!(postStatus == "executing" || postStatus == "review" || postStatus == "completed") {
|
||||
break
|
||||
}
|
||||
|
||||
|
|
@ -2739,7 +2740,7 @@ func (al *AgentLoop) runLLMIteration(
|
|||
if reminder, ok := buildOrchReminder(iteration); ok {
|
||||
messages = append(messages, reminder)
|
||||
logger.DebugCF("agent", "Injected orchestration nudge",
|
||||
map[string]interface{}{
|
||||
map[string]any{
|
||||
"agent_id": agent.ID,
|
||||
"iteration": iteration,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -94,7 +94,10 @@ func (t *SpawnTool) Execute(ctx context.Context, args map[string]any) *ToolResul
|
|||
|
||||
// Validate preset name if provided
|
||||
if preset != "" && !IsValidPreset(Preset(preset)) {
|
||||
return ErrorResult(fmt.Sprintf("preset %q is not valid. Available presets: scout, analyst, coder, worker, coordinator", preset))
|
||||
return ErrorResult(fmt.Sprintf(
|
||||
"preset %q is not valid. Available presets: scout, analyst, coder, worker, coordinator",
|
||||
preset,
|
||||
))
|
||||
}
|
||||
|
||||
if t.manager == nil {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue