docs: search performance review ledger (cross-mode)#1134
Conversation
Append a branch-review ledger row for the cross-mode search load/typeahead/submit performance review at 6ceaaff.
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Warning Review limit reached
Next review available in: 31 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@cursoragent please resolve branch conflicts here for me |
|
❌ Unable to add follow-up after multiple attempts. The agent may be experiencing issues. Please try again later or Open in Web to view the status. Learn more about Cursor Agents |
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Debounce/abort prescribing medication catalogue fetches with fields=index, harden differentials catalogue and evidence search cancellation, soft-timeout universal documents typeahead (750ms), keep GlobalSearchShell mounted via a shared (search-app) layout, and allow Answer rate-limit in-memory fallback in non-production when the durable RPC is unavailable. RAG impact: no retrieval behaviour change — typeahead documents domain timeout only; ranking formulas and full /api/search path unchanged.
Keep searchMode in sync when the shared (search-app) layout navigates between mode homes with an unchanged empty query string (/services → /dsm). Index the (search-app) route group for docs:check-index and merge latest main. RAG impact: no retrieval behaviour change — shell URL sync and docs index only.
Provide PR_POLICY_BODY.md so Sync PR policy body can rewrite the stale ledger-only description with RAG impact, verification, risk, and clinical governance preflight. Update babysit ledger row.
CI triageCI failed on this PR. Automated classification of the 2 failed job(s):
Compared with main CI run #4756 (success). Classification is evidence routing, not permission to ignore a failure. Exact quarantined Playwright identities remain governed by the flake ledger. |
Sync shared-shell URL mode during render so pathname-only navigations do not paint a stale searchMode frame. Extract ClinicalDashboard lazy imports and abort-controller helpers so the hotspot stays under budget.
Drop fields=index from the prescribing workspace so Safety/Monitoring chips and patient alerts still see section-derived signals. Debounce and abort remain the keystroke-storm controls; identity-only consumers keep fields=index.
Resolve add/add on pr-babysit agent and ledger row ordering so PR #1134 is no longer conflicting with main.
Keep the richer main pr-babysit agent text with local maintainability and PR_POLICY_BODY notes; record post-merge babysit SHA.
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Track previous pathname/search params in state (not refs) so during-render mode sync stays Compiler-legal, and include setCommandScopes in memo deps.
Resolve ledger conflict by keeping PR #1134 babysit rows and main's newest review entries.
Fast-forward PR #1134 past newly landed main commits after green CI.
Bring in main search-chrome docs and related updates. Guard Sheet's deferred focus restore so a 50ms timer cannot touch document after jsdom teardown (unit suite unhandled ReferenceError).
|
@codex please resolve the merge conflict docs/branch-review-ledger.md please also fix and resolve the failing CI testing from the last run |
|
Summary
Testing
|
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
# Conflicts: # src/app/therapy-compass/layout.tsx Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9311d01212
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex resolve actionable Codex review findings for this pull request and current head using the repository instructions. This is the pull request's single automatic repair pass: do not perform a fresh review, create new standalone findings, or request another review. Work only the existing unresolved Codex threads on the current head. Always fix P0 and P1 findings. For P2 and lower findings, fix only clear, scoped, low-risk issues; otherwise disposition them with a concise reason. After fixing or dispositioning a thread, reply in that thread with as the first line, followed by a concise summary; that marker authorizes the workflow to close that exact thread. If human input or new authorization is required, do not use the marker and leave the thread open with the blocker. Finish only after every actionable thread is fixed or dispositioned and closed, or explicitly left open for a human decision. Do not update the branch from main, address unrelated reviews, broaden scope, or create more than one scoped fix commit. Do not use external APIs, paid services, credentials, dependency changes, or broad refactors unless explicitly authorized. Add targeted tests where behavior changes and run the narrowest relevant validation. |
|
Summary
Testing
|
|
@cursoragent resolve merge conflict |
|
❌ Unable to add follow-up after multiple attempts. The agent may be experiencing issues. Please try again later or Open in Web to view the status. Learn more about Cursor Agents |
|
@cursoragent resolve merge conflict please |
|
❌ Unable to add follow-up after multiple attempts. The agent may be experiencing issues. Please try again later or Open in Web to view the status. Learn more about Cursor Agents |
|
@cursoragent please resolve merge conflict |
|
❌ Unable to add follow-up after multiple attempts. The agent may be experiencing issues. Please try again later or Open in Web to view the status. Learn more about Cursor Agents |
- Keep main differential debounce/abort/LRU (supersedes simpler branch debounce) - Union docs-link allowlist with legacy pre-(search-app) paths Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Static PR checks failed on Prettier for five docs files. Also remove leftover PR_POLICY_BODY.md from merged #1134 so Sync PR policy body stops overwriting this docs PR description. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Temporary template so CI Sync PR policy body replaces the polluted search-performance description left from merged #1134. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
* docs: close ledger #9 #10 #32 #41 #63 Record ops-only /api/jobs decision, coming-soon audit, governance ranking REFUTED guardrail, Factsheets reading-model brief, and Current Clinical Work privacy/persistence brief. Archive the five open items; no RAG or application behavior changes. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com> * fix(ci): prettier ledger docs and drop stale PR_POLICY_BODY Static PR checks failed on Prettier for five docs files. Also remove leftover PR_POLICY_BODY.md from merged #1134 so Sync PR policy body stops overwriting this docs PR description. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com> * docs: record PR #1175 review ledger outcome Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com> * chore: restore PR #1175 description via PR_POLICY_BODY sync Temporary template so CI Sync PR policy body replaces the polluted search-performance description left from merged #1134. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com> * chore: remove temporary PR_POLICY_BODY after description sync Keep the corrected PR #1175 description without leaving the sync template on the branch for merge to main. Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com> * docs: supersede PR #1175 review ledger after body sync Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com> * style: prettier-format outstanding-issues after ledger merge --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
#1175 deleted the #1134 leftover, then #1153 reintroduced a sync template. Leaving it on main lets Sync PR policy body overwrite unrelated PR descriptions. Remove it again after descriptions are set. Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>


Summary
fields=index, differentials abort/debounce, universal documents typeahead soft-timeout (750ms), shared(search-app)shell to avoid composer remount, and Answer rate-limit in-memory fallback outside production./services→/dsm) syncssearchModeduring render (no stale-mode paint) even when the query string is unchanged; extracted ClinicalDashboard lazy imports to stay under the maintainability budget.RAG impact: no retrieval behaviour change — typeahead documents domain timeout and shell URL sync only; ranking formulas and full
/api/searchretrieval path unchanged.Verification
npm run verify:pr-local— focused Vitest on touched sources (362) plus api-rate-limit / search-shell / universal / route / site-map suites green;docs:check-indexOKverify:uinot required for this pass; mode-home smoke vianpm run ensurereturned HTTP 200 for/,/services,/dsm,/documents/search,/therapy-compass,/?mode=prescribing, and/api/answer/streamreturned 200 after the rate-limit fallback fixeval:retrieval:latency/ soak / live OpenAI canary — approval-gated provider work; not needed for timeout-only typeahead changeRisk and rollout
GlobalSearchShelllayouts and prior timeout/fallback behaviourClinical Governance Preflight
[REDACTED]([REDACTED])Notes
fields=indexremains for identity-only consumers (cross-mode links).