Don't call a Merge & continue a dismissal of the ready call
This commit is contained in:
@@ -118,7 +118,7 @@ func (m *Manager) cancelReadyTool(l *live) mcp.Tool {
|
||||
"The human then no longer sees the task as ready to merge or as suggested for discard; call ready_for_merge or suggest_discard again once it holds.",
|
||||
InputSchema: json.RawMessage(`{"type": "object", "properties": {}}`),
|
||||
Handler: func(ctx context.Context, raw json.RawMessage) (string, error) {
|
||||
err := m.store.ClearReady(ctx, l.taskID, agentActor)
|
||||
err := m.store.ClearReady(ctx, l.taskID, agentActor, "")
|
||||
if errors.Is(err, store.ErrNotFound) {
|
||||
return "", fmt.Errorf("%w: this task has no standing ready_for_merge or suggest_discard", ErrConflict)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user