Skip to content

fix(harness): migrate legacy Cursor install-state to profile schema v2 - #510

Merged
solomonneas merged 1 commit into
mainfrom
issue/468-cursor-install-state
Jul 25, 2026
Merged

fix(harness): migrate legacy Cursor install-state to profile schema v2#510
solomonneas merged 1 commit into
mainfrom
issue/468-cursor-install-state

Conversation

@solomonneas

Copy link
Copy Markdown
Collaborator

Summary

  • Profile sync upgrades legacy Cursor install-state.json (version: 1) to schema v2 instead of deadlocking on unsupported ownership state version: None.
  • Migration preserves ownership attestations from legacy files / hooks / mcp keys so profile uninstall still removes managed surfaces.
  • Legacy harness install cursor on an existing v2 state now reports explicit sync/uninstall recovery commands.

Fixes #468

Test plan

  • ./scripts/verify
  • pytest tests/test_cursor_install_state_migration.py
  • Manual repro: legacy install → profile sync → profile uninstall

Made with Cursor

Profile sync now upgrades version-1 legacy ~/.cursor/brigade/install-state.json
instead of deadlocking, preserving files/hooks/mcp attestations so uninstall
still works. Legacy install on an existing v2 state reports the sync/uninstall
recovery commands explicitly.

Fixes #468

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

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • coderabbit-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: escoffier-labs/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 03a8d227-c996-4724-bcd8-b12cc7270156

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch issue/468-cursor-install-state

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

@solomonneas solomonneas self-assigned this Jul 24, 2026
@solomonneas
solomonneas merged commit 970e7ce into main Jul 25, 2026
28 checks passed
@solomonneas
solomonneas deleted the issue/468-cursor-install-state branch July 25, 2026 03: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.

Cursor: legacy harness install and user-profile sync deadlock on shared install-state.json

1 participant