Skip to content

[Improve] Show background environment setup status on the running task#338

Closed
daniel-lxs wants to merge 1 commit into
developfrom
feat/env-setup-status-banner
Closed

[Improve] Show background environment setup status on the running task#338
daniel-lxs wants to merge 1 commit into
developfrom
feat/env-setup-status-banner

Conversation

@daniel-lxs

@daniel-lxs daniel-lxs commented Jul 14, 2026

Copy link
Copy Markdown
Member

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 EnvironmentSetupBadge next to the task status indicator above the prompt input, driven by the environmentSetupState field #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 logs
  • failed → destructive badge with the same pointer
  • completed / null (setup never ran in the background) → renders nothing

State 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 environmentRepositoryCommand phase events, and a setup-logs viewer.

Testing

  • 6 new client tests covering all badge states plus the hidden cases
  • pnpm --filter web check-types and pnpm --filter web lint pass

🤖 Generated with Claude Code

@roomote-roomote

roomote-roomote Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

No new code issues found. See task

Reviewed 52049e

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>
@daniel-lxs daniel-lxs marked this pull request as ready for review July 14, 2026 21:17
@daniel-lxs daniel-lxs force-pushed the feat/env-setup-status-banner branch from 9958860 to 52049ed Compare July 14, 2026 21:18
@daniel-lxs daniel-lxs closed this Jul 14, 2026
@daniel-lxs daniel-lxs deleted the feat/env-setup-status-banner branch July 14, 2026 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant