The agent detail screen shows what one agent is and everything the person has said to it. They read its configuration, reopen a conversation, or start a new one. Its screen component is AgentDetailScreen.
At a glance
Tab | Agents |
Route |
|
Presentation | Pushed |
Title | Inline ( |
How you get here | A row on the Agents list; "Create" in the New agent sheet |
Where it leads |
Anatomy
Navigation bar. Back button, inline title, no trailing actions.
A status section. Holds "Loading agent…" while a read is in flight and the AgentError line when something failed. When neither applies it is empty.
Section "Configuration".
"Model" with the model id on the right in secondary colour.
"Provider" with the provider name on the right in secondary colour.
The system prompt, if there is one, as a full width row rendered as Markdown in -exact-subheadline.
Section "Conversations".
"New conversation" with the add symbol. It is a plain button row, so its title takes the brand tint.
One session row per conversation: the title in -exact-headline ("Untitled conversation" when it has none), an optional preview line in -exact-footnote, and the last active time in -exact-caption1 on the right. The preview is the conversation's description, or "Error" when the conversation ended in an error.
"Load more conversations" when the server has older ones.
States
State | What is shown |
|---|---|
Loading | "Loading agent…" in the status section; the title reads "Agent"; "New conversation" and "Load more conversations" are disabled |
Failure | The message in red with "Retry" (AgentError). The message is the failed command's error if there is one, otherwise the read's error |
No conversations | "No conversations yet. Start one to talk to this agent." in secondary colour, under "New conversation" |
More available | The row "Load more conversations" at the end |
Actions
Action | Result |
|---|---|
Tap "New conversation" | Creates a conversation on the server, then pushes it as an Agent session showing "New chat" |
Tap a conversation | Pushes that session |
Tap "Load more conversations" | Appends the next page of older conversations |
Pull down, or tap "Retry" | Refreshes the agent and its conversations |
Back | Returns to the Agents list |
The list also refreshes by itself when the agent changes on the server, for example when a conversation gets a title. See Agents: WebSocket streams as resources.
Components used
Component | Kind | What it does here |
|---|---|---|
Named | The failure line with "Retry" | |
Inline part | Each conversation row | |
Primitive | The inset grouped list, the three sections, pull to refresh | |
Primitive | The navigation bar and section headers | |
Primitive | "New conversation", conversation rows, "Load more conversations" | |
Primitive | Labels, values, the Markdown prompt, helper lines | |
Primitive | The add symbol | |
Primitive | The label and value rows, the two line stack in a conversation row |
Why it is designed this way
A grouped form above a list. DESIGN.md asks for a "grouped form of config (model, provider) + section of sessions (title, preview, time), 'New conversation'", and the built screen is exactly that. Label left and value right in secondary colour is the system's read only settings row (Forms and inputs).
The action sits where its result will appear. "New conversation" is the first row of "Conversations", not a bar button, so the new item's place is obvious (inferred: the bar has no trailing action).
Paging is explicit. A row "Load more conversations" tells the person there is more and lets them ask for it, in place of silent infinite scrolling. This follows Honest state (inferred).
Configuration is read only here. There is no edit control. Changing an agent is done on desktop today (inferred from the absence of any edit action in the contract).
The screenshot above only shows the lower part of the screen. The Configuration section is not visible in any iOS screenshot in the set (files named ios-).
User stories
This page helps deliver these stories. Each story lists this page in its Trace, so the link holds in both directions (traceability).
US-AGENT-04 Create an agent: Where Create lands
US-AGENT-05 Chat with an agent: New conversation, where a chat starts
US-AGENT-08 Return to earlier conversations: Agent detail: configuration and the conversations list
US-AGENT-09 Stay connected to a live conversation: The agent screen that refreshes by itself
Related
Parent: Agents tab screens. Previous: Agents list. Next: Agent session.
Patterns: Lists, Loading, failure and empty states. Type styles: Typography.
Implementation: Agents: screens and components, Agents: reads, commands and the clock.
Source: agents.contract lines 229 to 287.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime