Fork tasks from snapshots; snapshot only when text follows tool calls

This commit is contained in:
Ian Gulliver
2026-10-15 11:36:51 -07:00
parent 3fe0374ac5
commit 0000db1f86
25 changed files with 893 additions and 421 deletions
-2
View File
@@ -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