Skip to content

feat: doctor suggests db:maintain when reclaimable space is large - #248

Merged
Ponpon55837 merged 1 commit into
mainfrom
feat/doctor-vacuum-hint
Oct 16, 2026
Merged

Ponpon55837 merged 1 commit into
mainfrom
feat/doctor-vacuum-hint

Conversation

@Ponpon55837

Copy link
Copy Markdown
Owner

Summary

  • pnpm check (also the last step of pnpm bootstrap) reads PRAGMA page_size × freelist_count read-only and reports it as reclaimable space.
  • With at least 1 MiB free and either 5 MiB or 20% of the file, it shows a 「可回收空間」 warning that suggests stopping the server and Agents and running pnpm db:maintain. It never runs VACUUM itself.
  • Docs: README (en / zh-TW), user guide, architecture, CHANGELOG 1.6.0 and docs/releases/1.6.0.md. No version bump (already 1.6.0); v1.6.0 gets tagged after this merges.

Tests

  • New tests in tests/server/doctor.test.ts: a synthetic DB with dropped data reports reclaimable bytes without changing the file; threshold boundaries for shouldSuggestReclaim.
  • Local: server suite 225 passed / 1 skipped; lint, format:check, typecheck pass.

🤖 Generated with Claude Code

pnpm check (and the last step of pnpm bootstrap) now reads the free pages
inside the database file read-only and warns when at least 1 MiB is free and
either 5 MiB or 20% of the file. It only suggests pnpm db:maintain and never
runs VACUUM itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Ponpon55837
Ponpon55837 enabled auto-merge October 16, 2026 03:37
@Ponpon55837
Ponpon55837 merged commit 15c6ce8 into main Oct 16, 2026
4 checks passed
@Ponpon55837
Ponpon55837 deleted the feat/doctor-vacuum-hint branch October 16, 2026 05:58
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