Repository navigation
feat(agent-harness): send each message once, without a Request line - #4604
Draft
wpfleger96 wants to merge 2 commits into
Draft
wpfleger96 wants to merge 2 commits into
wpfleger96 wants to merge 2 commits into
Conversation
wpfleger96
force-pushed
the
hayt/send-message-once
branch
from
December 1, 2026 06:14
dbc6c1f to
287529b
Compare
A turn's event block followed the event JSON with a Request line that repeated its content, so every message reached the model twice. The event's content is now the request. Readers still accept the older form, so earlier sessions display as before. Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz> Signed-off-by: Will Pfleger <wpfleger@block.xyz>
The Codex export script and usage titles now read the event block first, with or without its Request line, and only then an older input's bare Request line. Co-authored-by: Hayt <211b96e6a2b7f45fd4047988976c7bbbeeda0c15f3ae7b32eec20834b5a55118@buzz.block.builderlab.xyz> Signed-off-by: Will Pfleger <wpfleger@block.xyz>
wpfleger96
force-pushed
the
hayt/send-message-once
branch
from
December 1, 2026 06:28
def2fc5 to
5c5a385
Compare
This branch has not been deployed
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.
Every message that wakes an agent reached the model twice: once as the event JSON's
content, and again as aRequest: "..."line after it. This drops the line, so the event's content is the request. Turn Contract already says so.eventBodyno longer takes a request. Claude, Pi and goose already passedevent.content.textOftext throughstart,executeandturnInput.textOfstays only for Solo chat titles, which still strip a leading "🤖 " and "@name".readEventBody, the Codex transcript and usage readers, the export scripts andsession-model.mjsread the new form and still read the old one, so earlier sessions display as before. Without the line, a record counts as an event only when itskindis a number.This saves the full message length on every mention and steer: about 750 chars at the median.
Stacked on #4603, since both change
eventBody.Merge order: squareup/buzz-plugin-security#32 has to merge, with its rebuilt
plugin.jsonmain, before this PR. The plugin finds the current message by itsRequest:line. With an older plugin, turns are still inspected, just whole rather than message by message.