worktrunk icon indicating copy to clipboard operation
worktrunk copied to clipboard

[Feature Request] Add third Claude session state: "input required" vs "idle"

Open cperalt opened this issue 8 months ago • 2 comments

Current Behavior

wt list currently shows two Claude session states:

Icon Meaning
🤖 Claude is actively processing
💬 Claude session is open and waiting

Problem

The 💬 waiting state conflates two meaningfully different situations:

  1. Idle — Claude finished its task and is waiting for the next prompt. No action is urgently needed.
  2. Input required — Claude is mid-task but blocked on a specific user response, such as a tool permission approval (Allow this action? › Yes / No / Always) or a clarifying question.

From a user's perspective these are very different: one means "check back whenever", the other means "your attention is needed now to unblock Claude".

Proposed Change

Add a third status to distinguish the two waiting states:

Icon Meaning
🤖 Claude is actively processing
💬 Claude is idle, waiting for the next prompt
❓ Claude requires user input to continue (permission prompt, question)

Why It's Useful

When managing multiple worktrees with parallel Claude sessions, knowing which sessions are actively blocked vs simply idle lets you prioritize where to focus first — without switching into each session to check its state.

cperalt avatar Mar 18 '26 04:03 cperalt

Thanks for the suggestion! I searched the codebase and can confirm how this works today:

The session markers (🤖, 💬) are set by the Claude Code plugin (external to worktrunk) via wt config state marker set or directly through git config worktrunk.state.<branch>.marker. Worktrunk itself just displays whatever marker string is stored — it doesn't detect or interpret Claude session state.

This means the ❓ "input required" state you're describing would primarily need support from the Claude Code side to detect when it's blocked on user input (permission prompt, clarifying question) vs simply idle, and set the appropriate marker. On the worktrunk side, no code changes would be needed — the marker system already supports arbitrary strings, so ❓ would display just like 🤖 and 💬 do today.

I'll leave it for a maintainer to evaluate and prioritize.

worktrunk-bot avatar Mar 18 '26 04:03 worktrunk-bot

I agree this would be great! but it is a Claude Code request. extremely easy for us to add as soon as they add the hook / status...

max-sixty avatar Mar 18 '26 06:03 max-sixty