Repository navigation
fix(chat): hide agent-facing text in task cards - #233
Merged
Merged
Conversation
Task result, hand-off/poll, and message cards showed markdown written for agents (result summaries, instructions, message bodies) as raw text. Drop it: the cards keep the agent, title, status and Open task; the task's log has the full text. A task's own run error stays on hand-off/poll cards.
A blocked task stores the worker's BLOCKED: reply as its error too, so the poll card showed it in red under a Failed pill. Carry failureReason, show the error line only for a failed task that is not blocked, and label a blocked failure Blocked.
juacker
marked this pull request as ready for review
October 16, 2026 20:56
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.
Task cards in the chat showed agent-facing markdown raw (result previews, instructions, message bodies, a blocked worker's
BLOCKED:reply). That text is for the agent; the user can read it via Open task. This hides it instead of rendering it.error— no longer leaks, and the pill reads Blocked instead of Failed.main(markdown preview + Show full message) — messages between agents stay readable like a chat.Production +122/−138, tests +82/−83. Lint, tsc, vitest (Agents + AssistantChat, 218) and
ipc_surfacepass locally. Independent review r1needs_fixes(blocked-reply leak) → fixed in 99a4a2c. Not checked visually in the running app.