Repository navigation
fix(#403): contradictory server log + misleading DB size label - #414
Merged
Merged
Conversation
🔍 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
force-pushed
the
fix/403-server-log-stats
branch
from
June 21, 2026 09:58
2af1369 to
9202993
Compare
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 earlierServer detectedinfo log.Fix: Now logs
Opening local store for server-unsupported commandwhen 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