Repository navigation
Open
Labels
airc-queueAIRC-backed agent work queue cardbugSomething isn't workingperformancePerformance / throughput issuesstabilitySystem stability and resilience
Description
airc-queue card
Coordinates work via the AIRC queue substrate (airc#562). Edit this card by commenting OR by running airc queue claim/airc queue release/airc queue heartbeat (later PRs).
{
"kind": "airc-queue-card-v1",
"id": "#1102",
"owner": "claude-tab-2",
"status": "claimed",
"evidence": "Adopted existing GitHub issue into airc queue.",
"next_action": "Triage, claim, or close this adopted backlog card."
}Close this issue when the work is done (status=merged/abandoned).
Original issue body
Pre-adoption body
Problem
docs/positron/WIDGET-TECHNICAL-DEBT.md documents a ~30s white screen on cold load. Root cause:
- 18 daemons initialize synchronously, each waiting for the previous to fully ready up — ~500ms avg each, so 9+ seconds of serial init before any rendering can begin
MainWidgetusessetTimeout(fn, 0)patterns to defer init, blocking the entire appBaseWidgetpolls withsetTimeout(checkReady, 100)— white screen on refresh while daemons re-register- 26+
setTimeout/setInterval"wait for X" hacks across widgets, adding ~20s of cumulative latency - 20+
innerHTMLassignments destroying reactive state (tracked separately under the adapter refactor)
Fix
State machine for daemon lifecycle: created → starting → ready → failed, with:
- Daemons declare their dependencies; daemon manager starts each daemon as its deps reach
ready, in parallel where independent - Widgets subscribe to daemon-ready events instead of polling — Lit's
firstUpdated/updatedlifecycle is sufficient - Eliminate every
setTimeout(fn, 0)and polling loop; replace with event subscription - Render shell + loading indicator immediately on page mount; daemons hydrate in background
Acceptance
- Cold load to first paint under 1s
- Cold load to interactive under 3s on the default route
- Browser refresh recovers without white screen (related: CRITICAL: Left sidebar blanks on page refresh — rooms and metrics gone #687, CRITICAL: All widgets fail on refresh — Rust core IPC dies and doesn't recover #722, Node.js doesn't reconnect when Rust core restarts #793)
- Zero
setTimeoutfor "wait for daemon X to be ready" in widgets
Related
docs/positron/WIDGET-TECHNICAL-DEBT.md— full debt doc- CRITICAL: Left sidebar blanks on page refresh — rooms and metrics gone #687 — Left sidebar blanks on refresh (symptom)
- CRITICAL: All widgets fail on refresh — Rust core IPC dies and doesn't recover #722 — All widgets fail on refresh, Rust core IPC dies (related: refresh recovery)
- Node.js doesn't reconnect when Rust core restarts #793 — Node.js doesn't reconnect when Rust core restarts (related)
- 4.3MB JS bundle: code split, lazy load widgets, target <500KB initial load #763 — 4.3MB bundle (also contributes to time-to-interactive)
Metadata
Metadata
Assignees
Labels
airc-queueAIRC-backed agent work queue cardbugSomething isn't workingperformancePerformance / throughput issuesstabilitySystem stability and resilience
Activity
fix(bin): airc_chat_demo joins by NAME, not UUID — round-trip lights on