Skip to content

Add session retention pruning - #53573

Closed
olivecasazza wants to merge 1 commit into
anomalyco:devfrom
olivecasazza:con-212-session-retention
Closed

olivecasazza wants to merge 1 commit into
anomalyco:devfrom
olivecasazza:con-212-session-retention

Conversation

@olivecasazza

Copy link
Copy Markdown

Summary

  • add a session prune service method that archives old sessions and deletes retained message/part/event rows
  • add opencode session prune --ttl-days <days> [--vacuum] as the retention trigger
  • optionally checkpoint/VACUUM after pruning to reclaim disk

Verification

  • git diff --check
  • npx --yes [email protected] run --cwd packages/opencode typecheck
  • npx --yes [email protected] x oxlint packages/opencode/src/cli/cmd/session.ts packages/opencode/src/session/session.ts
  • npx --yes [email protected] run lint fails on pre-existing repository lint error in packages/session-ui/src/v2/components/prompt-input/index.tsx (deprecated octal escape in CSS content) plus existing warnings

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Hey! Your PR title Add session retention pruning doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Oct 6, 2026
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 72 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 72-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Oct 9, 2026
@github-actions github-actions Bot closed this Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants