Repository navigation
fix: start on a terminal that reports 0x0, and give the macOS JSONL history path - #8
Merged
Merged
Conversation
…istory path A pty whose size was never set reports 0 rows and 0 columns. termina's get_dimensions returned an error, Terminal::with_options panicked, and the panic recovery returned EOF, which logs the shell out. Fall back to 80x24 instead. The JSONL history path comes from dirs::data_local_dir(), which is ~/Library/Application Support on macOS, not ~/.local/share. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
Zero-size terminal
A pty whose size was never set reports 0 rows and 0 columns, and has no
LINESorCOLUMNSeither. termina'sget_dimensionsreturned an error, soTerminal::with_options(...).expect(...)panicked. The panic recovery then returned EOF, which logs the shell out. termina now falls back to 80x24, which covers every size call: startup, the resize loop and rendering. The change is listed with the other termina patches invendor/README.md.To reproduce: run
pty.fork()withHISTFILE=/dev/null,unset LINES COLUMNSandstty size, which prints0 0, thenenable -f libflyline flylineand type a command.JSONL history path
default_jsonl_path()usesdirs::data_local_dir(), which is~/Library/Application Supporton macOS. The--jsonl-pathhelp, theHistoryBackend::Flylinedoc and the guide said~/.local/shareeverywhere. They now name both paths.Checks
cargo fmt -- --checkpasses.cargo clippy --workspace --all-features -- -D warningspasses.RUSTDOCFLAGS="-D warnings" cargo docpasses.cargo test --lib: 908 passed.🤖 Generated with Claude Code