Skip to content

feat(session): retain stopped-session logs until explicit prune - #133

Merged
ElbertePlinio merged 2 commits into
mainfrom
feat/111-session-log-retention
Sep 9, 2026
Merged

ElbertePlinio merged 2 commits into
mainfrom
feat/111-session-log-retention

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Stopped-session logs stay under the session directory for desktop, browser, and Android. Teardown removes runtime sockets, locks, permits, profiles, and temp data once processes are confirmed gone. A failed start keeps its diagnostics and error record.

Logs are never pruned automatically. pickforge-lab session prune --older-than 7d or --all-stopped deletes eligible retained logs. Prune skips registry-backed sessions, teardown locks, unknown data, symlinks, and legacy directories without stopped.json.

Validation on this branch: bun install --frozen-lockfile, bun run typecheck, bun run lint, bun run test (1526 passed, 4 skipped), bun run build, complexity-gate check --changed.

Closes #111

Keep desktop, browser, and Android logs in the session directory after
teardown, remove runtime data, and leave failed-start diagnostics in
place. Add pickforge-lab session prune so retained logs are deleted only
on request.
@ElbertePlinio
ElbertePlinio force-pushed the feat/111-session-log-retention branch from 84808ea to 1fca455 Compare September 9, 2026 12:52
@ElbertePlinio
ElbertePlinio merged commit b60de03 into main Sep 9, 2026
10 checks passed
@ElbertePlinio
ElbertePlinio deleted the feat/111-session-log-retention branch September 9, 2026 13:11
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.

Define and enforce stopped-session log retention

1 participant