[wip][harness/env][2/n][buzz] visualize inline agent work streams - #5123
Draft
yuchenhe-hai wants to merge 2 commits into
Draft
[wip][harness/env][2/n][buzz] visualize inline agent work streams#5123yuchenhe-hai wants to merge 2 commits into
yuchenhe-hai wants to merge 2 commits into
Conversation
Signed-off-by: yuchenhe-hai <yuchen@humansand.ai>
Signed-off-by: yuchenhe-hai <yuchen@humansand.ai>
yuchenhe-hai
marked this pull request as draft
August 7, 2026 00: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.
Summary
This adds an observable model work stream directly to Buzz channel timelines so users can follow an agent turn where it is happening instead of leaving the conversation to inspect a separate debug surface.
send_message.sample_model,get_messages,get_thread, andsend_message.Motivation
Buzz already receives observer events while an assistant is working, but the channel UI previously exposed only coarse activity. That made multi-round agent behavior difficult to understand: users could see a final message without seeing which context was loaded, what tools were used, or how the turn moved toward delivery.
The new timeline presentation makes that work legible without exposing private chain-of-thought. It surfaces operational facts available in the observer stream: prompts and context metadata, tool activity, safe summaries, returned results, phase progress, and the relationship between a trace and its delivered message.
Behavior
Live turns
While an agent is working, its work stream appears at the live tail of the channel. The Flow view shows:
Completed turns
When a
send_messageresult can be associated with a rendered channel message, the completed work stream moves from the live tail and is inserted directly before that message. This keeps the explanation at the point of action and avoids duplicating the trace.Flow and Trace
Implementation
The channel timeline hook combines observer-derived agent activity with the existing message model and returns:
The virtualized timeline supports both leading content and trailing activity while retaining existing estimates and day-divider controls. Agent-session links continue to open the corresponding detailed session.
Related issue
None found.
Testing
pnpm --config.verify-deps-before-run=false run checkpnpm --config.verify-deps-before-run=false run typecheckpnpm --config.verify-deps-before-run=false run test(4,485 tests passed across 64 suites)pnpm --config.verify-deps-before-run=false run build:e2eThe branch is rebased onto the latest
main, and both commits include DCO sign-off.