Open a chat conversation in the pi terminal app with its history
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
This issue has not been assessed yet.
Description
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.
- Dominant language
- Go
- Stars
- 5
- Forks
- 0
- Avg merge
- 21h 13m
- Merged PRs (30d)
- 53
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nebari-dev/tapas
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
nebari-dev/tapas#124 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nebari-dev/tapas#121 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
nebari-dev/tapas#32 ·
Maintainers usually reply within 1 day
-
Suggest saving a memory when a chat message holds something worth rememberingPossibly taken @jbouder claimed this today. Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
nebari-dev/tapas#137 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 54/100
nebari-dev/tapas#136 ·
Maintainers usually reply within 1 day
All issues in nebari-dev/tapas
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
prime-radiant-inc/evener#8335 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Docker healthcheck logs a 500 on every checkPossibly taken @zackwag claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 82/100
writefreely/writefreely#1801 ·
Maintainers usually reply within 2 days
-
BUG: Backend Docker build fails due to Go version mismatchPossibly taken @Aakriti0207 claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 93/100
gittuf/visualizer#203 ·
Maintainers usually reply within 2 days
-
contribution Windows 主机
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Lee-xeo/Claude-Cage#1519 ·
Maintainers usually reply within 1 day