Repository navigation
feat(sessions): raise default session-store disk budget to 10 GiB - #110221
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 17, 2026, 7:05 PM ET / 23:05 UTC. Summary PR surface: Source 0, Tests 0, Docs 0. Total 0 across 5 files. Reproducibility: not applicable. This PR changes a deliberate default rather than repairing a reported failing behavior. Source inspection clearly identifies the current fallback and the maintenance path that consumes it. Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Approve the 10 GiB policy only if the session owners explicitly accept the upgrade-time disk-growth tradeoff, then retain this narrow implementation with a redacted real session-maintenance proof; otherwise keep the 2 GiB default and document the existing explicit opt-in setting. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes a deliberate default rather than repairing a reported failing behavior. Source inspection clearly identifies the current fallback and the maintenance path that consumes it. Is this the best way to solve the issue? Unclear: the code is the narrowest implementation of the chosen policy, but whether 10 GiB is the right upgrade default requires explicit owner approval and real runtime evidence of the resulting retention behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against efd76b739252. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source 0, Tests 0, Docs 0. Total 0 across 5 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
# Conflicts: # src/config/schema.help.ts
|
Merged via squash.
|
What Problem This Solves
The per-agent session-store disk budget defaults to 2 GiB. For a long-lived personal agent with a rolling main session, that budget is the only bound on archived transcript retention — and 2 GiB starts evicting conversation history far too early. Archives are the agent's long-term conversational record; evicting them is silent memory loss.
Why This Change Was Made
Raise the default
session.maintenance.maxDiskBytesfrom 2 GiB to 10 GiB. Disk is cheap; conversation history is not recoverable. The high-water mark stays at the derived 80% (now 8 GiB). Operators on constrained disks can still set a lower budget orfalseto disable.User Impact
Agents keep roughly 5× more archived transcript history before oldest-first eviction kicks in. No config migration needed — explicit
maxDiskBytesvalues are untouched; only the unset default changes.Evidence
src/config/sessions/store-maintenance.ts—DEFAULT_SESSION_MAX_DISK_BYTES2 GiB → 10 GiBsrc/config/sessions/store.pruning.test.tsSessionMaintenanceConfigtype docs, anddocs/reference/session-management-compaction.mdaligned