feat: expose subagent session metadata in sessions list

This commit is contained in:
Tyler Yust
2026-03-12 01:07:22 -07:00
parent 3043a7886f
commit 865bdf05fe
6 changed files with 207 additions and 1 deletions

View File

@@ -364,6 +364,8 @@ export type AgentsFilesSetResult = {
file: AgentFileEntry;
};
export type SessionRunStatus = "running" | "done" | "failed" | "killed";
export type GatewaySessionRow = {
key: string;
spawnedBy?: string;
@@ -386,6 +388,11 @@ export type GatewaySessionRow = {
inputTokens?: number;
outputTokens?: number;
totalTokens?: number;
status?: SessionRunStatus;
startedAt?: number;
endedAt?: number;
runtimeMs?: number;
childSessions?: string[];
model?: string;
modelProvider?: string;
contextTokens?: number;