You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Open a chat conversation in the pi terminal app with its history #35
Problem
A chat on Home (#29) 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) and #29.
Proposal
An "Open in app builder" control in the chat header. It starts a pi terminal app (or reuses the person's running one) that continues the open conversation, with its history.
Chat conversations are pi session files in ~/.pi/agent/chat-sessions (<timestamp>_<id>.jsonl), in the same home folder the terminal app uses. Pi can open a session file in a new process, so the terminal app can be started on that session instead of --continue (pod/files/agents/pi-start.sh).
Decide what happens to the chat afterward: whether the conversation stays in the chat list, and whether chat refuses new messages while the terminal has the session open. Two pi processes writing one session file must not happen.
The chat bridge ends its own pi process for that conversation before the terminal opens it.
Out of scope
Moving a conversation from the terminal back into chat.
Definition of done
From a chat, a person can open the conversation in a pi terminal app and see its history there.
The chat and the terminal never write the same session at once (test).
Works when the person has no pi terminal app yet, and when one is already running.
Activity