Inbox: reach an Orca chat whose Claude session is asleep
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 34/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- backend
調査の方向性
Start by finding where the Inbox stores a reply for an ended session and where a session resume (same id, --resume) is detected — that is the hook needed to flush saved replies as the next wake. Then look at the inboxLaunch.startIn option (alongside rex, and the Herdr request in #3726) and the command builder behind it, which must emit orca orchestration send using ORCA_AGENT_SESSION_ID and the bot name from ~/.orca/bots/<name>. The optional inboxLaunch.wakeCommand with {session}, {cwd}, {thread}, {replyFile} placeholders is a separate, larger design piece. Done means a reply saved after a session ended arrives when that session is resumed, and an ended Orca chat can be woken through Orca.
索引モデルが issue の本文から書いたものです。
説明
Problem
Orca runs each chat as a Claude Code session through the Agent SDK (CLAUDE_CODE_ENTRYPOINT=orca, the panel exception from #3325). It does not keep the claude process running between turns. When a message comes in through Orca, Orca starts it again with claude --resume=<session id>, so the chat keeps the same session id and its whole history.
The Inbox reaches the chat only while that process is alive. A few minutes after a turn ends, the thread shows "This Claude Code session has ended", and any reply waits:
- A reply in the thread is saved: "That session has ended; it gets this only if it's resumed."
- When Orca resumes the same session id for another reason (a message from another chat), the saved reply is still not delivered. Tested: a reply was saved at 11:41, Orca resumed that session at 11:44 and ran a full turn, and the transcript has no "The plannotator plugin sent a message" turn.
- "Start a new one" runs
claude --bg. That gives a new session id with only part of the history, outside Orca, so the chat never shows it, and its owner cannot see or stop it there. Ours read the thread and archived it, but did not do the rest of what the original chat had been asked to do.
So a question asked from an Orca chat can only be answered within a few minutes. Anything answered later goes to a session the person never sees.
Request
-
Deliver saved replies when a session comes back under the same id. When a session with saved replies connects again (Orca's
--resume, or any host that resumes), send them as its next wake, as a live session gets them. -
Wake ended Orca chats through Orca. Add
"orca"toinboxLaunch.startIn(next to"rex", and like the Herdr request in #3726). For a session whose entrypoint wasorca, "Reply" and "start a new one" would run:orca orchestration send --to bot:<bot name> --chat <orca chat id> --type question \ --subject "Plannotator Inbox: <thread title>" --body "<the reply, with its reply id>"Orca then resumes the same session inside the chat, so the reply lands where the conversation lives. Orca exposes the chat id in the session's environment (
ORCA_AGENT_SESSION_ID), and the bot name comes from the folder (~/.orca/bots/<name>).A general option would cover Orca, Herdr and wrappers alike (#3064 asked for the launch command):
inboxLaunch.wakeCommandwith placeholders such as{session},{cwd},{thread}and{replyFile}, run when the session has ended.
Related
- #3325: Orca chat sessions get the Inbox tools (only while the session is running).
- #3726:
inboxLaunch.startIn: "herdr", the same need for Herdr. - #3064: choose the command used to start a Claude Code session (closed by #3097, which added a model, effort and a settings file instead).
Setup
Plannotator 0.29.2, Claude Code 2.1.330, Orca 1.4.269, Linux (Ubuntu), Inbox reached over Tailscale.
- 主要言語
- TypeScript
- スター
- 8.7k
- フォーク
- 649
- 平均マージ
- 16時間 1分
- マージ済み PR(30日)
- 756
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
backnotprop/plannotator のほかの issue
-
Inbox: numbered choices in a :::question become free text, and context bullets become the choicesオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
backnotprop/plannotator#4132 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Claude Code: "classic.PermissionRequest hook was skipped" notice is back on Bash permission promptsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
backnotprop/plannotator#4051 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
backnotprop/plannotator#4000 ·
メンテナーはふだん 1 日以内に返信
-
PR description is hidden when a PR review opens on a phone対応中かも @flipcyde101 が 8 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
backnotprop/plannotator#3667 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
backnotprop/plannotator#2643 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
backnotprop/plannotator の issue をすべて見る
似ている issue
-
enhancement status:needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
dongdongbh/Mindwtr#1625 ·
メンテナーはふだん 1 日以内に返信
-
area/ui-schema good first issue type/bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
duckdb/duckdb-wasm#2335 ·
メンテナーはふだん 1 日以内に返信