Skip to content

Fix stale status display by paginating drawer metadata#892

Closed
ldtalexthip wants to merge 1 commit intoMemPalace:developfrom
ldtalexthip:fix/status-pagination
Closed

Fix stale status display by paginating drawer metadata#892
ldtalexthip wants to merge 1 commit intoMemPalace:developfrom
ldtalexthip:fix/status-pagination

Conversation

@ldtalexthip
Copy link
Copy Markdown

Summary

  • mempalace status hard-caps col.get(limit=10000, ...) which makes the header literally display MemPalace Status — 10000 drawers once a palace exceeds 10k drawers.
  • Room totals freeze at whatever fell inside the first 10k page, so long-lived palaces silently drift out of sync with Chroma.
  • This patch paginates in 5k chunks up to col.count() so the reported totals match what's actually stored.

Before:

MemPalace Status — 10000 drawers
  WING: migration_ops
    ROOM: technical   5401 drawers
    ROOM: general        7 drawers  (actual: 19,475)

After:

MemPalace Status — 45743 drawers
  WING: migration_ops
    ROOM: general    19475 drawers
    ROOM: technical   5401 drawers
    ...

Test plan

  • Run mempalace status against a palace with >10k drawers — totals now match col.count()
  • Run against an empty palace — no divide-by-zero / empty-list issues
  • Run against a palace at exactly 10k drawers (boundary) — should loop once with offset=0, then exit

The status command was hard-capped at 10,000 drawers via col.get(limit=10000),
so any palace larger than that would display an undercount and room totals
would freeze at whatever fell inside the first 10k page.

Paginate in 5,000-drawer chunks up to col.count() so the reported totals
match what is actually in Chroma.

Before: MemPalace Status — 10000 drawers (capped)
After:  MemPalace Status — 45743 drawers (accurate)
@igorls igorls added bug Something isn't working area/cli CLI commands labels Apr 14, 2026
@bensig
Copy link
Copy Markdown
Collaborator

bensig commented Apr 14, 2026

closing in favor of #851 which covers the same status pagination fix and is mergeable. thanks @ldtalexthip!

@bensig bensig closed this Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cli CLI commands bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants