diff --git a/cmd/bd/prime.go b/cmd/bd/prime.go index aada0aff8..fdbf73472 100644 --- a/cmd/bd/prime.go +++ b/cmd/bd/prime.go @@ -729,7 +729,7 @@ func renderPrimeMemories(memories map[string]string, compact bool, maxCount, max } sb.WriteString("Stored via `bd remember`. Update in place with `bd remember --key \"new content\"`. Search with `bd memories `. Remove with `bd forget `.\n\n") if elided > 0 { - sb.WriteString(fmt.Sprintf("> %d more memories are not shown here (%s). Browse the full set with `bd memories ` or recall one with `bd remember `.\n\n", elided, primeMemoryCapNote(noteCount, noteChars))) + sb.WriteString(fmt.Sprintf("> %d more memories are not shown here (%s). Browse the full set with `bd memories ` or read one in full with `bd recall `.\n\n", elided, primeMemoryCapNote(noteCount, noteChars))) } } for _, entry := range entries { diff --git a/cmd/bd/prime_memory_caps_test.go b/cmd/bd/prime_memory_caps_test.go index 20a1b0fcb..a348c4ec9 100644 --- a/cmd/bd/prime_memory_caps_test.go +++ b/cmd/bd/prime_memory_caps_test.go @@ -46,6 +46,9 @@ func TestRenderPrimeMemoriesCountCap(t *testing.T) { if strings.Contains(out, "### mem-02\n") { t.Fatalf("memory beyond the cap leaked into output: %q", out) } + if !strings.Contains(out, "read one in full with `bd recall `") || strings.Contains(out, "recall one with `bd remember") { + t.Fatalf("elision banner must point at bd recall, not bd remember (which writes a new memory): %q", out) + } if banner, entries := strings.Index(out, "not shown"), strings.Index(out, "### mem-00"); banner > entries { t.Fatalf("elision banner must precede entries so host truncation cannot hide it: %q", out) }