You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Line-range header says "including frontmatter" for plain text files #1976
Lines 10-12 of 30 (document, including frontmatter); next: start_line=13, end_line=15
A .txt file has no frontmatter, so the parenthetical is wrong for it. The text comes from src/basic_memory/markdown/line_scanning.py:79 and the token-budget variant at src/basic_memory/mcp/tools/read.py:212, both written for Markdown notes before #1960 let bm_read slice text files.
Fix
Say "(including frontmatter)" only for Markdown notes; plain text files get Lines 10-12 of 30.
Component: MCP tools (bm_read line-range slicing, plus the shared helper in markdown/line_scanning.py). No Cloud involvement.
Priority: Low. The output is cosmetic and nothing is lost or corrupted, but it misleads on plain text files.
Complexity: Simple. Make the "(document, including frontmatter)" wording conditional on the target being a Markdown note, in both places the issue cites. Add regression tests for .txt and Markdown.
Duplicates: None found.
The issue already has clear repro steps and a proposed fix, so I have no questions. Per triage scope, I haven't made any code changes.
Activity
claude commentedon Oct 29, 2026
Claude finished @phernandez's task in 13s —— View job
Triage
bm_readline-range slicing, plus the shared helper inmarkdown/line_scanning.py). No Cloud involvement..txtand Markdown.The issue already has clear repro steps and a proposed fix, so I have no questions. Per triage scope, I haven't made any code changes.