style: 代码格式优化与清理

- 删除多余的空行 (loop.go, loop_test.go)
- 格式化长字符串参数,提高可读性 (cmd_mode.go)
- 修复注释对齐 (runtime.go)
This commit is contained in:
seagochen 2026-03-10 12:46:51 +08:00
parent 704a27c279
commit 4c96d8194a
4 changed files with 4 additions and 4 deletions

View file

@ -1999,7 +1999,6 @@ func (al *AgentLoop) buildCommandsRuntime(agent *AgentInstance, opts *processOpt
agent.Model = value
return oldModel, nil
}
}
return rt
}

View file

@ -871,7 +871,6 @@ func TestHandleCdCommand_SymlinkEscape(t *testing.T) {
}
}
func TestTargetReasoningChannelID_AllChannels(t *testing.T) {
tmpDir, err := os.MkdirTemp("", "agent-test-*")
if err != nil {

View file

@ -51,7 +51,9 @@ func hipicoCmnd() Definition {
}
}
if msg == "" {
return req.Reply("👋 Hi~ What can I help you with?\n\n💡 Examples:\n /hipico what files are in the working directory?\n /hipico what time is it now?\n /hipico what's the progress on the previous task?")
return req.Reply(
"👋 Hi~ What can I help you with?\n\n💡 Examples:\n /hipico what files are in the working directory?\n /hipico what time is it now?\n /hipico what's the progress on the previous task?",
)
}
reply, err := rt.RunOneShot(ctx, msg)
if err != nil {