Skip to content

feat(logs): retain bounded session output#19

Merged
msmps merged 1 commit into
mainfrom
feat/retention-logs
Jul 11, 2026
Merged

feat(logs): retain bounded session output#19
msmps merged 1 commit into
mainfrom
feat/retention-logs

Conversation

@msmps

@msmps msmps commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • retain a bounded raw-output tail for every live session
  • add protocol-gated logs and per-session retention overrides
  • read the daemon retention default once from PILOTTY_RETAIN_BYTES
  • write exact raw bytes to stdout and retention accounting to stderr
  • document the new command and configuration

Compatibility

  • existing spawn requests remain compatible with protocol 0
  • retention overrides and logs require protocol 1
  • current clients probe older daemons and reject logs before transmission

Verification

  • cargo test --all
  • cargo clippy --all --benches --tests --examples --all-features -- -D warnings
  • cargo fmt --all -- --check
  • manual isolated-daemon validation with an 8-byte ring confirmed exact retained bytes and truncation accounting

@msmps
msmps merged commit dca617b into main Jul 11, 2026
6 checks passed
@msmps
msmps deleted the feat/retention-logs branch July 11, 2026 16:25
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