feat(tui): add compression guidelines status line and /guidelines command#1848
Merged
feat(tui): add compression guidelines status line and /guidelines command#1848
Conversation
…mand (#1803) - Add `guidelines_version` and `guidelines_updated_at` fields to `MetricsSnapshot` - Add `load_compression_guidelines_meta()` to SqliteStore (version + created_at only) - Add `sync_guidelines_status()` called from persistence sync (same pattern as graph counts) - Add `/guidelines` slash command: fetches full text, shows header with version + timestamp - Add `TuiCommand::ViewGuidelines` variant in `build_graph_experiment_commands()` - Conditionally render guidelines status line in memory panel widget (version > 0) - Add `memory_with_guidelines` snapshot test for the new status line - All new code feature-gated on `compression-guidelines` (core/memory) and `tui` - Fix stale config snapshot missing `shutdown_summary` fields from #1816
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.
Closes #1803
Summary
Implements two TUI features deferred from MVP (ACON compression guidelines section 8.2):
Guidelines: vN (timestamp)when compression guidelines exist, hidden when version is 0/guidelinesslash command: displays current guidelines text with version and last-updated header, truncated at 4096 chars to avoid floodingChanges
zeph-memory:load_compression_guidelines_meta()— lightweight query returning(version, created_at)without fetching full textzeph-core:sync_guidelines_status()called from persistence sync (same pattern assync_graph_counts)zeph-core:guidelines_commands.rs—/guidelineshandler;dispatch_slash_command()dispatchzeph-core:/guidelinesentry in slash commands registry (Memory category)zeph-tui:TuiCommand::ViewGuidelinesinbuild_graph_experiment_commands(); forwarding viauser_input_txzeph-tui: conditional guidelines status line in memory panel widgetcompression-guidelines(core/memory) andtuiTest plan
--features fullmemory_with_guidelinessnapshot test pins the rendered status lineload_compression_guidelines_meta()shutdown_summaryfields from feat(memory): store session summary on shutdown for short sessions without compaction #1816