mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-07-28 01:27:58 +00:00
ffffb6a0cb
Address review feedback: the routed-agent /clear path bypassed the public ContextManager.Clear contract via an unexported hook. Restore the single Clear call in the command path and resolve the session's owning agent inside the built-in implementations instead: - legacy: Clear resolves the owning agent via agentForSession instead of assuming the default agent - seahorse: drop ClearContextStore; Clear wipes the engine state and the owning agent's session store - command path: persist session scope metadata before Clear so ownership resolves even when /clear is the session's first message - add coverage that a custom ContextManager receives Clear for routed agents Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>