fix: resolve golangci-lint issues in refactored files
- Remove extra blank line (gci) - Break long function signature for golines - Remove tautological nil check (govet nilness) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
bbe618a095
commit
b4021782c1
2 changed files with 4 additions and 6 deletions
|
|
@ -1357,7 +1357,6 @@ func (al *AgentLoop) publishToolMedia(ctx context.Context, result *tools.ToolRes
|
|||
})
|
||||
}
|
||||
|
||||
|
||||
// Helper to extract provider from registry for cleanup
|
||||
func extractProvider(registry *AgentRegistry) (providers.LLMProvider, bool) {
|
||||
if registry == nil {
|
||||
|
|
|
|||
|
|
@ -535,10 +535,7 @@ func (al *AgentLoop) runAgentLoopImpl(ctx context.Context, agent *AgentInstance,
|
|||
}
|
||||
|
||||
// 5d. Store result summary for task completion notification
|
||||
|
||||
if task != nil {
|
||||
task.Result = utils.Truncate(finalContent, 280)
|
||||
}
|
||||
task.Result = utils.Truncate(finalContent, 280)
|
||||
|
||||
// 6. Save final assistant message to session (deferred write-behind)
|
||||
|
||||
|
|
@ -644,7 +641,9 @@ func (al *AgentLoop) cleanupHeartbeatWorktree(agent *AgentInstance, opts process
|
|||
|
||||
// publishTaskCompletion publishes the final task status on completion for
|
||||
// background tasks, including the LLM response in the completion bubble.
|
||||
func (al *AgentLoop) publishTaskCompletion(task *activeTask, finalContent *string, opts processOptions, taskKey string) {
|
||||
func (al *AgentLoop) publishTaskCompletion(
|
||||
task *activeTask, finalContent *string, opts processOptions, taskKey string,
|
||||
) {
|
||||
al.activeTasks.Delete(taskKey)
|
||||
|
||||
if opts.TaskID == "" {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue