Add an explicit agentd command to reset persistent session context without deleting agent config. Semantics: stop agent if running, delete checkpoint state used for --resume, optionally clear session log, clear persisted messages metadata, and restart only if previously active. This gives a first-class replacement for manual checkpoint deletion when sessions get stuck in a stale conversational loop.
Committed in 1487d8c8. Added 'agentd reset' to clear persistent checkpoint context (optional --clear-log), wired CLI command parsing/dispatch, and documented usage in Omni/Agentd/SPEC.md.
Implemented explicit persistent context reset command.
What changed:
resetcommand:agentd reset ID [--clear-log] [--mode MODE]resetPersistentAgentContextcontrol-plane op.1) validate agent exists 2) stop the persistent service 3) remove checkpoint artifacts (and stale fifo) so
--resumehas no prior context 4) clear DB message/state metadata for the agent 5) optionally truncate session JSONL log with--clear-log6) restart only if session was active before resetagentd reset <name> --mode persistentand--clear-logVerification:
agentd reset --helpRuntime smoke:
agentd reset omni-coder --mode persistentRun exactly one command with run_bash: echo reset-ok...reset-okfrom fresh post-reset context.