-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Problem
When a GitHub issue body contains newlines (which virtually all real issues do), the context bomb renders only the first line with the Markdown blockquote > prefix. Subsequent lines appear as plain text, breaking the visual grouping.
Affected locations
1. internal/template/render.go:388 — buildWorkingMemorySection:
issueBodySection = fmt.Sprintf("> %s\n", wm.IssueBody)A body of "Line 1\nLine 2\nLine 3" renders as:
> Line 1
Line 2
Line 3
2. internal/template/render.go:73 — main template string:
> {{.WorkingMemory.IssueBody}}
Same problem: only the first line of a multi-line body gets the > prefix.
Fix
Replace newlines in the issue body with \n> before rendering, so all lines are part of the blockquote. This can be done either:
- As a template function (e.g.,
blockquote) applied in the template - In
buildWorkingMemorySectionusingstrings.ReplaceAll(wm.IssueBody, "\n", "\n> ")
Both the main template and the truncated-path buildWorkingMemorySection helper need to be updated.
@claude please implement this
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working