Skip to content

agent: separate request and response payload types#97

Open
emilyalbini wants to merge 1 commit intomainfrom
ea-refactor-payload
Open

agent: separate request and response payload types#97
emilyalbini wants to merge 1 commit intomainfrom
ea-refactor-payload

Conversation

@emilyalbini
Copy link
Copy Markdown
Member

This PR splits the agent's Payload into the PayloadReq and PayloadResp enums.

I felt the need of this while working on the upcoming "cleanup tasks" (bmat process on-success / bmat process on-failure): I added new payloads to let the bmat CLI communicate with the agents, and handled them in the agent main loop, but forgot to also allow the new payload to be proxied to the main loop. The resulting error message was cryptic to say the least:

Error: could not talk to the agent: stream ended before reply

By separating requests and responses we can now match exhaustively on requests, getting compiler errors pointing in the right direction when adding new payloads.

@emilyalbini emilyalbini requested a review from jclulow April 14, 2026 09:15
@emilyalbini emilyalbini force-pushed the ea-refactor-payload branch from 20b00a3 to ba2e5f2 Compare April 14, 2026 11:25
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