memory: the no-project line doesn't say the sessions plugin's "No folder" (#6422)

72facf72e's memory_context answer said "No folder of yours is known
here". The sessions plugin translates "No folder" in its own i18n.js,
so i18n-keys' "a plugin's words are its own" has been red on main
since then (#6422; #6423 is the same red). The line goes to the model,
not the window, so it is reworded: "None of your folders is known
here". memory_mcp_test.go checks "Project: none" only, which stays.

Run:
- node --test internal/gui/tests/i18n-keys.test.cjs on mica: pass 4,
  fail 0 (red 1 of 4 at origin/main fa3ee5a7e).
- go test -count=1 -run Memory ./internal/gateway/ via wsl-run: ok
  (mica's disk is full, 121MB free, so Go couldn't build there; mote
  was at load 35-43 on 18 cores). gofmt clean.
Not run: the full suite.
This commit is contained in:
yetone
2026-11-13 13:52:07 +08:00
parent fa3ee5a7ea
commit 2f2a0afa59
+1 -1
View File
@@ -441,7 +441,7 @@ func memoryContext(c memoryCaller) (string, map[string]any) {
b.WriteString("; scope project keeps memories there.\n")
} else {
ctx["project"] = nil
b.WriteString("Project: none. No folder of yours is known here: give memory_search and memory_save a project (a folder, or a key), or run magpie mcp memory in the project's folder.\n")
b.WriteString("Project: none. None of your folders is known here: give memory_search and memory_save a project (a folder, or a key), or run magpie mcp memory in the project's folder.\n")
}
fmt.Fprintf(&b, "A search with scope all looks in: %s.\nmagpie-memory %s", strings.Join(scopes, ", "), Version)
return b.String(), ctx