Conversation
…ession state Implements /new slash command that resets conversation history, tool call cache, and context budget without reinitializing memory (SQLite + Qdrant), MCP connections, or provider configuration. - Fail-fast: new conversation ID created in SQLite before any state mutation - Aborts in-flight JoinHandles (compression, sidequest, subgoal tasks) - Cancels running plan token and shuts down active subagents - Optional --no-digest flag skips carry-over session digest generation - Optional --keep-plan flag preserves pending orchestration graph - Background digest generation (30s bounded, fire-and-forget) - TUI spinner emitted via status_tx before and after reset - Channel-generic: works identically across CLI, TUI, and Telegram - 3 unit tests for reset_compaction, FocusState::reset, SidequestState::reset Closes #2451
a1a30a4 to
4056c88
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/newslash command that resets conversation history, tool call cache, and context budget without touching memory (SQLite + Qdrant), MCP connections, or provider config--no-digestflag skips carry-over session digest;--keep-planpreserves pending orchestration graphstatus_txaround the reset operationChanged Files
slash_commands.rs— registered/new [--no-digest] [--keep-plan]under Session categorymod.rs—/newarm inhandle_builtin_commandwith flag parsingcontext/assembly.rs—reset_conversation()+spawn_outgoing_digesthelpercontext_manager.rs—reset_compaction()methodfocus.rs—FocusState::reset()methodsidequest.rs—SidequestState::reset()methodsession_digest.rs—generate_and_store_digestfree function for background useTests
7342 passed (+3 vs baseline). New unit tests:
reset_compaction_clears_exhausted_statereset_clears_all_session_statereset_zeroes_all_countersFollow-ups (non-blocking)
IndexState.cached_repo_mapandtrace_collector.active_iterationsnot cleared on reset (TTL-based, cosmetic)Closes #2451