Repository navigation
feat(a2a): stream agent image pull progress and color-code readiness indicator - #933
Merged
Merged
Conversation
…indicator Stream docker/podman pull output (previously discarded) through the ContainerRuntime abstraction, deriving layer-count progress that flows over the existing status pipeline into the UI: - The A2A: n/m indicator is now color-coded: green when all agents are ready, red while any agent has failed, dim during startup. - The A2A agents view (/a2a) live-updates on AgentStatusUpdateEvent instead of only when opened, showing per-agent state, pull progress as layer counts, and flattened single-line failure details. - pullImage now routes through ContainerRuntime.PullImage, fixing the Podman bypass where pulls were hardcoded to docker. Closes #542
edenreich
commented
Jul 18, 2026
Co-authored-by: Eden Reich <[email protected]>
edenreich
commented
Jul 18, 2026
Co-authored-by: Eden Reich <[email protected]>
Contributor
|
🎉 This PR is included in version 0.149.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
7 tasks
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
Closes #542.
During local A2A agent startup the only feedback was a flat, dim
A2A: n/msegment - the image pull discarded all of its output, so the user had no idea whether an agent was downloading, stuck, or failed. This PR makes agent startup observable while keeping the main chat view clean:A2A: n/mindicator is now color-coded - green once all agents are ready, red while any agent has failed, dim during normal startup. Nothing else is added to the main view./a2a): now live-updates onAgentStatusUpdateEventinstead of only rebuilding when opened. During a pull the agent row shows layer-count progress (Pulling image: python:3.12 (3/7 layers)) advancing in place; state transitions (pulling image->starting->waiting->ready/failed) and the(n/m ready)title update without reopening. Multi-line docker errors are flattened so a failed agent stays a single row.AgentManager.pullImagepreviously shelled out to a hardcodeddocker pullwith stdout/stderr sent toio.Discard, bypassing theContainerRuntimeabstraction entirely (Podman users gotdockerfor pulls). It now routes throughContainerRuntime.PullImage, which streams output through a new layer-counting parser (internal/services/pull_progress.go) shared by the Docker and Podman runtimes.How it works
Non-TTY
docker pullemits one line per layer state change (<id>: Pulling fs layer/Already exists/Pull complete); podman emitsCopying blob <id> ... done. The parser counts registered vs completed layers and fires a callback only when the counts change (no throttling timer needed). Progress flows over the existing push pipeline -SetPullProgressCallback->StateManager.UpdateAgentPullProgress(newLayersDone/LayersTotalfields onAgentStatus) -> the existingAgentStatusUpdateEventre-render. No new event types, no polling.Testing
Already exists, podman output, garbage lines, changed-only firing.TestA2AAgentsView_LiveUpdatesOnAgentStatusEvent) and status bar test for the indicator color decision (TestInputStatusBar_A2AIndicatorColor).infer chatin tmux: captured the layer counts advancing live in the open/a2aview, the indicator turning red on a failed agent and green when all agents were ready, and the flattened single-row failure details.task build,task test,task lintall clean; no mock regeneration needed (ContainerRuntime.PullImagehad no callers or fakes).Follow-up