Fork tasks from snapshots; snapshot only when text follows tool calls
This commit is contained in:
@@ -134,8 +134,6 @@ func (m *Manager) ask(ctx context.Context, l *live, raw json.RawMessage) (string
|
||||
l.askedBlock = l.askedBlock || *args.Blocking
|
||||
m.mu.Unlock()
|
||||
|
||||
m.snapshotSoon(l, api.SnapshotTriggerAskHuman)
|
||||
|
||||
cancel := fmt.Sprintf("If the human answers it some other way, such as in a chat message, withdraw it with cancel_question and question_id %q.", id)
|
||||
if *args.Blocking {
|
||||
return fmt.Sprintf("Question filed in the human's inbox. question_id: %s. It is blocking: end your turn now. The answer will arrive as your next message. %s", id, cancel), nil
|
||||
|
||||
Reference in New Issue
Block a user