Inbox: compact the connected session and show live idle/working status inside a thread

Abierto
#3,410 4 comentarios 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
40/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
frontend

Línea de trabajo

Start in packages/inbox/components/ThreadSessions.tsx, which today renders waiting/working/idle/ended only when there are two or more sessions, and in packages/inbox/thread/useThreadSessions.ts, which builds that list only for multiple participants. Read how session state reaches the inbox thread, then widen both to single-session threads and decide where a Compact action can call a host compaction API, honoring the limitations noted in #1341. Done means the thread shows live state plus a Compact control with pending/succeeded/failed feedback and an explicit unsupported case, without interrupting active runs.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

TL;DR

Please show the connected agent session's live activity in both the Inbox thread's bottom action row and the agent sidebar, including single-session threads, and retain an explicit context-compaction action where supported. Clear availability lets users leave an active model turn undisturbed and give new work to another available agent instead.

Workflow

I use Oh My Pi (OMP), through Telegram and OMP Web, with the Plannotator Pi extension and Inbox. From the thread chat I want to know whether the agent is working or idle, compact its conversation when appropriate, and continue sending instructions in the same session and thread.

Here, compaction means summarizing the agent's conversation to free context space, not folding or deleting Inbox messages.

Existing support checked

  • Current Inbox documentation describes busy/queued reply delivery and ended sessions, but does not document a direct Compact action in a thread.
  • On current main, packages/inbox/components/ThreadSessions.tsx displays waiting/working/idle/ended states in the participant list, but returns nothing for fewer than two sessions. packages/inbox/thread/useThreadSessions.ts likewise builds that list only for multiple participants. This is useful partial support, not a claim that Plannotator has no session-state tracking.
  • #910 covers guided compaction and conversation lifecycle tooling; this request is specifically for controls on the existing Inbox thread.
  • #3264 requests model/effort/context information on Claude Code's agent hover card; this request focuses on live thread-level activity and an explicit compaction action, including OMP where supported.
  • #1341 discusses compaction after plan approval and documents host-specific API limitations. This request should respect those limitations rather than pretend every integration supports compaction.

Requested behavior

  • Show the addressed session's live state inside the thread: working, idle, waiting for user input, ended/disconnected, or unknown as appropriate. Include single-session threads; do not require sending a message just to discover its activity state.
  • For multiple participants, make clear which session the status and Compact action refer to.
  • Offer an explicit Compact action for integrations that expose a supported session-compaction API, with a clear explanation that it summarizes conversation context.
  • Respect active work: disable or safely defer compaction while the host cannot compact, without interrupting a run silently.
  • Show requested/in-progress/succeeded/failed outcomes, retain the same session/thread association, and allow continuing the conversation afterward.
  • Clearly indicate unsupported integrations or stale/unknown status rather than reporting false success or guessing idleness.

Activity indicators: footer and agent sidebar

Thread chat footer
  • Place a persistent live-state indicator in the bottom action row, beside Reply and Looks good. It should be visible without opening a hover card, switching to the agent terminal, or sending a message to probe the state.
  • Explicitly show when the addressed model session has an active turn / is working, and update when that turn ends or the session changes state.
  • Support a thread with only one connected session as well as multiple participants. For multiple agents, identify whose state is displayed; do not confuse another participant's work with the reply target.
Left sidebar agent list
  • Show a small availability light next to each listed agent so users can compare agents before assigning work.
  • Green means idle / available for a new task, not “the model is working.” An actively running turn must not show the available-green state; give it a distinct working/busy presentation.
  • Also distinguish waiting for input, ended/disconnected and unknown/stale state. Missing or stale telemetry must not falsely advertise green availability, or be silently presented as proof that a model is working.
  • Do not rely on color alone: pair the light with a label, tooltip or accessible text identifying the state.
Why this matters / acceptance

I want to leave an already-running session alone and use one of my other agents instead of interrupting it with another task. Both locations should reflect the actual live turn lifecycle (not merely that an agent process exists or the UI was recently opened), remain consistent for the same session, and change when a turn starts/finishes. Unsupported integrations should say unknown/unsupported rather than guess. This is a visibility request, not a request to interrupt turns automatically or force-disable replies.

The original context-compaction requirements above remain in scope and unchanged.

Requirement history

  • Original request (2026-11-15): live working/idle status inside a thread, including single-session threads, plus supported session compaction. The original investigation and environment below are retained; they are not a new UI/source audit on the date of this update.
  • Added detail (2026-11-16): place activity in the bottom row beside Reply / Looks good, and add per-agent sidebar availability lights, specifically green = idle/available, so work can be routed to another agent without interrupting an active session. This refines the existing activity request; it does not supersede or remove the compaction request.

Scope

Installed binary and Pi extension: 0.28.64. The checks above distinguish documented/current-main behavior from an end-to-end test: I have not tested a hidden setting or every agent integration. If this exact thread workflow already exists, please point to its supported version and how to enable it.

Lenguaje dominante
TypeScript
Estrellas
8.7k
Forks
649
Merge medio
16 h 1 min
PR fusionados (30 d)
756

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de backnotprop/plannotator

Todos los issues de backnotprop/plannotator

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.