Windows: Chrome browsing history import fails with “Make sure Chrome is fully closed” despite unlocked, readable history databases
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.901.6511.0, verified from the installed Windows package (Get-AppxPackage OpenAI.Codex), rather than the About dialog.
What subscription do you have?
ChatGPT Pro.
What platform is your computer?
Microsoft Windows 11 Pro, 10.0.26100, 64-bit.
Chrome version: 152.0.7977.83 (from Chrome's BLBeacon registry value).
What issue are you seeing?
Importing Chrome data into the Codex built-in browser reports Import complete, but browsing history fails. The result dialog shows:
- Saved passwords: green success check.
- Cookies: green success check.
- Browsing history: red failure icon, with “Make sure Chrome is fully closed”.
The history failure persists even when no Chrome processes are running, the source history databases are readable and unlocked, and Codex has been fully closed and reopened. The recovery message gives no actionable explanation for this case.
What steps can reproduce the bug?
- On the affected Windows installation, open Codex Settings and use the browser data import flow to import Chrome passwords, cookies, and browsing history.
- Observe the result above: passwords and cookies succeed, but browsing history fails.
- Fully close Chrome. Verify that no Chrome/Chromium processes remain, including background processes.
- Click Retry in the import result dialog. Browsing history still fails with the same message.
- Fully close and reopen Codex while leaving Chrome closed, then retry the import. The same failure remains.
This reproduces repeatedly on this installation. Reproduction on a clean installation or another machine has not been tested. The exact Chrome profile selected in the dialog was not recorded; the standard Chrome user-data directory contains Default, Guest Profile, Profile 1, and Profile 2.
What is the expected behavior?
Chrome browsing history should import successfully when the source is accessible. If import fails for another reason, the UI should report the actual failure or provide a diagnostic error code instead of only instructing the user to close Chrome.
Additional information
Read-only diagnostics performed on the affected machine:
Get-Process -Name chromeand aWin32_Processcheck for Chrome/Chromium found no running processes.- All four source
Historyfiles under Chrome's standard user-data directory could be opened for read access withFileShare.None, then immediately closed. No sharing violation was returned at the time of the checks. - Each source database could be opened using Python SQLite with
mode=ro. PRAGMA quick_checkreturnedokfor all four databases.- Queries against both
urlsandvisitssucceeded. Default, Profile 1, and Profile 2 contained history; Guest Profile was empty. - Restarting Codex did not resolve the failure (confirmed by the user).
- Inspection of the installed app bundle found the message under
settings.browserUse.profileImport.historyRetryGuidance, described as recovery guidance when Chrome browsing history could not be imported completely. The message itself therefore does not establish that a Chrome process is still running. - Recent Codex desktop logs inspected during troubleshooting did not expose a history-specific failure reason. An earlier cookie-copy failure was present, but it does not explain this history-only result and is not being treated as the cause.
These checks rule out an obvious persistent Chrome process or source sharing lock at the time of inspection; they do not establish the underlying cause or rule out importer-context permissions, compatibility, destination database issues, or a transient lock during import.
No browser databases, cookies, passwords, visited URLs, or unredacted application logs are attached. Browser data was not modified during diagnosis. The dialog is transcribed above instead of attaching a screenshot.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the browser data import flow and the settings.browserUse.profileImport.historyRetryGuidance entry point. Reproduce the Windows import with the available Chrome History databases, then trace why the history-only failure selects the generic closed-Chrome message. Done means the underlying failure is surfaced accurately or diagnostic guidance is provided, with coverage for this case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, sqlite
- Domain
- databases, desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100