fix(agent): don't resume abandoned work after max_iterations

This commit is contained in:
er-s-an authored and Xubin Ren committed 2026-10-24 22:34:11 +08:00
1 parent 4bd1b74c6b
commit f4aacdbec2
6 files changed
+227 -1

No files matched your search

+2
View File
@@ -55,6 +55,8 @@ MCP connections are application-owned infrastructure. Composition roots create a
Keep this split in mind when debugging. If a problem is about channel routing, session keys, workspace selection, or outbound delivery, start in `agent/loop.py`. If it is about provider calls, tool calls, streaming, or iteration limits, start in `agent/runner.py`.
After a terminal tool-iteration limit, the next ordinary turn receives a short runtime-context note to follow the current request and resume unfinished work only when asked. `session/turn_continuation.py` owns this budget-stop context; a queued Goal continuation is not a terminal stop. The note is stored with that input for stable model-history replay but is hidden from display history. Tool calls and results remain intact. New or forked histories do not inherit the pending note. This is model guidance, not a tool-execution ban or a fix for sudo authentication.
## Providers
Provider metadata is centralized in `nanobot/providers/registry.py`. Configuration fields live in `nanobot/config/schema.py`.