Feature/iterm2 glimpse pane tail lines#1
Open
lehenbauer wants to merge 3 commits into
Open
Conversation
- Revert changes to `read_pane` - Remove shared `read_visible_lines` helper - Inline screen reading and trimming directly into `glimpse_pane` to keep the feature self-contained and avoid touching existing logic
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.
Adds a new
iterm2_glimpse_panetool to read only the bottom lines of a pane's visible screen buffer. This is particularly useful for quickly checking the recent output of long-running processes or logs without consuming the tokens required to read the entire screen.Key Features:
tail_lines(default: 10, max: 200) from the visible screen buffer.glimpse_pane. The existingread_panelogic and its underlying mechanisms remain strictlyuntouched to guarantee zero regressions for current users.Example Usage:
"Give me a quick glimpse of t3p1" - Claude will read just the bottom tail of the pane.
Testing:
glimpse, verifying successful reads, line counting, truncation flags, and argument validation. All tests pass.