better retry display

This commit is contained in:
Dax Raad
2025-11-17 11:30:55 -05:00
parent a5365ce294
commit 8b19c6c7e4
7 changed files with 118 additions and 211 deletions

View File

@@ -367,6 +367,15 @@ export type CompactionPart = {
export type Part =
| TextPart
| {
id: string
sessionID: string
messageID: string
type: "subtask"
prompt: string
description: string
agent: string
}
| ReasoningPart
| FilePart
| ToolPart
@@ -425,6 +434,28 @@ export type EventPermissionReplied = {
}
}
export type SessionStatus =
| {
type: "idle"
}
| {
type: "retry"
attempt: number
message: string
next: number
}
| {
type: "busy"
}
export type EventSessionStatus = {
type: "session.status"
properties: {
sessionID: string
status: SessionStatus
}
}
export type EventSessionCompacted = {
type: "session.compacted"
properties: {
@@ -476,27 +507,6 @@ export type EventCommandExecuted = {
}
}
export type SessionStatus =
| {
type: "idle"
}
| {
type: "retry"
attempt: number
message: string
}
| {
type: "busy"
}
export type EventSessionStatus = {
type: "session.status"
properties: {
sessionID: string
status: SessionStatus
}
}
export type EventSessionIdle = {
type: "session.idle"
properties: {
@@ -639,11 +649,11 @@ export type Event =
| EventMessagePartRemoved
| EventPermissionUpdated
| EventPermissionReplied
| EventSessionStatus
| EventSessionCompacted
| EventFileEdited
| EventTodoUpdated
| EventCommandExecuted
| EventSessionStatus
| EventSessionIdle
| EventSessionCreated
| EventSessionUpdated
@@ -1248,6 +1258,14 @@ export type AgentPartInput = {
}
}
export type SubtaskPartInput = {
id?: string
type: "subtask"
prompt: string
description: string
agent: string
}
export type Command = {
name: string
description?: string
@@ -2142,7 +2160,7 @@ export type SessionPromptData = {
tools?: {
[key: string]: boolean
}
parts: Array<TextPartInput | FilePartInput | AgentPartInput>
parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>
}
path: {
/**