fix(honcho): preserve deferred routing invariants

Thread logical session cwd through deferred Desktop/TUI builds, normalize absent cwd during construction, and share title provenance constants between SessionDB and Honcho.

(cherry picked from commit 2693f4f27c776ac819d92c9b52e8a03ad2a985d8)
This commit is contained in:
outpoints
2026-08-28 16:05:23 -07:00
committed by Teknium
parent 5237cab756
commit 44ba32a565
8 changed files with 137 additions and 8 deletions
+1 -1
View File
@@ -2236,7 +2236,7 @@ def init_agent(
setattr(agent, _name, _params[_name])
for _name in _GATEWAY_IDENTITY_PARAMS:
setattr(agent, f"_{_name}", _params[_name])
agent.session_cwd = cwd
agent.session_cwd = cwd or None
# Shared iteration budget: parent creates, children inherit.
agent.iteration_budget = iteration_budget or IterationBudget(max_iterations)
# CLI replaces this with _cprint so raw ANSI status lines go through prompt_toolkit's