mirror of
https://github.com/stablyai/orca.git
synced 2026-10-22 16:03:47 +00:00
Add mobile structured session read flow
This commit is contained in:
@@ -125,6 +125,8 @@ export type AgentJournalQuestionItem = {
|
||||
kind: 'question'
|
||||
question: string
|
||||
options: AgentJournalPromptOption[]
|
||||
/** Present when the provider accepts an answer outside the offered options. */
|
||||
freeTextQuestionId?: string
|
||||
resolution: AgentJournalResolution
|
||||
}
|
||||
|
||||
|
||||
@@ -49,6 +49,8 @@ export type AgentSessionHistoryPage = {
|
||||
newest: AgentJournalCursor | null
|
||||
nextCursor: AgentJournalCursor
|
||||
}
|
||||
/** Current journal head for switching from a bounded page to live subscribe. */
|
||||
liveCursor?: AgentJournalCursor
|
||||
hasOlder: boolean
|
||||
hasNewer: boolean
|
||||
}
|
||||
|
||||
@@ -251,11 +251,23 @@ export type RuntimeMobileSessionBrowserTab = {
|
||||
isActive: boolean
|
||||
}
|
||||
|
||||
export type RuntimeMobileSessionAgentTab = {
|
||||
type: 'agent-session'
|
||||
id: string
|
||||
title: string
|
||||
sessionId: string
|
||||
agent: 'codex'
|
||||
color?: string | null
|
||||
isPinned?: boolean
|
||||
isActive: boolean
|
||||
}
|
||||
|
||||
export type RuntimeMobileSessionSnapshotTab =
|
||||
| RuntimeMobileSessionTerminalTab
|
||||
| RuntimeMobileSessionMarkdownTab
|
||||
| RuntimeMobileSessionFileTab
|
||||
| RuntimeMobileSessionBrowserTab
|
||||
| RuntimeMobileSessionAgentTab
|
||||
|
||||
export type RuntimeMobileSessionTerminalClientTab =
|
||||
| (RuntimeMobileSessionTerminalTab & {
|
||||
@@ -272,6 +284,7 @@ export type RuntimeMobileSessionClientTab =
|
||||
| RuntimeMobileSessionMarkdownTab
|
||||
| RuntimeMobileSessionFileTab
|
||||
| RuntimeMobileSessionBrowserTab
|
||||
| RuntimeMobileSessionAgentTab
|
||||
|
||||
export type RuntimeMobileSessionTabGroup = {
|
||||
id: string
|
||||
@@ -328,7 +341,7 @@ export type RuntimeMobileSessionTabsSnapshot = {
|
||||
snapshotVersion: number
|
||||
activeGroupId: string | null
|
||||
activeTabId: string | null
|
||||
activeTabType: 'terminal' | 'markdown' | 'file' | 'browser' | null
|
||||
activeTabType: 'terminal' | 'markdown' | 'file' | 'browser' | 'agent-session' | null
|
||||
tabGroups?: RuntimeMobileSessionTabGroup[]
|
||||
tabGroupLayout?: TabGroupLayoutNode | null
|
||||
tabs: RuntimeMobileSessionSnapshotTab[]
|
||||
@@ -342,7 +355,7 @@ export type RuntimeMobileSessionTabsResult = {
|
||||
navigationIntent?: 'follow'
|
||||
activeGroupId: string | null
|
||||
activeTabId: string | null
|
||||
activeTabType: 'terminal' | 'markdown' | 'file' | 'browser' | null
|
||||
activeTabType: 'terminal' | 'markdown' | 'file' | 'browser' | 'agent-session' | null
|
||||
tabGroups?: RuntimeMobileSessionTabGroup[]
|
||||
tabGroupLayout?: TabGroupLayoutNode | null
|
||||
tabs: RuntimeMobileSessionClientTab[]
|
||||
|
||||
Reference in New Issue
Block a user