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: configuration and the conversations list | |
Session rows: title, preview, last active time | |
The conversation opened from the list | |
The continuation row and Earlier conversation | |
Where the agent is chosen | |
The failure line with Retry | |
Grouped list, explicit Load more | |
The conversations list among all lists | |
Loading, failure, none yet and more available | |
Read only label and value rows for configuration | |
List, agent, conversation as pushes with back | |
Inline titles and the back button | |
Paging is explicit |
Implementation
Page | Part it plays |
|---|---|
AgentDetailScreen and the session screen | |
agentsOverview: GetAgent, ListSessions with a cursor, agentsSession | |
The agent stream that refreshes the list when the agent changes | |
The continuation row built from the handoff | |
Package overview and limits | |
GetAgent, ListSessions, GetSession and continued sessions | |
agentsAgentId, agentsSessionId, agentsSessionPages, agentsAgentLive, agentsAgentChanged | |
agent and session routes and their ids from the stack | |
Paging by page count and the owner stamp | |
The UI tests of paging and opening a conversation | |
/dev/seed-sessions and the stored sessions | |
Unit test of continuations | |
No agent editing, deletion or session deletion |
Code
File | What |
|---|---|
AgentDetailScreen | |
Continuation row with Earlier conversation | |
agent and session routes | |
agentsAgentId, agentsSessionId, agentsData | |
agentsAgentLive | |
agentsAgentChanged task | |
agentsRefreshList, agentsMoreSessions | |
Open a new or continued conversation after a command | |
AgentDetailScreen wiring | |
Agent detail and paged sessions in agentsOverview | |
agentsAgentStream | |
Continuation row |
Tests
File | What it checks |
|---|---|
older conversations load through the server cursor | |
session opens newest and streams markdown, tool results and run status | |
agents list, configuration, providers and validated creation | |
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