You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The payload-growth defect fixed by #522 left historical data in the local opencode.db. The #523 and #525 code fixes prevent or reduce future growth but cannot remove existing user sessions or return already allocated SQLite pages to the filesystem.
This is a destructive operator task, not a source-code delivery.
Scope
Identify the exact database path and create a verified backup before any mutation.
Produce a read-only dry run listing the proposed cutoff, affected session IDs/counts, event/message/part counts, estimated reclaimable bytes, and sessions that will remain.
Obtain explicit human approval for that exact deletion set.
Stop every opencode process, delete only approved sessions through a path that also removes event and event_sequence, then run SQLite integrity checks and VACUUM while exclusive access is guaranteed.
Record before/after counts, database size, integrity result, and application startup smoke result.
Safety constraints
No agent may execute deletion or VACUUM from this issue without a separate explicit approval after presenting the dry-run evidence and backup location.
Why
The payload-growth defect fixed by #522 left historical data in the local
opencode.db. The #523 and #525 code fixes prevent or reduce future growth but cannot remove existing user sessions or return already allocated SQLite pages to the filesystem.This is a destructive operator task, not a source-code delivery.
Scope
eventandevent_sequence, then run SQLite integrity checks andVACUUMwhile exclusive access is guaranteed.Safety constraints
VACUUMfrom this issue without a separate explicit approval after presenting the dry-run evidence and backup location.Acceptance
PRAGMA integrity_checksucceeds after cleanup.VACUUMand opencode starts successfully.Relations