Skip to content

Filters empty acp message chunks from the ACP traffic - #93

Open
JanJoar wants to merge 2 commits into
lambda-symbolics:masterfrom
JanJoar:master
Open

JanJoar wants to merge 2 commits into
lambda-symbolics:masterfrom
JanJoar:master

Conversation

@JanJoar

@JanJoar JanJoar commented Oct 11, 2026

Copy link
Copy Markdown

I am currently writing an integration with agent-shell, the most popular acp client for GNU Emacs. One of the first problems I encountered was the fact that model thinking is separated into hundreds (or thousands) of separate thought blocks, each only containing a single token. This is caused by the ACP-integration sending a blank agent_message_chunk between each agent_thought_chunk. This adds a filter (and corresponding test) to remove such blank messages.

There might be a more elegant fix for this if anyone can find the source for the empty messages, but I am not all that familiar with this codebase.

@luciusmagn

Copy link
Copy Markdown
Member

Thank you! We have a rudimentary agent-shell integration I slopped together for a demo yesterday here: It's ultra barebones, but it might help :) I would love to merge your (definitely better) integration to this repo, if you are up for it

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.

2 participants