Skip to content

tracking: SQLite data integrity — unbounded prompt bloat (no cap/retention/VACUUM) and busy_timeout=0 drops writes under contention #2969

Description

@thedotmack

Root Cause

user_prompts.prompt_text stores entire UserPromptSubmit payloads verbatim (~990KB average, duplicated in sdk_sessions.user_prompt), with no retention policy, size cap, or VACUUM, causing databases to grow to 100+ GB. Separately, the SQLite connection runs with busy_timeout=0, so any write under lock contention immediately fails and the observation is silently dropped. These are distinct but both SQLite data-integrity bugs.

Tracked Items

Issues

PRs

Resolution

This is the canonical tracking issue for this root cause. Individual issues and PRs listed above will be closed in favor of this one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bugtrackingCanonical issue consolidating duplicate bug reports by root cause

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions