feat: tmux snapshot summarization with multi-backend support#174
Closed
snibbor2 wants to merge 4 commits intoYeachan-Heo:devfrom
Closed
feat: tmux snapshot summarization with multi-backend support#174snibbor2 wants to merge 4 commits intoYeachan-Heo:devfrom
snibbor2 wants to merge 4 commits intoYeachan-Heo:devfrom
Conversation
2 tasks
Add content-change summarization and heartbeat events for tmux sessions. Supports Gemini CLI, OpenRouter API, and OpenAI-compatible API backends with configurable intervals, min-new-lines thresholds, and raw passthrough. - New summarize module with Summarizer trait and three backends - Provider configs (gemini, openrouter, openai) in AppConfig - tmux.content_changed and tmux.heartbeat event types with routing/rendering - Summarization dispatch in both poll_tmux and monitor_registered_session loops - Tests for count_new_lines, should_summarize_now, and render formats Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…hanced-session-list - Add is_infrastructure_failure() helper to distinguish 5xx/network errors from Discord API policy rejections (4xx) - Gate circuit breaker record_failure on infrastructure failures only - Replace eager per-change summarization with interval-gated approach: summaries fire only when the summary interval has elapsed AND content has changed since the last summary, checked after heartbeat in both wrapper and config polling paths - Add session_last_summarized_snapshot tracking for min_new_lines checks - Add maybe_emit_registered_session_summary() for wrapper path Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…sion end Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Collapse nested if/if-let into if-let chain at tmux.rs:537 (same fix as feat/enhanced-session-list). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ef3af50 to
a0773df
Compare
Owner
|
Thanks for the draft. I'm closing this for now instead of leaving it open in draft limbo. The tmux summarization scope is substantial, introduces new backend/config surface, and needs to come back as a merge-ready update on top of current — |
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
Adds configurable snapshot summarization for monitored tmux sessions. Instead of forwarding raw terminal output, clawhip can condense it through a pluggable backend before delivery.
Config example
Key fields
Notes
Test plan