Skip to content

fix(bind): forget the older notes before the setups run - #248

Merged
dacorvo merged 1 commit into
mainfrom
fix/bind-local-forgets-notes
Oct 15, 2026
Merged

dacorvo merged 1 commit into
mainfrom
fix/bind-local-forgets-notes

Conversation

@dacorvo

@dacorvo dacorvo commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator

funes bind now forgets every note an older funes kept beside the agents, whatever their setups do. Before, a failing setup kept its note, and the next bare funes add or funes update bound the host back to that memory, undoing funes bind local.

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

🤖 Generated with Claude Code

`funes bind local` forgot the note an older funes kept beside an agent only once that agent's
setup succeeded. A setup that failed left its note, and the next bare `funes add` or
`funes update` migrated it and bound the host back to that memory, undoing the local choice.

The host's record replaces the notes as it is written, whatever the setups do. Every bind does
it, not only `bind local`: nothing reads a note while the host is bound, so one rule covers both
and `follow` no longer forgets per agent.

Fixes #244.

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 8b97ef7f, including the shared add and update migration paths. No actionable findings.

Clearing the legacy notes before running setups prevents a failed setup from leaving a note that a later bare add or update could adopt. The cleanup also includes the agent excluded from setup during add. The regression test covers a failing setup during bind local.

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

@dacorvo
dacorvo merged commit b16a192 into main Oct 15, 2026
12 checks passed
@dacorvo
dacorvo deleted the fix/bind-local-forgets-notes 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 local can be undone by a legacy per-agent note

1 participant