bug: text output prints data parts as raw JSON next to the message text
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
The text formatting lives in internal/output/output.go: start with partText (around line 314), which marshals data parts with json.Marshal, and joinParts (around lines 388-397), which writes them beside the text. Reproduce by running a2a send against an agent that asks for permission, then check that text output shows only text parts while -o json stays unchanged. Done when text output no longer prints raw JSON blobs and the Resume line is visible, with a test covering a message that has both text and data parts.
Written by the indexing model from the issue text.
Description
In text output, a2a send and a2a task get print the data parts of a message as raw JSON on the same line as its text. For an approval question that is the tool call and the whole answer schema, often more than 600 characters. The Resume: line ends up below it.
Repro (against a2a-serve)
a2a send -a "$URL" "Write the output of 'uname -sr' to system.txt."
Actual
Status: input-required (...)
Permission required: uname -sr > system.txt.
Reply with one of: once, reject. {"toolCall":{"id":"9HTPYMSYBUAjGuxm","input":{"command":"uname -sr \u003e system.txt"},"kind":"execute",...}} {"properties":{"option":{"oneOf":[{"const":"once","title":"Allow once"},...
Every Running … line in the task history also ends with a {"toolCall":…} blob. With -o json, the text and data parts are separate and clean.
Expected
Text output shows the text parts. Data parts appear in -o json, or as a short marker such as [data].
Cause
internal/output/output.go: partText (about line 314) marshals data parts with json.Marshal, and joinParts (about lines 388-397) writes them next to the text.
This was seen on every approval in 4 lanes. Related server-side issue: a2aproject/a2a-serve#167.
Found by user simulation (tools/sim) at 1b67edf.
- Dominant language
- Go
- Stars
- 181
- Forks
- 28
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 22
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from a2aproject/a2a-cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
a2aproject/a2a-cli#158 · 1 comment ·
Maintainers usually reply within 2 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
a2aproject/a2a-cli#15 · 2 comments · 1 reaction ·
Maintainers usually reply within 2 days
-
bug: [flagparse] loopback references with paths default to HTTPSPossibly taken @ktsoator claimed this 2 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
a2aproject/a2a-cli#162 ·
Maintainers usually reply within 2 days
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
a2aproject/a2a-cli#160 ·
Maintainers usually reply within 2 days
-
bug: an unknown --a2a-version is not a usage errorPossibly taken @ConnorMoss02 claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
a2aproject/a2a-cli#155 ·
Maintainers usually reply within 2 days
All issues in a2aproject/a2a-cli
Similar issues
-
ssa: wait errors drop the kstatus message, so health check failures don't say whyPossibly taken @schdief claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Pin and verify Security Insights schema in lintinsights targetPossibly taken @imshubham22apr-gif claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
gemaraproj/gemara#618 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
a2aproject/a2a-go#597 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 4 days
-
scopes: GetAllowedTopics, GetProtectedTopics, and GetScopedTopics include empty topic names and do not trim whitespace charactersPossibly taken @patelshivani2283-lab claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day