app: use session_working helper to simplify loading states (#27212)

This commit is contained in:
Brendan Allan
2026-05-13 10:27:05 +08:00
committed by GitHub
parent b43147440c
commit 2f4dce789f
8 changed files with 10 additions and 26 deletions
+1 -4
View File
@@ -1496,10 +1496,7 @@ export default function Page() {
return out
})
const busy = (sessionID: string) => {
// This matches how the TUI does it
return (sync.data.session_status[sessionID] ?? { type: "idle" as const }).type !== "idle"
}
const busy = (sessionID: string) => sync.data.session_working(sessionID)
const queuedFollowups = createMemo(() => {
const id = params.id