Skip to content

bug: daemon unresponsive after index completes on macOS — gortex daemon stop and MCP tools hang #370

Description

@lijiacheng-jc

Describe the bug

After gortex daemon start --detach + gortex track completes indexing on a large workspace (~100 services, 20,000+ source files), the daemon becomes unresponsive:

  • gortex daemon stop hangs indefinitely (tested up to 5 minutes)
  • All MCP tools and gortex call CLI commands hang
  • ~/.gortex/cache/daemon.sock exists but is 0 bytes — no listener
  • Process shows state UN (uninterruptible sleep) in ps aux

To Reproduce

  1. macOS 26.5 arm64 (Apple M1 Pro, 16 GB RAM)
  2. Gortex v0.61.4+447e66c (go1.26.4)
  3. gortex daemon start --detach
  4. gortex track /path/to/workspace (~20,000 source files)
  5. Wait for indexing to finish (~10-15 min)
  6. gortex daemon stop → hangs
  7. gortex call search_text --arg query="test" --arg limit=5 → hangs

Expected behavior

gortex daemon stop responds within seconds. CLI and MCP tools return results normally.

Environment

  • OS: macOS 26.5 arm64 (Apple M1 Pro, 16 GB RAM)
  • Gortex: v0.61.4+447e66c (go1.26.4)

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions