Skip to content

Honor the configured flight recorder byte limit - #182

Merged
tony merged 2 commits into
masterfrom
fix/99-recorder-byte-bound
Dec 5, 2026
Merged

tony merged 2 commits into
masterfrom
fix/99-recorder-byte-bound

Conversation

@tony

@tony tony commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Closes #99

What changed, and why:

FlightRecorder(max_bytes=8) retains the last eight bytes. Zero counts input without retaining it. Invalid capacities raise before a PTY starts.

Checks run:

On Linux, Ruff formatting and lint, ty for Python 3.12 through 3.15, the full pytest suite with doctests, compiled Ghostty comparisons, and the Sphinx warnings-as-errors build passed.

Tool use:

Codex prepared the change and ran the local checks. A separate Codex reviewer replayed the changed behavior and checked the publication tree against the reviewed patch.

tony added a commit that referenced this pull request Dec 3, 2026
why: Readers need the behavior and scope of this change at release.

what:
- Add the unreleased entry for PR #182
- Preserve previously published notes and the parent branch's entries
@tony
tony marked this pull request as ready for review December 3, 2026 01:52
@tony
tony force-pushed the fix/99-recorder-byte-bound branch from 8afbf60 to 356ed3a Compare December 3, 2026 23:58
tony added 2 commits December 5, 2026 07:43
why: An implicit recorder minimum overrides small retention limits.

what:
- Use the requested bound for direct recorders and PTY startup.
- Allow byte counting with zero retention and reject invalid bounds.
- Exercise short and long writes and recorder reuse.

Fixes #99
why: A diagnostic capture may need a small byte tail or only a total
     byte count.

what:
- Document positive, zero and negative capacities and the migration.
@tony
tony force-pushed the fix/99-recorder-byte-bound branch from 356ed3a to 1d8ced1 Compare December 5, 2026 13:44
@tony
tony changed the base branch from master to fix/97-startup-encoding-events December 5, 2026 13:44
@tony
tony changed the base branch from fix/97-startup-encoding-events to master December 5, 2026 13:52
@tony
tony merged commit 884535d into master Dec 5, 2026
9 checks passed
@tony tony mentioned this pull request Dec 5, 2026
35 of 38 tasks
@tony
tony deleted the fix/99-recorder-byte-bound branch December 5, 2026 20:42

This branch was successfully deployed

1 active deployment
docs — 1d8ced18 Deployed Dec 5, 2026 by tony via build (3.14) #430
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.

Honor or validate the requested FlightRecorder byte limit

1 participant