Description
I have a custom instruction in /Users/me/.config/opencode/instructions/formatting.md containing among other things:
# Response Formatting Requirements
Always structure your responses using clear markdown formatting:
- By default don't put information into tables for questions (but do put information into tables when creating or updating files)
- Use headings (##, ###) to organise sections, always
- Use bullet points or numbered lists for multiple items
- Use code blocks with language tags for any code
- Use **bold** for key terms and emphasis
- Use tables when comparing options or listing structured data
- Break long responses into logical sections with headings
And a config file in /Users/me/.config/opencode/opencode.json containing:
{
"$schema": "https://opencode.ai/config.json",
"instructions": ["~/.config/opencode/instructions/formatting.md"]
}
When I ask a question, every time the markdown headers are stripped from the response (at least when using both Opus 4.5 and also Kimi K2.5).
What's interesting is that:
- No other markdown (asterisks etc) is removed, only the hashes
# (or "pound sign" as y'all say)
- It is capable of adding full markdown headings when writing to a file (
whatever.md) but it strips them when writing to the terminal
Plugins
None (fresh install)
OpenCode version
1.1.39
Steps to reproduce
- Add a custom instruction (or don't – It makes no difference)
- Ask for a response in markdown
- Check the terminal
- Even if I explicitly ask for it to re-send as markdown with the hierarchical headings preserved, they are still absent (it believes they're there)
Screenshot and/or share link
No response
Operating System
macOS 26.2
Terminal
Warp
Description
I have a custom instruction in
/Users/me/.config/opencode/instructions/formatting.mdcontaining among other things:And a config file in
/Users/me/.config/opencode/opencode.jsoncontaining:When I ask a question, every time the markdown headers are stripped from the response (at least when using both Opus 4.5 and also Kimi K2.5).
What's interesting is that:
#(or "pound sign" as y'all say)whatever.md) but it strips them when writing to the terminalPlugins
None (fresh install)
OpenCode version
1.1.39
Steps to reproduce
Screenshot and/or share link
No response
Operating System
macOS 26.2
Terminal
Warp