Storage paths for offloaded conversation history.
Return whether offload history is routed to non-persistent storage.
True when the persistent ~/.deepagents location was unwritable and the
most recent _offload_fallback_root fell back to a temporary directory that
may not survive a restart. Only meaningful in local mode, where
_offload_fallback_root runs in the same process as the UI; in
server/sandbox mode persistence is owned by the server backend and this flag
stays False client-side.
Remove a thread's offloaded conversation-history archive.
Deletes the per-thread markdown file written by the local-mode
conversation_history backend ({root}/conversation_history/{thread_id}.md),
resolving root with _offload_fallback_root so the persistent
~/.deepagents location and any temporary fallback are both covered.
Best-effort: filesystem failures are logged and swallowed rather than
raised, so a failed cleanup never blocks thread deletion. Resolving the
offload root is not side-effect-free -- it creates (and hardens) the
conversation_history directory and writes a short-lived probe file -- so a
call for a thread that has no archive still touches the filesystem before
returning False.
In server/sandbox mode the archive lives on the sandbox backend rather than
the local ~/.deepagents directory, so there is no local archive to remove.