Open a chat conversation in the pi terminal app with its history
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
この issue はまだ評価されていません。
説明
Problem
A chat on Home can grow into work that needs the full terminal pi: a long build, a shell, pi's own commands. "Build with Pi" starts a terminal pi app, but it starts fresh, so the person has to explain everything again. Depends on #28 (PR #34, merged) and #29 (PR #46).
Proposal: take the conversation over, one writer at a time
- Open in terminal in the chat header starts a new pi terminal app on the open conversation, as Build with Pi starts one on a prompt. It never reuses a running pi app.
- The terminal opens the chat's own session file (
~/.pi/agent/chat-sessions/<timestamp>_<id>.jsonl) withpi --session <file>on every start, so it continues the same conversation, history included. No copy, nothing to merge. - Whoever has the app running holds the conversation. While the terminal app is starting or running, the chat shows the conversation read-only with "Continued in " and a link. The bridge stops its own pi for that conversation before the terminal app starts.
- Resume here in the chat stops the terminal app, after a confirm ("This stops . Work pi is doing there ends."). Chat unlocks once the app has stopped, not when the stop is asked for, then reads the conversation again and shows what the terminal did.
- Starting that terminal app again (Open, the Apps page) takes the conversation back: the chat's pi is stopped first, and the start is refused while a chat reply is streaming.
- Open in terminal is refused while a chat reply is streaming, with the busy message chat already uses.
Checked
- Under
javo local, stopping the pi app ends ttyd, its tmux server and pi (TestShippedTemplatesRunAsProcesses/pi, the process mark reap). On Kubernetes, deleting the pod does. So "the app has stopped" means no terminal pi writes the file.
Out of scope
- A copy of the conversation (
pi --fork) that grows apart from the chat. - Telling the person whether pi in the terminal is busy before Resume here.
Definition of done
- From a chat, a person opens the conversation in a new pi terminal app and sees its history there.
- While that app is starting or running, the chat cannot send to the conversation, and links to the app (test).
- Resume here stops the app and the chat continues the conversation with what the terminal added (test).
- Starting the terminal app again stops the chat's pi for that conversation first, and is refused while a chat reply streams (test).
- The chat and the terminal never run pi on the same session at once (test).
- Docs:
using/chat.mdand the architecture page.
- 主要言語
- Go
- スター
- 5
- フォーク
- 0
- 平均マージ
- 21時間 13分
- マージ済み PR(30日)
- 53
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nebari-dev/tapas のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
nebari-dev/tapas#124 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nebari-dev/tapas#121 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
nebari-dev/tapas#32 ·
メンテナーはふだん 1 日以内に返信
-
Suggest saving a memory when a chat message holds something worth remembering対応中かも @jbouder が今日担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
nebari-dev/tapas#137 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 54/100
nebari-dev/tapas#136 ·
メンテナーはふだん 1 日以内に返信
nebari-dev/tapas の issue をすべて見る
似ている issue
-
area: pipeline priority: low type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
prime-radiant-inc/evener#8335 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
ui: OnTextKey on SearchField never sees keys (it does not reach the inner input)対応中かも @szluyu99 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100