Fork tasks from snapshots; snapshot only when text follows tool calls
This commit is contained in:
@@ -363,6 +363,9 @@ func (m *Manager) signalText(ctx context.Context, ev api.Event) (string, error)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
if task.ForkedFrom != nil {
|
||||
return fmt.Sprintf("%s was forked by %s from %s at snapshot %d.", m.taskLabel(ctx, task.Id), ev.Actor, m.taskLabel(ctx, *task.ForkedFrom), *task.ForkedAt), nil
|
||||
}
|
||||
if task.TodoItem == nil {
|
||||
return fmt.Sprintf("%s was created by %s.", m.taskLabel(ctx, task.Id), ev.Actor), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user