Skip to content

Open a chat conversation in the pi terminal app with its history #35

Todo

Description

@jbouder

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

  1. self-assigned this
    on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: enhancement 💅🏼

Type

No type

Fields

Priority

None yet

Start date

None yet

Target date

None yet

Size

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions