Skip to content

fix(platform): close production performance gaps - #286

Merged
iamjr15 merged 1 commit into
mainfrom
fix/cloudflare-prod-qa
Aug 25, 2026
Merged

fix(platform): close production performance gaps#286
iamjr15 merged 1 commit into
mainfrom
fix/cloudflare-prod-qa

Conversation

@iamjr15

@iamjr15 iamjr15 commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Why

Production QA of the Cloudflare performance rollout found two concrete gaps:

  • project summaries and project search results returned latestThreadId: null even when chats existed;
  • the authenticated home page still started six API requests instead of the planned three.

What changed

  • Replace correlated raw SQL with typed PostgreSQL lateral joins for latest project threads.
  • Load model policy only when the model menu opens and keep provider choices disabled during the initial policy fetch.
  • Load the composer skills catalog only when an @ mention is active.
  • Load the global terminal context only after the Computer panel opens.

No schema migration or architectural boundary change is included.

Verification

  • pnpm lint
  • pnpm typecheck
  • pnpm turbo build --force
  • pnpm deadcode
  • pnpm architecture:check
  • pnpm turbo skills:build
  • pnpm worker:performance-budgets
  • Production QA on merge d1ad4ccd: Google sign-in, authenticated bootstrap, project/search response inspection, real status stream, successful GPT-5.6 Sol completion, persisted final checkpoint, and reload/reconnect.

Linear is intentionally omitted because the project has no Linear approval workflow.

Use lateral joins for latest project threads so sidebar and search navigation resolve correctly.

Defer profile, skill, and terminal reads until their surfaces open.

This keeps authenticated home startup at three requests.
@iamjr15
iamjr15 merged commit 0892032 into main Aug 25, 2026
4 checks passed
@iamjr15
iamjr15 deleted the fix/cloudflare-prod-qa branch August 25, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant