Tell agents to shorten a merge title over 72 characters

This commit is contained in:
Ian Gulliver
2026-10-16 13:04:35 -07:00
parent 5b22e5bc70
commit 1296abcf4b
3 changed files with 14 additions and 1 deletions
+3
View File
@@ -680,6 +680,9 @@ func (m *Manager) startLive(ctx context.Context, sess api.AgentSession, task api
return nil, err
}
tools := append([]mcp.Tool{m.askTool(l), m.cancelQuestionTool(l), m.setMergeTitleTool(l), m.stopMergeTool(l), m.setTaskSummaryTool(l), m.searchClosedTool(l), m.exposePortTool(l)}, m.subtaskTools(l)...)
if sess.Role == api.Implementer {
g += longTitleGuidance(task)
}
if sess.Role == api.Implementer && task.WorkflowStage != nil {
frozen, err := m.store.TaskWorkflow(ctx, task.Id)
if err != nil {