Repository navigation
fix(cli): match cloud sync project names in any spelling - #2097
Merged
Merged
Conversation
pybars3 is unmaintained and carries CVE-2026-119716 (code injection when an attacker controls template source). Basic Memory only used it to render two fixed prompt templates for the v2 prompt routes, so plain Python now builds that text and inserts the query and note text as values. The template loader, the .hbs files, pybars3 and pymeta3 are gone. Closes #2044 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CMYVL1rjJwNnrvxniz1dDD Signed-off-by: phernandez <paul@basicmachines.co>
`bm cloud sync-setup` compared the typed name to cloud project names exactly, while pull and push match by permalink. `sync-setup cesar` failed for a cloud project named `Cesar`, and `pull --name cesar` then found the cloud project but missed its local entry and pointed back at the sync-setup that had failed. sync-setup now resolves the cloud project by permalink and saves the entry under the cloud spelling, or under an existing entry's key. Every config lookup in the transfer commands matches by permalink too. Closes #2078 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CMYVL1rjJwNnrvxniz1dDD Signed-off-by: phernandez <paul@basicmachines.co>
phernandez
marked this pull request as ready for review
November 12, 2026 15:42
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Signed-off-by: phernandez <paul@basicmachines.co> # Conflicts: # pyproject.toml
…-case Signed-off-by: phernandez <paul@basicmachines.co>
#2104 dropped the scope list from the title check, and this test still read it, so unit tests on main fail with KeyError: 'scopes'. That PR's CI skipped the unit tests because it only touched a workflow file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016N9c6ouiT4Wid3arGR41Dv Signed-off-by: phernandez <paul@basicmachines.co>
…x/2044-drop-pybars3 Signed-off-by: phernandez <paul@basicmachines.co>
…-case Signed-off-by: phernandez <paul@basicmachines.co>
phernandez
added a commit
that referenced
this pull request
Nov 12, 2026
…hema (#2098) Stack 3/4, based on #2097. ## Why Our server already answers a refusal with `isError: true`, the message as text, and no `structuredContent` (checked on the wire over streamable HTTP). That is valid MCP. The reporter's client or gateway received `structuredContent: null` and failed output-schema validation, so the caller saw a Zod error instead of "a note already exists at …". ## What - `ToolErrorResultMiddleware` catches `ToolError` and returns the same text and `isError`, plus `{"result": "<message>"}` as structured content. It acts only when the tool's output schema is FastMCP's wrapped `result` and that schema accepts a string; otherwise the error passes through unchanged. - Registered outside `MissingProjectMiddleware`, so its refusals are covered too. - A test checks that every bm_* tool with an output schema accepts the message. `bm_read` publishes no output schema, so it is left as is. Closes #2094 ## Verification - `just fast-check` - `just fast-test` on the top of the stack (`-m "not semantic and not benchmark"`): 3993 passed, 21 skipped. Postgres runs in CI. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01CMYVL1rjJwNnrvxniz1dDD --------- Signed-off-by: phernandez <paul@basicmachines.co> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack 2/4, based on #2096.
Why
bm cloud sync-setupcompared the typed name exactly, while pull and push match by permalink. A customer ransync-setup cesarfor a cloud project namedCesar: setup failed, thenpull --name cesarfound the cloud project, missed the local entry, and pointed back at the sync-setup that had failed.What
_configured_project_namefinds a config entry by permalink. Workspace resolution and_require_local_sync_pathuse it.sync-setupresolves the cloud project by permalink (_get_cloud_project) and saves under the cloud spelling, or under an existing entry's key so no duplicate entry is created. The local project and the printed next steps use the same name.sync-setupcommand through an injected httpx client factory, without monkeypatch.Closes #2078
Verification
just fast-checkjust fast-teston the top of the stack (-m "not semantic and not benchmark"): 3993 passed, 21 skipped. Postgres runs in CI.🤖 Generated with Claude Code
https://claude.ai/code/session_01CMYVL1rjJwNnrvxniz1dDD