[Improve] Show background environment setup status on the running task#338
Closed
daniel-lxs wants to merge 1 commit into
Closed
[Improve] Show background environment setup status on the running task#338daniel-lxs wants to merge 1 commit into
daniel-lxs wants to merge 1 commit into
Conversation
Contributor
Adds a compact badge next to the task status indicator that surfaces the live environmentSetupState from the task run: a spinner while background repository setup commands and Docker projects are still running, a warning badge when setup finished with warnings, and a failure badge when it failed. Renders nothing when setup never ran in the background or completed cleanly. Stacks on #333, which introduced the environmentSetupState column and keeps it updated while background setup settles. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
9958860 to
52049ed
Compare
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.
Problem
#333 makes background environment setup (repository setup commands and Docker projects) observable to the agent and the platform, but the web UI still says nothing: once the startup sequence hands off to the interactive view, the user can't tell whether setup is still running in the background, finished with warnings, or failed.
Changes
Adds a compact
EnvironmentSetupBadgenext to the task status indicator above the prompt input, driven by theenvironmentSetupStatefield #333 added to the task run (already streamed to the client via the session query — no backend changes):running→ muted spinner + "Setting up environment"completed_with_warnings→ warning badge, tooltip suggests asking the agent to check the setup logsfailed→ destructive badge with the same pointercompleted/null(setup never ran in the background) → renders nothingState updates arrive through the session query's existing polling; no dedicated fast-poll was added since the badge is passive.
Follow-ups (separate PRs)
Per-command startup progress driven by the
environmentRepositoryCommandphase events, and a setup-logs viewer.Testing
pnpm --filter web check-typesandpnpm --filter web lintpass🤖 Generated with Claude Code