Skip to content

fix(cli): align termite model directory between setup and index#10

Merged
prosdev merged 1 commit into
mainfrom
fix/setup-model-dir-mismatch
Mar 31, 2026
Merged

fix(cli): align termite model directory between setup and index#10
prosdev merged 1 commit into
mainfrom
fix/setup-model-dir-mismatch

Conversation

@prosdev
Copy link
Copy Markdown
Contributor

@prosdev prosdev commented Mar 31, 2026

Summary

  • dev setup reported "Embedding model ready" but dev index failed with "model not found"
  • Root cause: hasModel/pullModel checked ~/.termite/models (CLI default) while the running Antfly server used ~/.antfly/models (server default)
  • Both now use a shared --models-dir pointing at ~/.antfly/models, and the server spawn passes --data-dir explicitly
  • Improved model name matching to avoid false positives from substring collisions

Test plan

  • 7 new unit tests for modelPresentInOutput (full name, short name, empty dir, suffix collision, bare model)
  • 1,542 existing tests pass
  • Typecheck passes
  • Manual: dev setup then dev index on a clean ~/.antfly/models directory

🤖 Generated with Claude Code

hasModel/pullModel used ~/.termite/models but the running Antfly server
looked in ~/.antfly/models, causing "model not found" during indexing
despite setup reporting the model as ready. Both now use a shared
--models-dir pointing at the server's data directory.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@prosdev prosdev force-pushed the fix/setup-model-dir-mismatch branch from 4b617c0 to 8f0a905 Compare March 31, 2026 03:56
@prosdev prosdev merged commit 3ad2316 into main Mar 31, 2026
1 check passed
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.

1 participant