Skip to content

Commit 7926cb6

Browse files
dancinlifeclaude
andcommitted
feat(P7 phase B1): default persist-bytes-mmap = true
Crash recovery should be on by default — opt-out, not opt-in. macOS panic without it loses every pane's scrollback; with it, loss is bounded to ≤1s by the msync timer (worst case) and <16KB for void-only crashes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 8fd05c5 commit 7926cb6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/config/Config.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2852,7 +2852,7 @@ keybind: Keybinds = .{},
28522852
@"shell-integration-features": ShellIntegrationFeatures = .{},
28532853

28542854
/// PTY byte stream persistence via mmap'd ring buffer per pane.
2855-
/// (P7 Phase B1-prep, opt-in.) Default: `false`.
2855+
/// (P7 Phase B1.) Default: `true`.
28562856
///
28572857
/// When `true`, every `read()` from the PTY master appends to a
28582858
/// ring at `~/.void/sessions/<wid>/tabs/<tid>/panes/<pid>/bytes.ring`
@@ -2868,7 +2868,7 @@ keybind: Keybinds = .{},
28682868
/// Cost: ~16 KB per typical PTY read, mmap memcpy ≈ 0 µs. msync
28692869
/// every 1s amortizes to negligible CPU (<0.1%). Disk: 4 MB per pane
28702870
/// × N panes — typically <100 MB for a power user session set.
2871-
@"persist-bytes-mmap": bool = false,
2871+
@"persist-bytes-mmap": bool = true,
28722872

28732873
/// Custom entries into the command palette.
28742874
///

0 commit comments

Comments
 (0)