Skip to content

Claude/resolve merge conflicts mb97 m#41

Merged
agenticassets merged 2 commits intomainfrom
claude/resolve-merge-conflicts-Mb97M
Jan 27, 2026
Merged

Claude/resolve merge conflicts mb97 m#41
agenticassets merged 2 commits intomainfrom
claude/resolve-merge-conflicts-Mb97M

Conversation

@agenticassets
Copy link
Owner

No description provided.

This commit merges approved optimizations from:
- cursor/AGENTIC-18-request-waterfalls-agent-c76b
- cursor/AGENTIC-19-editor-re-render-optimization-537c

Changes include:

**API Route Optimizations (Branch 18):**
- Use Promise.all for parallel fetching of user data in tasks/route.ts
- Use Promise.all for parallel fetching in continue/route.ts
- Extract getMcpServersForUser helper for cleaner code

**Page-Level Optimizations (Branch 18):**
- Parallel fetch session and GitHub stars in app/page.tsx
- Parallel fetch in app/[owner]/[repo]/page.tsx
- Parallel fetch in app/new/[owner]/[repo]/page.tsx
- Parallel fetch in app/tasks/page.tsx
- Parallel fetch in app/repos/[owner]/[repo]/layout.tsx

**React Component Optimizations (Branch 19):**
- Wrap FileDiffViewer with memo() for render optimization
- Hoist constants (DIFF_VIEW_MODE, IMAGE_MIME_TYPES) outside component
- Add memoized derived state (isFilesMode, isChangesMode, diffViewTheme)
- Memoize editor options, language, and theme in FileEditor
- Use static strings in console.error calls per security guidelines

Rejected patterns (per code review):
- NDJSON streaming (adds complexity without real benefit)
- startTransition (minimal benefit for sync state updates)
- Nested callback ref patterns (creates stale closure risk)
Conflicts resolved in 3 files:
- app/api/tasks/route.ts: Keep Promise.all() with getMcpServersForUser helper
  for parallel data fetching (better performance and DRY principles)
- components/file-diff-viewer.tsx: Use React 19 startTransition for state
  updates, cachedDiffData memoization for proper deps, static logging
- components/file-editor.tsx: Add startTransition import, remove duplicate
  editorLanguage/editorTheme/editorOptions declarations

Merged features from main:
- MCP guide documentation
- Rate limit indexes migration
- Code review improvements
- Editor re-render optimizations

https://claude.ai/code/session_01LAxLpTMGTZrU4sqvwxRkK3
@vercel
Copy link

vercel bot commented Jan 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
aa-coding-agent Ready Ready Preview, Comment Jan 27, 2026 3:32am

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@agenticassets agenticassets merged commit 7db41fb into main Jan 27, 2026
2 checks passed
@agenticassets agenticassets deleted the claude/resolve-merge-conflicts-Mb97M branch January 27, 2026 03:32
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.

2 participants