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

オープン
#3,410 コメント 4 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
40/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
8.7k
フォーク
649
平均マージ
16時間 1分
マージ済み PR(30日)
756

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

backnotprop/plannotator のほかの issue

backnotprop/plannotator の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。