Skip to content

bug: dewey_reload returns success but graph_overview shows 0 pages until re-scan completes #92

Description

@jflowers

Summary

dewey_reload returns "Vault reloaded successfully" immediately, but dewey_graph_overview called right after shows 0 pages, 0 blocks, 0 links. The server appears to return before the vault re-scan is complete.

Reproduction

  1. Verify server has content:
    dewey_health() → embeddingCount: 8127, sources with pageCount > 0
    
  2. Call reload:
    dewey_reload() → "Vault reloaded successfully"
    
  3. Immediately call overview:
    dewey_graph_overview() → {totalPages: 0, totalBlocks: 0, totalLinks: 0}
    
  4. Subsequent calls to list_pages, search, get_page also return empty.

Expected Behavior

Either:

  • dewey_reload should be synchronous — return only after the re-scan is complete and pages are available, OR
  • dewey_reload should return a status indicating re-scan is in progress, and dewey_graph_overview / dewey_health should reflect the "reloading" state

Impact

  • After a reload, the MCP server appears empty — all read tools return no results
  • No way to tell when the reload has completed
  • Agents calling reload to pick up new content get worse results than before the reload

Environment

  • dewey version: dev
  • Backend: obsidian (default)
  • Server: dewey serve --vault . via OpenCode MCP

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions