Skip to content

fix(tmux): parse notifications at exact max_bytes boundary (#11935)#12866

Open
04cb wants to merge 1 commit into
ghostty-org:mainfrom
04cb:fix/tmux-control-max-bytes-boundary-11935
Open

fix(tmux): parse notifications at exact max_bytes boundary (#11935)#12866
04cb wants to merge 1 commit into
ghostty-org:mainfrom
04cb:fix/tmux-control-max-bytes-boundary-11935

Conversation

@04cb

@04cb 04cb commented May 31, 2026

Copy link
Copy Markdown
Contributor

terminal/tmux: put() checked the max_bytes limit before deciding whether the byte would be stored. A finishing \n returns early without being buffered, so a payload of exactly max_bytes was wrongly rejected with error.OutOfMemory and the parser broke, silently dropping the notification. Moved the check to just before the byte is written. (#11935)

@04cb 04cb requested a review from a team as a code owner May 31, 2026 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant