Skip to content

feat: auto-prune inactive terminal sessions#5

Draft
zzj3720 wants to merge 1 commit into
mainfrom
codex/session-janitor-24h
Draft

feat: auto-prune inactive terminal sessions#5
zzj3720 wants to merge 1 commit into
mainfrom
codex/session-janitor-24h

Conversation

@zzj3720
Copy link
Copy Markdown
Collaborator

@zzj3720 zzj3720 commented Apr 3, 2026

Summary

  • add a worker-side SessionJanitor that sweeps inactive terminal sessions on startup and on an interval
  • delete persisted session, inbound, and background-job state plus workspace/job/log artifacts when a session is eligible
  • add config knobs, docs, and coverage for the janitor path

Testing

  • pnpm test
  • pnpm build
  • manual smoke: built SessionJanitor against temp broker state and verified the stale session record and workspace directory were removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant