Skip to content

fix(agent-manager): correct activity indicators after recovery - #13543

Merged
marius-kilocode merged 3 commits into
mainfrom
fix-task-status-after-agent-resume
Aug 28, 2026
Merged

fix(agent-manager): correct activity indicators after recovery#13543
marius-kilocode merged 3 commits into
mainfrom
fix-task-status-after-agent-resume

Conversation

@marius-kilocode

@marius-kilocode marius-kilocode commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Agent Manager could keep showing a failure after the agent resumed. A concurrent worktree operation could also replace a warning icon with a spinner while retaining the warning color. Optional review suggestions were treated as required input, so a completed task could appear to need attention.

Why This Change Was Made

New busy and retry events now clear stale terminal outcomes even when no idle event occurs between attempts. Error messages remain in the transcript, and a failure that ends in idle still shows an error. Worktree icons and colors use the same activity state, with required input and errors taking priority over concurrent operations.

Suggestions remain available but no longer count as blocking input. Questions and permission requests still require attention.

User Impact

  • Resumed tasks return to neutral progress spinners instead of retaining stale failure indicators.
  • Optional review suggestions preserve the completed-task icon.
  • Worktree cards and session tabs explain their status on hover with brief descriptions in all 21 supported languages.

Evidence

Verified the actual Agent Manager webview in isolated VS Code using synthetic lifecycle events. Scenarios covered recovery without an idle transition, retry recovery, terminal failures, completion, required questions, concurrent worktree operations, and optional review suggestions. No live provider failures or model requests were used. Automated regressions exercise the real session provider and rendered worktree/tab indicators.

Resumed work uses the neutral spinner:

Worktree and session-tab spinners were measured at 16 x 16 px in the rebuilt extension. The CSS usage guard now includes the shared activity component so its sizing rule is not incorrectly treated as unused.

Recovered task showing the verified 16px neutral progress spinner

Short explanations on worktree and session-tab hover:

Worktree hover card with the short error explanation

Session tab tooltip showing In progress

An optional review suggestion remains available while the task stays completed:

Task retaining its green completed icon with an optional review suggestion

Optional review suggestion available after completion

Comment thread packages/kilo-vscode/webview-ui/agent-manager/WorktreeItem.tsx
@kilo-code-bot

kilo-code-bot Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • packages/kilo-vscode/tests/unit/agent-manager-arch.test.ts
  • packages/kilo-vscode/webview-ui/agent-manager/agent-manager.css
Previous Review Summary (commit d65caf8)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit d65caf8)

Status: 1 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
packages/kilo-vscode/webview-ui/agent-manager/WorktreeItem.tsx 211 ActivityIcon still applies .am-worktree-spinner, but Agent Manager CSS for that class was removed
Files Reviewed (28 files)
  • .changeset/fix-resumed-session-activity.md
  • packages/kilo-vscode/tests/fixtures/session-provider-activity.tsx
  • packages/kilo-vscode/webview-ui/agent-manager/WorktreeItem.tsx - 1 issue
  • packages/kilo-vscode/webview-ui/agent-manager/agent-manager.css
  • packages/kilo-vscode/webview-ui/src/components/chat/SessionTab.tsx
  • packages/kilo-vscode/webview-ui/src/context/session.tsx
  • packages/kilo-vscode/webview-ui/src/utils/session-activity.ts
  • packages/kilo-vscode/webview-ui/src/i18n/ar.ts
  • packages/kilo-vscode/webview-ui/src/i18n/br.ts
  • packages/kilo-vscode/webview-ui/src/i18n/bs.ts
  • packages/kilo-vscode/webview-ui/src/i18n/da.ts
  • packages/kilo-vscode/webview-ui/src/i18n/de.ts
  • packages/kilo-vscode/webview-ui/src/i18n/en.ts
  • packages/kilo-vscode/webview-ui/src/i18n/es.ts
  • packages/kilo-vscode/webview-ui/src/i18n/fa.ts
  • packages/kilo-vscode/webview-ui/src/i18n/fr.ts
  • packages/kilo-vscode/webview-ui/src/i18n/it.ts
  • packages/kilo-vscode/webview-ui/src/i18n/ja.ts
  • packages/kilo-vscode/webview-ui/src/i18n/ko.ts
  • packages/kilo-vscode/webview-ui/src/i18n/nl.ts
  • packages/kilo-vscode/webview-ui/src/i18n/no.ts
  • packages/kilo-vscode/webview-ui/src/i18n/pl.ts
  • packages/kilo-vscode/webview-ui/src/i18n/ru.ts
  • packages/kilo-vscode/webview-ui/src/i18n/th.ts
  • packages/kilo-vscode/webview-ui/src/i18n/tr.ts
  • packages/kilo-vscode/webview-ui/src/i18n/uk.ts
  • packages/kilo-vscode/webview-ui/src/i18n/zh.ts
  • packages/kilo-vscode/webview-ui/src/i18n/zht.ts

Fix these issues in Kilo Cloud


Reviewed by grok-4.6 · Input: 80K · Output: 5.3K · Cached: 140.8K

Review guidance: REVIEW.md from base branch main

@marius-kilocode
marius-kilocode merged commit 679cc23 into main Aug 28, 2026
24 checks passed
@marius-kilocode
marius-kilocode deleted the fix-task-status-after-agent-resume branch August 28, 2026 12:34
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.

2 participants