[Bug]: Multi-profile Chrome import fails entirely instead of skipping failed profiles (failure_reason 7)
Affected component
ego lite browser app
What happened?
Affected component
ego lite browser app / ego-browser import — multi-profile browser data import
What happened?
When importing multiple Chrome profiles in one request (UI "All profiles (N)", or CLI with several --profile values), if any source profile fails, the entire batch fails with failure_reason: 7 / UI "Import failed. Try again". Ego does not skip the failing profile(s) and continue importing the rest.
Reproduced with 28 Chrome profiles: most profiles import successfully when done one-by-one, but a small subset always fails alone with failure_reason: 7. Including any of those failing profiles in a multi-profile request causes the whole import to abort with no partial success.
CLI confirmation (Chrome fully quit; no *.ego_data_import_stage leftovers):
# two known-good profiles → success
ego-browser import --browser chrome --profile Default "Profile 9" --no-default
→ {"failure_reason":0,"success":true,...}
# good + one bad profile → whole batch fails
ego-browser import --browser chrome --profile "Profile 27" "Profile 5" --no-default
→ {"failure_reason":7,"new_profile_dirs":[],"success":false}
# single bad profile → also 7
ego-browser import --browser chrome --profile "Profile 5" --no-default
→ {"failure_reason":7,"success":false}Local State also records ego.onboarding_imported_result: 7 after the failed onboarding attempt.
Related: #195 (onboarding profile dropdown not scrollable) pushes users toward "All profiles", which then hits this all-or-nothing failure. #144 is about stale staging after interruption — different failure mode (we had unlocked DBs and no staging leftovers when this reproduced).
Steps to reproduce
1. Quit Google Chrome completely (no Chrome processes; profile SQLite files unlocked).
2. Launch ego lite onboarding → Import from another browser → Chrome → All profiles (many profiles).
3. Click Import → observe "Import failed. Try again".
4. Confirm via CLI:
- ego-browser import list shows many Chrome profiles
- ego-browser import --browser chrome --profile <good> --no-default succeeds for most profiles
- ego-browser import --browser chrome --profile <goodA> <badB> --no-default returns failure_reason: 7 and imports nothing
5. Optionally note ego.onboarding_imported_result becomes 7 in Local State.Expected behavior
Batch import should skip (or report) failed source profiles and still import the successful ones, instead of aborting the entire batch with a generic failure / failure_reason: 7.
Ideal UX: per-profile status (imported / skipped / failed + reason), and a greppable log line for each failure.
Version
ego lite 0.4.5.8
Environment
macOS Darwin 25.5.0, Apple Silicon (M1 Max)
Logs or screenshots
Example CLI output:
{"browser":"chrome","failure_reason":7,"new_profile_dirs":[],"restarting":false,"success":false}
Local State snippet:
"ego": {
"onboarding_imported_browser_data": 1,
"onboarding_imported_result": 7
}
In this environment, single-profile import succeeded for most of 28 Chrome profiles; a small subset consistently returned failure_reason: 7 even alone. Any multi-profile request that includes one of those failing profiles fails the entire batch.Additional context
Workaround: import profiles individually via CLI, omitting the failing ones: ego-browser import --browser chrome --profile --no-default
Searched existing issues; no duplicate for "skip failed profiles" / all-or-nothing batch import. Closest related issues: #144, #195.
Before submitting
- I searched the existing issues and did not find a duplicate.
- I removed secrets and sensitive browsing data from this report.
Source: citrolabs/ego-lite