perf: SAM UI Performance Program — Make Everything Snappy - #1852
Merged
simple-agent-manager[bot] merged 7 commits intoAug 19, 2026
Merged
Conversation
…e parallelization (#1851) UI Performance Program Workstream C — items #5 + #6. ensureProjectId: memoized per (isolate, DO-id) — 7 DO consumers verified safe. chat-agent-state: parallelized independent DO lookups. Net -35-42% roundtrips per endpoint. 4 specialist reviewers, all ADDRESSED. CI green (run 32142937870).
Contributor
… (items #1) Workstream A: per-isolate TTL cache for auth preamble D1 queries (~42→~3 per authenticated request) + platform-config.ts split into 6 modules to pass 800-line CI gate. Part of UI Performance Program (idea 01M09SKVNJGJNJY2WGCZ6D89XZ).
#1859) Squash-merge Wave 2 workstream G into integration branch. Items #9 (chat DOM bound — timeline drawer virtualized, Virtuoso header stabilized) + #12 (D1 session summary index with delta sync, mutex, circuit breaker). CI run 32201378354: 12/12 jobs pass. 7708 API + 3202 web + 12 Playwright tests. 4 specialist reviews all ADDRESSED. 3 latent bugs found and fixed during review. Merge conflict resolved: configuration.md — both agents added env var docs to same table.
…1860) Squash-merge of workstream F (Wave 3). Migrates 15 hand-rolled useState/useEffect data-fetching hooks to TanStack Query with shared query-option factories, stale-while-revalidate rendering, identity-scoped cache keys, and hidden-tab poll gating. Key changes: - New query-options/ directory with domain-grouped factories (agents, chats, credentials, infrastructure, notifications, projects, tasks, trial) - Shared stale times (query-stale-times.ts) and poll config (poll-intervals.ts) - Dedup wins: listCredentials 7→2, listAgentProfiles 5→0, listAgents 5→3, getProviderCatalog 4→2, AppShell 6→3 requests/load - useSetupStatus shared hook eliminates OnboardingProvider + ChoosePathWizard double-fetch (CRITICAL performance reviewer finding) - All migrated hooks tested for SWR, dedup, identity scoping, and hidden-tab pause behavior - Process rule: "A Green Test Count Is Not A Green Suite" (.claude/rules/02) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



SAM UI Performance Program
Implements SAM idea
01M09SKVNJGJNJY2WGCZ6D89XZ— 12 optimization items across server and client, coordinated via 7 sub-PRs squash-merged into this integration branch.Program Tracking
What changed
Server (apps/api)
Client (apps/web)
Staging Validation Results
Deploy
#32214366482on integration branch — GREENRegression sweep: 15 routes × 2 viewports, 0 new console errors, 0 failed API calls, 0 new overflow.
Specialist Review Evidence
Reviews were performed per-sub-PR by the implementing agents. This integration PR aggregates 7 squash-merged sub-PRs that each passed CI independently.
Agent Preflight
ui-change,business-logic-change,cross-component-change🤖 Generated with Claude Code