Repository navigation
feat(session,cli): add compaction epoch APIs, summary parser, and ox sessions show - #1233
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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
SessionEpoch,SessionStore::list_session_epochs,SessionStore::load_epoch_messages, andSessionStore::fork_session_at_seqinox-coreusing the existingcompactionsandmessagestables with zero schema migration, and exposeSessionSummary::compaction_countfromlist_session_summaries.CompactionSummaryViewandparse_compaction_summaryinox-core, and include an<archived-transcript session="<id>" seq="<start>..=<end>" command="ox sessions show <id> --full" />pointer when persisting compaction summaries inAgent::compactandmaybe_auto_compact.ox sessions show <id>with--full,--epoch <n>, and--grep <pattern>flags, and document the new CLI subcommand and compaction epoch APIs indocs/reference/core/cli.mdanddocs/reference/core/sessions.md.SessionSummarytest fixture literals incrates/ox-tui/tests/common/preview_scenes.rsfor the newcompaction_countfield (leaving TUI/resumegrouping and transcript rendering for Part 2).Test plan
nix develop -c run-hooks(all 20 hooks passed, includingclippy,cspell,rustfmt,dprint, andmarkdownlint-cli2)cargo test -p ox-core -p ox(62oxunit tests, 290ox-coreunit tests, and 2plugin_subprocessintegration tests passed, with 4 opt-in live tests ignored)cargo doc --no-deps(workspace documentation built with zero warnings)Related