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:
dj-oyu 2026-03-01 03:41:06 +09:00
parent 27130f7226
commit 2f3efb4c8f
2 changed files with 7 additions and 3 deletions

View file

@ -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,
})

View file

@ -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 {