Redesign the details panel around what changes

Run state, context window and provider limits on top; the agent's latest
to-do list; changes in git-status style with the diff and git quick action
on one line; a one-line branch summary; subagents with their status, the
finished ones folded; automations' next run as a short time; workspace,
model and mode as a quiet footer.
This commit is contained in:
Callum Alpass committed 2026-11-03 01:46:23 +11:00
1 parent 1cccff8031
commit 9702c31e62
8 files changed
+501 -133

No files matched your search

+7 -1
View File
@@ -59,8 +59,14 @@ export function needsAttention(row: Pick<ThreadRow, "status" | "unread">): boole
return row.status === "approval" || row.status === "input" || row.status === "request" || row.status === "failed" || row.status === "limited" || row.unread;
}
/** A thread's row status, for one that isn't listed (or that you have outside a list). */
export function threadState(thread: OrchestrationV2ThreadShell): Pick<ThreadRow, "shell" | "status" | "unread"> {
const shell = presentThreadShell(LOCAL_ENVIRONMENT, thread);
return { shell, status: resolveStatus(shell), unread: hasUnseenCompletion(shell) };
}
/** The sidebar's top-right status word, or null to show the time instead. */
export function statusLabel(row: ThreadRow, now = Date.now()): { readonly text: string; readonly tone: StatusTone } | null {
export function statusLabel(row: Pick<ThreadRow, "shell" | "status" | "unread">, now = Date.now()): { readonly text: string; readonly tone: StatusTone } | null {
switch (row.status) {
case "working": {
const label = row.shell.goal?.status === "active" ? "Goal" : "Working";