Skip to content

fix(bind): give a host with no local memory the bound memory's model - #247

Merged
dacorvo merged 1 commit into
mainfrom
fix/bind-empty-host-model
Oct 15, 2026
Merged

dacorvo merged 1 commit into
mainfrom
fix/bind-empty-host-model

Conversation

@dacorvo

@dacorvo dacorvo commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator

funes bind <memory> on a host with no local memory now creates it with the bound memory's model, as funes add does. Before, the next index (a hook's included) created an English memory, and every push to a multilingual memory failed the model check.

Like add, bind stops when it can't read that model. On an empty host bound to a populated memory it now also tries the first push, which just says there is nothing to publish yet.

Found by Copilot in the review of #241. Fixes #243.

🤖 Generated with Claude Code

`funes bind <memory>` compared embedding models only when a local memory existed. On a host with
none, nothing created it with the bound memory's model, so the next `funes index` (a hook's
included) created an English one, and every push to a multilingual memory failed the model check.

bind_host now takes the memory's model when the host has no local memory, as `funes add` does,
and stops when it can't read that memory: guessing could pin the local memory to another model.
The offline error no longer names `funes add`, since bind and update reach it too.

Fixes #243.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@dacorvo dacorvo left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 3d83375a, including the shared add and legacy migration paths and the first push after binding. No actionable findings.

The new path creates the local memory with the bound memory's model before recording the binding or running setups. Existing local memories still go through the model mismatch check. The regression test checks the model stored in the newly created local dataset.

No tests run, as requested. CI validation is pending.

@dacorvo
dacorvo merged commit 68e01e5 into main Oct 15, 2026
12 checks passed
@dacorvo
dacorvo deleted the fix/bind-empty-host-model branch October 15, 2026 18:46
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.

funes bind on a host with no local memory ignores the bound memory's embedding model

1 participant