Skip to content

fix(#403): contradictory server log + misleading DB size label - #414

Merged
ajianaz merged 1 commit into
developfrom
fix/403-server-log-stats
Jun 21, 2026
Merged

ajianaz merged 1 commit into
developfrom
fix/403-server-log-stats

Conversation

@ajianaz

@ajianaz ajianaz commented Jun 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes #403

Bug 1: Contradictory server detection log

When server was detected but command unsupported via HTTP (aging, doctor, etc.), the fallback path logged No server detected — contradicting the earlier Server detected info log.

Fix: Now logs Opening local store for server-unsupported command when server IS available but command falls back to local.

Bug 2: Misleading db_size_bytes

Stats reported global DB size alongside namespace-scoped memory count, making a 10-memory namespace appear to use 1.7 MB.

Fix: Added "(global, shared)" label in human output. Updated doc comment to clarify.

Enhancement (deferred)

Aging defaults → deferred to #404 (configurable limits) in v0.3.0 scope.

Milestone: v0.2.1 — DX & Ecosystem

@github-actions

github-actions Bot commented Jun 21, 2026 •

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-cli · BYOK · MIT

Three fixes for v0.2.0 validation issues:

1. **Contradictory server detection log**: When server was detected but
   command unsupported (aging, doctor, etc.), code fell through to
   "No server detected" — contradicting the earlier "Server detected"
   info log. Now logs "Opening local store for server-unsupported
   command" when server IS available but command falls back to local.

2. **Misleading db_size_bytes**: Stats reported global DB size alongside
   namespace-scoped memory count, making a 10-memory namespace appear to
   use 1.7 MB. Added "(global, shared)" label in human output and
   updated doc comment to clarify the field is global across all
   namespaces.

3. **Aging defaults**: Documented in issue but deferred to #404
   (configurable limits) — moving hardcoded constants to config is a
   larger refactor that belongs in v0.3.0 scope.
@ajianaz
ajianaz force-pushed the fix/403-server-log-stats branch from 2af1369 to 9202993 Compare June 21, 2026 09:58
@ajianaz
ajianaz merged commit 469036c into develop Jun 21, 2026
8 checks passed
@ajianaz
ajianaz deleted the fix/403-server-log-stats branch June 21, 2026 10:02
ajianaz added a commit that referenced this pull request Aug 13, 2026
Three fixes for v0.2.0 validation issues:

1. **Contradictory server detection log**: When server was detected but
   command unsupported (aging, doctor, etc.), code fell through to
   "No server detected" — contradicting the earlier "Server detected"
   info log. Now logs "Opening local store for server-unsupported
   command" when server IS available but command falls back to local.

2. **Misleading db_size_bytes**: Stats reported global DB size alongside
   namespace-scoped memory count, making a 10-memory namespace appear to
   use 1.7 MB. Added "(global, shared)" label in human output and
   updated doc comment to clarify the field is global across all
   namespaces.

3. **Aging defaults**: Documented in issue but deferred to #404
   (configurable limits) — moving hardcoded constants to config is a
   larger refactor that belongs in v0.3.0 scope.
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.

bug: contradictory server detection log + misleading stats DB size + aging defaults to no auto-cleanup

1 participant