Return to earlier conversations
An agent user wants to open an agent, see how it is set up, and go back into any earlier conversation with its full history.

As an agent user, I want to open an agent and go back into any conversation I had with it, so that I can pick up work where it was left.

Situation

I have talked to an agent before, on this phone or on desktop. The conversations are kept on my agent server.

What I do

    Tap the agent.

    Read how it is set up under "Configuration".

    Scroll "Conversations" and tap the one I want. If it is older than what is listed, tap "Load more conversations".

    Read the history and continue writing.

    Tap back to return to the agent, and back again for the list.

What I should see

    The Agent detail screen has the agent's name as its title. It reads "Agent" with "Loading agent…" until the agent has loaded.

    "Configuration" shows "Model" and "Provider" with their values, and the agent's system prompt as formatted text when it has one.

    "Conversations" starts with "New conversation", then one row per conversation: its title, a short preview when there is one, and when it was last active.

    A conversation with no title is listed as "Untitled conversation". One that ended in an error has the preview "Error".

    Conversations that belong to sub-tasks are not listed here. They are reached from their parent.

    With none yet: "No conversations yet. Start one to talk to this agent."

    When the server has older conversations, a row "Load more conversations" is at the end. Tapping it adds the next batch under the ones already shown, and the row goes away when there are no more.

    The list updates by itself when something changes on the server, for example when a new conversation gets its title.

    Opening a conversation shows "Loading conversation…", then its whole history, scrolled to the newest message.

    A conversation that carries on from an earlier one begins with "Continued from" and the earlier title in quotes, the first line of the handoff note, and a button "Earlier conversation" that opens the earlier one.

    If the server moves my conversation into a fresh one when I send a message, I am taken to the new conversation without doing anything.

When something goes wrong

    If the agent or its conversations cannot be loaded, a red line gives the reason with "Retry". I tap "Retry" or pull down.

    If a conversation cannot be loaded, the red line with "Retry" is in the conversation, and the refresh button in the bar does the same.

Not included

    Conversations cannot be searched, renamed or deleted on the phone.

    The agent's configuration is read only here (current limits).

    Conversations are not kept on the phone. Without a connection there is nothing to read.

Trace

Story US-AGENT-08, status Shipped. These links are kept in step with the traceability matrix and with the "User stories" section of every page listed here.

Design

Page

Part it plays

Agent detail

Agent detail: configuration and the conversations list

Agent and session rows

Session rows: title, preview, last active time

Agent session

The conversation opened from the list

Session timeline

The continuation row and Earlier conversation

Agents list

Where the agent is chosen

AgentError

The failure line with Retry

Lists

Grouped list, explicit Load more

Every list in the app

The conversations list among all lists

States for every screen

Loading, failure, none yet and more available

Forms and inputs

Read only label and value rows for configuration

Stacks, pushes and sheets

List, agent, conversation as pushes with back

Navigation bars and their actions

Inline titles and the back button

Honest state: loading, failure and empty

Paging is explicit

Implementation

Page

Part it plays

Agents: screens and components

AgentDetailScreen and the session screen

Agents: reads, commands and the clock

agentsOverview: GetAgent, ListSessions with a cursor, agentsSession

Agents: WebSocket streams as resources

The agent stream that refreshes the list when the agent changes

Agents: chat rows and run cards

The continuation row built from the handoff

Agents: chat with Seed agents

Package overview and limits

Agents server

GetAgent, ListSessions, GetSession and continued sessions

Root declarations: Activity and Agents

agentsAgentId, agentsSessionId, agentsSessionPages, agentsAgentLive, agentsAgentChanged

Navigation and routes

agent and session routes and their ids from the stack

State, refresh and stale-reply patterns

Paging by page count and the owner stamp

Contract UI tests

The UI tests of paging and opening a conversation

Mock agents server

/dev/seed-sessions and the stored sessions

Bun unit tests

Unit test of continuations

Current limits and known gaps

No agent editing, deletion or session deletion

Code

File

What

agents.contract L229-287

AgentDetailScreen

agents.contract L556-565

Continuation row with Earlier conversation

app.contract L47-48

agent and session routes

app.contract L169-171

agentsAgentId, agentsSessionId, agentsData

app.contract L177-177

agentsAgentLive

app.contract L201-202

agentsAgentChanged task

app.contract L440-446

agentsRefreshList, agentsMoreSessions

app.contract L532-537

Open a new or continued conversation after a command

app.contract L788-799

AgentDetailScreen wiring

src/agents/sources.ts L162-216

Agent detail and paged sessions in agentsOverview

src/agents/sources.ts L221-244

agentsAgentStream

src/agents/model.ts L209-222

Continuation row

Tests

File

What it checks

agents.test.contract

older conversations load through the server cursor

agents.test.contract

session opens newest and streams markdown, tool results and run status

agents.test.contract

agents list, configuration, providers and validated creation

src/agents/__tests__/agents.test.ts

transcript and run presentation: continuations show the handoff and earlier conversation instead of protocol framing

Delivery

Delivered by #1470.

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Attributes
Epic
Agents
name
Return to earlier conversations
Story
US-AGENT-08
Status
Shipped
summary
An agent user wants to open an agent, see how it is set up, and go back into any earlier conversation with its full history.