Skip to content

perf(gui): faster page data with SWR seeds and less remount churn - #635

Draft
Wibias wants to merge 4 commits into
lidge-jun:devfrom
Wibias:perf/gui-page-data
Draft

perf(gui): faster page data with SWR seeds and less remount churn#635
Wibias wants to merge 4 commits into
lidge-jun:devfrom
Wibias:perf/gui-page-data

Conversation

@Wibias

@Wibias Wibias commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Usage: cache by (range, surface) so held tabs paint instantly (quiet revalidate)
  • Codex Auth: progressive /accounts paint + in-memory last-good
  • Storage / API Keys / Grok / Subagents / Claude: session seeds + soft refresh; Claude Code+Desktop stay mounted
  • Logs/Debug: keep Debug mounted after first open; stream-identity gate cuts switch refetch storms

Before/after: devlog/gui-load-perf-pages-before-after.md (baseline usage cold ~5.2s, accounts ~1.2s).

Test plan

  • Usage: switch surfaces without full ~5s refetch when data already held
  • Codex Auth: accounts appear progressively; revisit uses last-good
  • Storage / API Keys / Grok / Subagents: faster second open
  • Claude: Code+Desktop tabs don't remount each switch
  • Logs ↔ Debug: toggling switches doesn't storm refetches
  • gui lint + focused GUI tests

Part of GUI loading split (PERF-2). Companions: #633 (PERF-1), #607 #630 #629 (UI).

Avoid cold remount/refetch storms on Usage tabs, Codex Auth boxes, Logs/Debug, Claude, and other secondary pages by seeding non-secret list shapes and keeping independent fetches from blocking each other.
@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: b11b380e-fb90-4b61-ab29-7c78cac92e6e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the enhancement New feature or request label Jul 28, 2026
Wibias added 3 commits July 28, 2026 18:04
Propagate AbortError from fetchStartupHealth instead of mapping it to the dashboard error status that shows Could not read startup protection after remount races.
Cold/expired startup-health SWR falls back with diagnosticStale=true; keep the payload status instead of the misleading read-failure chip.
@Wibias
Wibias force-pushed the perf/gui-page-data branch from 79e00f3 to 172f435 Compare July 28, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant