Skip to content

fix(acp): teach agents to send real newlines#2121

Merged
wesbillman merged 1 commit into
mainfrom
pinky/newline-render
Jul 19, 2026
Merged

fix(acp): teach agents to send real newlines#2121
wesbillman merged 1 commit into
mainfrom
pinky/newline-render

Conversation

@wesbillman

Copy link
Copy Markdown
Collaborator

Summary

  • teach managed agents to pass multiline message bodies through stdin
  • call out that single-quoted \n is published literally
  • pin the guidance with a prompt regression test

Root cause

The reported message contained literal backslash-n characters before it reached Buzz. Actual newline bytes are already preserved by buzz messages send and rendered by the desktop Markdown path. Client-side unescaping would corrupt intentional \n in code and prose.

Test plan

  • cargo test -p buzz-acp shared_base_prompt_teaches_real_newlines_for_multiline_messages
  • full pre-push hook (desktop checks/tests, mobile tests, Rust tests)

Document stdin as the safe multiline message path and pin the guidance with a prompt regression test.

Co-authored-by: Pinky <44b8e82baa6e0e254e0208d68f335c283c94e7b78dd1fa10d5a49d3f13dd0435@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: Wes <wesbillman@users.noreply.github.com>
@wesbillman
wesbillman requested a review from a team as a code owner July 19, 2026 16:14
@wesbillman
wesbillman merged commit 7506965 into main Jul 19, 2026
53 of 55 checks passed
@wesbillman
wesbillman deleted the pinky/newline-render branch July 19, 2026 16:56
tlongwell-block pushed a commit that referenced this pull request Jul 19, 2026
Picks up 0.4.19 release + ACP newline fix (#2121); buzz-acp lib.rs overlap
with the C2 start-nonce work resolved.

Co-authored-by: Tyler Longwell <tlongwell@block.xyz>
Signed-off-by: Tyler Longwell <tlongwell@block.xyz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant