feat: add 'ready' activity state for live session detection#98
Open
AgentWrapper wants to merge 1 commit intomainfrom
Open
feat: add 'ready' activity state for live session detection#98AgentWrapper wants to merge 1 commit intomainfrom
AgentWrapper wants to merge 1 commit intomainfrom
Conversation
…ale ones Sessions where Claude finished responding were shown as "idle" (💤) — indistinguishable from truly stale/abandoned sessions. Users couldn't tell if a session was alive and ready vs dormant. Adds a "ready" state (🟢) for sessions that finished their turn recently (<5min), keeping "idle" (🟡) for sessions with no activity for >5 minutes. - active ⚡ = processing (thinking, running tools) - ready 🟢 = finished turn, alive, waiting for input (<5min) - idle 🟡 = process alive but stale (>5min) - waiting_input ❓ = permission prompt - blocked 🚧 = error - exited 💀 = process terminated Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
| const activityIcon: Record<string, string> = { | ||
| active: "\u26A1", | ||
| idle: "\uD83D\uDCA4", | ||
| ready: "\uD83D\uDFE2", |
There was a problem hiding this comment.
SessionDetail missing "ready" in activity label map
Medium Severity
The new "ready" activity state is added to SessionCard.tsx's activityIcon map but not to SessionDetail.tsx's activityLabel map (line 20–26 of that file). Sessions in the "ready" state — now the most common state for finished-turn sessions — will fall through to the fallback, displaying a raw lowercase "ready" string in muted gray instead of a properly formatted "Ready" label with a distinct color. This defeats the purpose of the feature in the detail view.
Additional Locations (1)
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
Changes
packages/core/src/types.ts"ready"toActivityStateunion +ACTIVITY_STATE.READYpackages/plugins/agent-claude-code/src/index.tsgetActivityState()with ready/idle split at 5min thresholdpackages/core/src/session-manager.ts"ready"(runtime is known alive)packages/web/src/components/SessionCard.tsxpackages/cli/src/lib/format.tspackages/cli/src/commands/status.tsActivity state semantics
Test plan
🤖 Generated with Claude Code