_meouwu on X: a memory added by hand in several lines showed as one line
with its breaks gone; it should keep its format and, folded, show the
first line and an ellipsis.
Cause: the store never lost the breaks. A memory file's body is
m.Text as written (encode/apply trim only the ends). They were lost
where it was shown: the Library row clamped the name to two lines with
white-space normal, the digest given to agents went through oneLine
(strings.Fields), and so did memory_search / memory_list in the memory
MCP.
Now:
- Library: a folded row and a suggestion show firstLine(text) (first
line, " …" when more follow); an open row shows the whole text
pre-wrap. The editor already kept "\n".
- Digest and memory MCP: memory.Indented keeps each line, the lines
after the first indented two spaces so the memory stays one list
item.
- Dream and distill listings stay one line on purpose: the model's
reply is read line by line, and a user's memory is Fixed, never
rewritten by them. Written in docs/subsystems/memory.md.
Memories saved before: their files already hold the breaks, so after
updating they show, edit and reach agents in their own lines. Nothing
to redo, no migration.
Run at 3fabaf8f2 (on origin/main b332ef7ef, the pushed head),
f6452d777 (on 1622484a8) and ee84e288a (on 54117164c), on the WSL VM magpie-desktop: mote and mica were over
their cores with other sessions' suites for ~2h.
- go vet -tags gtk3 ./... ok; gofmt -l clean.
- go test -tags gtk3 -count=1 -timeout 45m ./... at ee84e288a: 101 ok,
2 FAIL, both red at origin/main 2416beed6 on the same VM:
internal/gui TestClipboardReadBack (#7074, #7073), internal/usage
TestRequestStateKeptAcrossACatalogFetchedAgain (#6572).
- Whole GUI suite (concurrency 8): 1355 of 29368 red in 221 files under
load. Those 221 again at concurrency 3: 71 red; 66 of them red at
base 54117164c too. Of the other 5, 3 pass alone;
codex-auto-reset-settings (#6108) and copilot-ghe (#1949) are red at
base alone too (2 of 3 and 3 of 3 rounds), commented there.
- After the rebase (f6452d777): internal/memory, internal/memdistill
and -run "Memory|Budget|I18n" in gateway, gui, library ok. All 84
library-*.test.cjs: 1920 of 1950 pass; each red file alone, beside
1622484a8: commands-import, group-steady, mcp-copy-config,
mcp-off-fold, open-again and all are red at base too (#7097; all 3 of
3 at base); memory-suggest, mcp-json and bili pass alone.
- At 3fabaf8f2 (b332ef7ef brought flying_crp's digest header and
memory_save note; conflicts were only both sides adding tests and
doc text): go vet memory, gateway, memdistill; go test memory,
memdistill, access, and -run "Memory|Budget|I18n|Digest" in gateway,
gui, library ok; library-memory*.test.cjs 112 of 112.
- library-memory-lines.test.cjs: 5 langs x 980/420 x chromium/webkit.
Broken by hand (old code, new tests): TestMultiLineMemoryKeepsItsLines
red at the digest step only (save, edit and the file passed: the store
kept the breaks), TestIndented and TestMemorySearchKeepsTheLines red,
library-memory-lines red ("Release steps: …" expected).
Not tried: a macOS run (mote, mica busy), Windows, the real app.