feat: v0.18.0 — multi-agent session tree in share HTML#34
Merged
Conversation
share.py now builds a collapsible subagent hierarchy section when the session has child agents. Shows depth, duration, tool calls, token count, and error badges per node. Uses build_tree() and aggregate_stats() from subagent.py. Annotations bookmarks sidebar also added. Closes #24 Co-authored-by: Ona <no-reply@ona.com>
annotate.py is introduced in v0.20.0. The share.py subagent tree feature uses a try/except ImportError so the bookmarks sidebar degrades gracefully (no annotations shown) when the module is absent. Co-authored-by: Ona <no-reply@ona.com>
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.
Closes #24
What
agent-strace sharenow includes a collapsible subagent hierarchy section when the session has child agents, and a bookmarks sidebar for annotations.Subagent tree
Each node shows:
Built from
build_tree()+aggregate_stats()insubagent.py. Rendered as nested<div>elements with inline CSS — no JS dependencies.Bookmarks sidebar
When annotations exist for the session, a sidebar lists all annotated events with their labels and notes as anchor links into the trace timeline.
Changes
share.py: adds_render_subagent_tree_html(), importsbuild_tree/aggregate_statsfromsubagent.pyandload_annotationsfromannotate.py