fix(acp): title Codex/ACP sessions with Buzz agent display name#2372
Open
Bartok9 wants to merge 1 commit into
Open
fix(acp): title Codex/ACP sessions with Buzz agent display name#2372Bartok9 wants to merge 1 commit into
Bartok9 wants to merge 1 commit into
Conversation
Codex and similar ACP UIs label sessions from the opening of systemPrompt / the first user message. Managed Buzz agents all started with the shared [Base] platform prefix, so session lists showed identical truncated base text instead of Fizz/Varys/etc. Desktop now passes BUZZ_ACP_DISPLAY_NAME (display_name, else name). buzz-acp puts a short [Session] section first in session/new systemPrompt framing and on the legacy user-message path, without rewriting base-prompt substance or breaking [Base]/[System]/[Workspace] observer splits. Closes block#2334 Signed-off-by: Bartok9 <danielrpike9@gmail.com>
Bartok9
force-pushed
the
bartok9/acp-session-title-display-name
branch
from
July 22, 2026 20:37
a967db1 to
a5e7c14
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Codex (and similar ACP harness UIs) title sessions from the start of the injected prompt. Every managed Buzz agent shared the same
[Base] You are operating inside the Buzz platform…opener, so session lists showed identical truncated base text instead of the real agent name (Fizz, Varys, …).This wires the managed agent display name from Desktop →
buzz-acpand puts a short labeled[Session]section first in:session/newsystemPromptframing (protocol v2 / modern path)prepend_base_for_legacy+format_promptsections)Base-prompt substance is unchanged. Desktop observers that split on
[Base]/[System]/[Workspace]keep working —[Session]is an additive leading section.Closes #2334
Changes
managed_agents/runtime.rs): setBUZZ_ACP_DISPLAY_NAMEfromdisplay_name, elsename--agent-display-name/BUZZ_ACP_DISPLAY_NAMEframed_system_prompt+ legacy prepend put[Session]\n{name}first; sanitize controls / collapse whitespace / cap 80 charsformat_promptinjects[Session]before[Base]when presentOut of scope
Test plan
cargo test -p buzz-acp --lib session_titlecargo test -p buzz-acp --lib framed_system_promptcargo test -p buzz-acp --lib prepend_basecargo test -p buzz-acp --lib pool::tests(96 ok)AI-assisted; human-reviewed.