Repository navigation
Repair Copy URL after install-time migration stamping - #8153
chessing234 wants to merge 8 commits into
Conversation
Fresh installs mark 1786643346 complete before a Chromium profile exists, so a later-synced ghost shortcut never gets repaired. Run the same idempotent command from first-run, login, and browser launch, and rewrite Preferences only when no live Chromium pid holds the profile. Fixes omacom#7983
There was a problem hiding this comment.
Pull request overview
Moves Chromium Copy URL repair into a reusable command that runs outside migration stamping and safely updates closed profiles.
Changes:
- Adds first-run, login, browser, webapp, and migration repair hooks.
- Uses atomic preference replacement and clears Chromium integrity data.
- Expands tests for stale locks, migration stamps, and repair persistence.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 8 out of 13 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
bin/omarchy-cmd-repair-chromium-copy-url |
Implements shared profile repair. |
bin/omarchy-launch-browser |
Repairs before browser launch. |
bin/omarchy-launch-webapp |
Repairs before webapp launch. |
bin/omarchy-migrate-notify |
Retries repair at login. |
bin/omarchy-provision-first-run |
Adds first-run repair step. |
install/user/first-run/chromium-copy-url.sh |
Defines first-run repair hook. |
migrations/1786643346.sh |
Delegates original migration. |
migrations/1787601557.sh |
Retries previously stamped installs. |
test/shell.d/chromium-copy-url-test.sh |
Checks fresh-install integration. |
test/shell.d/copy-url-shortcut-migration-test.sh |
Expands repair behavior coverage. |
test/shell.d/first-run-test.sh |
Checks first-run registration. |
test/shell.d/launch-browser-test.sh |
Verifies pre-launch repair. |
test/shell.d/systemd-test.sh |
Checks login retry integration. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
@dhh @ryanrhughes ready for review |
|
Reviewed at c5c9152 against The bug is real, and this fixes the part #7983 describes. On the base, a stale One defect. The Dropping Scope. The login retry in Conflicts. It no longer merges into Second opinion: none. The configured reviewer, Codex Medium, answered a ping but refused the review because its daily budget was spent. This is one model's reading (Claude Opus 5.5) plus the worker results. Waiting on: @chessing234 to rebase onto |
[Medium impact] The PR appears safe to merge; all numbered previous findings are addressed and no new blocking issues were found. SummaryMoves Copy URL repair into a shared command called by first-run, login, and migrations.
All three numbered previous findings are addressed. No new actionable issues were found.
|
|
New commits since the last review, so this was classified again at 213ccc0, and the two models that classify it separately disagree. Claude Opus 5.5 reads it as a bug fix: #7983 reports the Copy URL shortcut staying broken on installs where Until that is settled it carries no class label, and it was not re-reviewed or run on a worker at this head, so nothing here says whether the backup check, launch hooks and Waiting on: the maintainer, to say whether this is a fix. |
|
Classified again at 0813b2b, after the merge of From reading this head, not running it: it merges cleanly into One new defect, from the merge. On Waiting on: the maintainer, to say whether this is a fix, and @chessing234 for the Brave Origin roots. |
|
Reclassified at I read this revision’s diff, the previous feedback and #7983. No worker tests or full second-opinion code review ran at this head because the queue workflow stops on a classification disagreement. GitHub’s test job also failed in Waiting on the maintainer to settle whether this should proceed as a bug fix or an enhancement. |
Include Brave Origin profile roots so extracting the migration cannot silently skip its callers. Give pending repairs their own backup suffix: shipped migrations left ordinary backups after success, and treating those as pending would prompt users with already repaired browsers and block later migrations. Keep every repair behavior case in the existing Chromium extension suite and exercise the real login and first-run orchestrators. Restore quattro's intentional removal of the obsolete first-run test from 0fae8e6 instead of resurrecting assertions for retired setup behavior; the Copy URL wiring is covered by runtime assertions. Remove comments promising browser-launch retries that no longer exist. 🤖 Generated by GPT-6 High in Codex. Reviewed by Opus 5.5 High and muse-wonder via pi, thinking high. Co-Authored-By: GPT-6 High <noreply@openai.com> Co-Authored-By: Opus 5.5 High <noreply@anthropic.com>
|
Reviewed and pushed On a disposable ISO-built Omarchy worker, the stamped-profile login case failed on base, passed with this change, and failed again when the login call was reverted. Real Chromium 158 showed the shortcut change from “Not set” to CLI and all 45 focused assertions passed. The full worker suite reported 4,894 passes and two failures: the OEM logo check in GPT-6 High in Codex reviewed and tested this; Opus 5.5 High identified the legacy-backup prompting case, and Opus 5.5 High and muse-wonder via pi, thinking high, found the final code clean. Their agreement is not guaranteed to be independent. The automated readiness gate still holds this back on the repair approach and persistence concerns, so it carries |


Fresh installs stamp
1786643346.shcomplete before a Chromium profile exists, so a later-synced ghostcopy-urlshortcut never gets repaired. Editing Preferences while Chromium is running also does not persist.The repair lives in
omarchy-cmd-repair-chromium-copy-url, called from first-run and login retry. The original migration and a follow-up call it with--promptfor unstamped upgrades and already-stamped machines. Browser and webapp launchers remain unchanged.Repair waits for profiles to close, rewrites Preferences atomically, and preserves the protection metadata. A backup marker is removed only after the closed profile parses successfully and the ghost binding is absent; interrupted repairs retain their marker for a later retry. This prevents successful repairs from prompting again whenever the browser opens.
Validated with the repair command fixtures and Chromium extension integration shell tests. A synthetic profile reproduced repeated prompting before the fix and passed after it. No live Chromium session was tested on this macOS host.
Fixes #7983
A listening browser socket now keeps a profile protected even when its lock PID is unavailable. Missing or corrupt profiles retain recovery backups without blocking unrelated migrations. The repair probes the socket with a bounded connection attempt so an abandoned socket does not block it. Live-listener, abandoned-socket and unreadable-profile cases pass the fixtures. Profiles restored after first-run are repaired at the next login or an explicit repair command; per-launch hooks remain removed following the scope review.