Skip to content

Optimize Cursor codebase indexing ignore rules#1171

Merged
cursor[bot] merged 19 commits into
mainfrom
cursor/codebase-indexing-optimize-7a2b
Jul 25, 2026
Merged

Optimize Cursor codebase indexing ignore rules#1171
cursor[bot] merged 19 commits into
mainfrom
cursor/codebase-indexing-optimize-7a2b

Conversation

@BigSimmo

@BigSimmo BigSimmo commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fix cross-mode search performance findings: prescribing catalogue debounce/abort/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.
  • Fix Bugbot regressions: shared-shell pathname navigation (/services/dsm) syncs searchMode during 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/search retrieval 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-index OK
  • UI verification not run: full verify:ui not required for this pass; mode-home smoke via npm run ensure returned HTTP 200 for /, /services, /dsm, /documents/search, /therapy-compass, /?mode=prescribing, and /api/answer/stream returned 200 after the rate-limit fallback fix
  • Verification not run: eval:retrieval:latency / soak / live OpenAI canary — approval-gated provider work; not needed for timeout-only typeahead change

Risk and rollout

  • Risk: medium — shared layout remount change and rate-limit fallback behaviour in non-production; production Answer/upload still fail closed when the durable limiter is unavailable
  • Rollback: revert this PR; mode routes return to per-segment GlobalSearchShell layouts and prior timeout/fallback behaviour
  • Provider or production effects: None

Clinical Governance Preflight

  • Source-backed claims still require linked source verification before clinical use
  • No patient-identifiable document workflow was introduced or expanded without explicit governance approval
  • Supabase target remains [REDACTED] ([REDACTED])
  • Service-role keys and private document access remain server-only
  • Demo/synthetic content remains clearly separated from real clinical sources
  • Source metadata, review status, and outdated/unknown-source behavior remain conservative
  • Deployment classification/TGA SaMD impact was checked when clinical decision-support behavior changed

Notes

  • Prescribing list rows keep the full catalogue payload so Safety/Monitoring filters and patient alerts still see section-derived signals; keystroke storms are controlled by debounce + abort. fields=index remains for identity-only consumers (cross-mode links).
  • Live hybrid RPC cold tails remain a separate approval-gated follow-up.

Exclude ~30MB of tracked lockfiles, snapshot JSON, PDFs/PNGs, and archive
docs from the semantic index while keeping them @Files-reachable, and allow
.env.example through .cursorignore for setup context.

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
@supabase

supabase Bot commented Jul 24, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project sjrfecxgysukkwxsowpy because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Changes

The PR expands Cursor workspace and semantic-index ignore rules to exclude generated outputs, secrets, local tooling, worktrees, large data/assets, archives, manifests, and Playwright artifacts while preserving .env.example.

Cursor exclusion configuration

Layer / File(s) Summary
Workspace and environment exclusions
.cursorignore
Adds exclusions for build/test outputs, environment and secret files, vendor/virtual environments, sync/design tooling, worktrees, and local platform artifacts.
Semantic indexing exclusions
.cursorindexingignore
Excludes lockfiles, generated data, large assets, archives, manifests, clinical reference JSON, and Playwright artifacts from semantic indexing.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Suggested labels: codex

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title is concise and accurately reflects the ignore-rule optimization in the PR.
Description check ✅ Passed The description matches the template well and includes summary, verification, risk, governance, and notes.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cursor/codebase-indexing-optimize-7a2b

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.

❤️ Share

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

cursoragent and others added 5 commits July 24, 2026 17:13
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
…ing-optimize-7a2b

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
@cursor
cursor Bot marked this pull request as ready for review July 24, 2026 19:15
@cursor
cursor Bot enabled auto-merge (squash) July 24, 2026 19:16
@cursor
cursor Bot merged commit 3a40365 into main Jul 25, 2026
18 checks passed
@cursor
cursor Bot deleted the cursor/codebase-indexing-optimize-7a2b branch July 25, 2026 04:06
BigSimmo added a commit that referenced this pull request Jul 25, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
cursor Bot pushed a commit that referenced this pull request Jul 25, 2026
…1141)

* fix(ui): implement orientation adaptive design audit recommendations

* fix: remove duplicate command dropdown height cap

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>

* chore: note review reply permission denial

GraphQL review-thread replies returned 403; resolved the fixed duplicate-height threads directly after validation.

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>

* docs: record PR babysit sweep

Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>

* docs: record Run PR behind-main sweep for #1141

* docs: ledger re-sync sweep for PR #1141

* fix(ui): collapse dock child safe-area padding

* docs: record PR 1141 maintenance

* fix(ui): avoid Sheet max-height racing caller caps

Skip the default phone max-h utility when contentClassName already sets max-h, and record the PR #1140 babysit ledger row.

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(ui): poll guide dialog focus trap across viewport sizes

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(ui): do not steal focus from a newly opened sheet on restore retry

The Sources opener retry must not reclaim focus when another dialog already became active (mobile Guide opened from the Clinical Guide menu).

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(ui): retry Sheet autofocus when open races a closing sibling

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(ui): harden Sources opener focus restore assertion after Escape

Co-authored-by: Cursor <cursoragent@cursor.com>

* docs(review): record babysit merges for #1140 #1171 #1180 #1158

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(ui): stabilize Sources sheet autofocus on open

Default UtilityDrawer sheet mode for breakpoint=all and retry sheet autofocus so the Find-a-document field keeps focus after drawer mount races.

* ci: retrigger PR policy check on tip

* fix(ui): stop stacked Sheet focus steal; assert Escape restore honestly

Gate Sheet autofocus retries on isTopmostSheet, and remove test-side focus repair so production restore failures stay visible.

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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