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
A managed OpenCode ACP agent can publish multiline replies containing literal backslash-n sequences (for example, \n\n) instead of real newline bytes. Buzz Desktop then correctly renders those characters literally.
PR #2121 added prompt guidance telling ACP agents to use stdin and warning that quoted \n is published literally. The failure still occurs in Buzz Desktop 0.5.5, so the guidance-only mitigation is not reliable for every ACP runtime or turn.
Steps to reproduce
Configure a managed OpenCode agent with the ACP command opencode acp.
Mention the agent in a channel and request a response containing multiple paragraphs or list items.
Let the agent publish its response through buzz messages send.
Inspect the resulting channel message and its relay event content.
Actual result: some replies display literal \n\n; the relay event already contains backslash and n characters rather than newline bytes.
Expected behavior
ACP-published multiline replies should contain real newline bytes and render as separate paragraphs or lines.
The fix should preserve intentional backslashes in code and prose. A global client-side unescape would therefore be unsafe. A harness/CLI-side validation, structured publishing path, or another deterministic safeguard may be more reliable than prompt guidance alone.
Version and platform
Buzz Desktop: 0.5.5
OS: macOS
ACP runtime: OpenCode via opencode acp
Logs / additional context
Sanitized runtime evidence confirms the managed agent launched through opencode acp, connected to the relay, and reached online presence before publishing the affected response.
Source inspection indicates the literal characters exist before rendering:
crates/buzz-cli/src/commands/messages.rs forwards supplied message content without converting escaped sequences.
crates/buzz-sdk/src/builders.rs stores that content directly in the event.
desktop/src/features/messages/lib/formatTimelineMessages.ts passes event content into the rendered message body.
desktop/src/shared/ui/markdown/nodeCache.ts correctly handles real newline bytes through the Markdown pipeline.
Describe the bug
A managed OpenCode ACP agent can publish multiline replies containing literal backslash-
nsequences (for example,\n\n) instead of real newline bytes. Buzz Desktop then correctly renders those characters literally.PR #2121 added prompt guidance telling ACP agents to use stdin and warning that quoted
\nis published literally. The failure still occurs in Buzz Desktop 0.5.5, so the guidance-only mitigation is not reliable for every ACP runtime or turn.Steps to reproduce
opencode acp.buzz messages send.Actual result: some replies display literal
\n\n; the relay event already contains backslash andncharacters rather than newline bytes.Expected behavior
ACP-published multiline replies should contain real newline bytes and render as separate paragraphs or lines.
The fix should preserve intentional backslashes in code and prose. A global client-side unescape would therefore be unsafe. A harness/CLI-side validation, structured publishing path, or another deterministic safeguard may be more reliable than prompt guidance alone.
Version and platform
opencode acpLogs / additional context
Sanitized runtime evidence confirms the managed agent launched through
opencode acp, connected to the relay, and reached online presence before publishing the affected response.Source inspection indicates the literal characters exist before rendering:
crates/buzz-cli/src/commands/messages.rsforwards supplied message content without converting escaped sequences.crates/buzz-sdk/src/builders.rsstores that content directly in the event.desktop/src/features/messages/lib/formatTimelineMessages.tspasses event content into the rendered message body.desktop/src/shared/ui/markdown/nodeCache.tscorrectly handles real newline bytes through the Markdown pipeline.crates/buzz-acp/src/base_prompt.mddocuments the stdin workaround added by fix(acp): teach agents to send real newlines #2121.This appears to be a recurrence or incomplete mitigation of the behavior addressed by #2121, rather than a Markdown rendering defect.
aidevops.sh v3.32.226 plugin for OpenCode v1.18.9 with gpt-5.6-sol