Skip to content

gbrain search can hang after printing results and search modes routes incorrectly #1343

@eloe

Description

@eloe

What happened?

Two related gbrain search CLI issues showed up on the local PGLite setup:

  1. gbrain search "GBrain setup smoke test" printed the expected result but then did not exit, requiring an external timeout wrapper.
  2. gbrain search modes routed through the legacy search <query> operation and searched the brain for the word modes instead of opening the newer search namespace dashboard.

What did you expect?

  • One-shot gbrain search <query> should print results and exit cleanly.
  • gbrain search modes, gbrain search stats, and gbrain search tune should route to the search namespace before the legacy generic search operation.

Steps to reproduce

  1. Use a PGLite-backed brain with at least one matching page.
  2. Run gbrain search "GBrain setup smoke test".
  3. Observe output is printed but the process hangs.
  4. Run gbrain search modes.
  5. Observe it performs a legacy text search for modes instead of printing the search mode dashboard.

Environment

  • gbrain version: gbrain 0.40.8.0
  • OS: macOS 26.5
  • Bun version: 1.3.14
  • Database: PGLite

gbrain doctor --json output

Doctor completed with status: warnings, health_score: 95, schema version 92, PGLite connection OK. Full local output omitted from the issue to avoid dumping machine-specific paths/config; the relevant checks were healthy for connection, schema version, embeddings, and PGLite vector support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions