GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat(desktop): import browser cookies into a profile by juliusmarminge · Pull Request #7255 · pingdotgg/t3code Conversation
|
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Reviewed the new BrowserImport service, its Chromium cookie helper, and the IPC/layer wiring against the Effect service conventions.
Service shape, module layout (Context.Service tag + inline interface, make, layer), namespace imports, and layer composition in main.ts all look correct. The findings below are about the error model: the new failure type is unstructured (reason: Schema.String) and every construction discards the underlying cause, including one that erases a structured BrowserSession error.
Posted via Macroscope — Effect Service Conventions
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
One finding in the changed browser-profiles UI (apps/web/src/components/settings/IntegrationsSettings.tsx).
The menu/primitive usage itself looks consistent with the shared system: Menu/MenuPopup/MenuItem/MenuSub from components/ui/menu, MenuTrigger render={<Button …/>} matching the existing pattern in PreviewMoreMenu/ProjectScriptsControl, existing size="icon-sm" / variant="ghost-muted" Button variants, min-w-* on popups honouring MenuPopup's width-defaulting contract, and the bordered list container matching the convention already used in ConnectionsSettings. aria-labels are preserved on both the rename input and the new row trigger.
The issue is a state-display regression introduced by removing the default-profile Select while filtering Incognito out of the new list: a stored default of incognito (which the removed Select allowed a user to pick) now leaves the section with no "Default" badge on any row.
Posted via Macroscope — UI Consistency
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
757f025 to
5853095
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This PR introduces a substantial desktop capability for reading encrypted browser cookie stores and importing session cookies through new IPC, native keyring, persistence, and packaging paths. The sensitive data flow, production artifact changes, and added static-analysis suppressions warrant focused human review. Not approved because:
No code changes detected at Review your spending limits in Billing settings, or comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
5853095 to
23b22b9
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Reviewed the new BrowserImport service, its Sources/ChromiumCookies helpers, the IPC method, and the layer wiring against the Effect service conventions. The service module follows the canonical shape (errors → Context.Service with inline interface → make → layer), dependencies are acquired from the environment, and the failure translations now keep a real cause. One remaining gap on error context.
Posted via Macroscope — Effect Service Conventions
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The two issues flagged on earlier commits are addressed: loadSources now clears sources before each refresh, and resolvedDefaultId resolves against the rendered rows.
One consistency gap remains: with BrowserDefaultProfileSetting removed and Incognito no longer rendered as a row, the section can badge Default on a profile that is not the effective default (see inline comment).
Minor (not blocking): lines 507–529 now carry three consecutive doc comments for a single component — the "Create, rename, and remove browser profiles" and "Per-profile cookie import" blocks are leftovers from the removed/renamed pieces and could be folded into one.
Posted via Macroscope — UI Consistency
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Two findings in the reworked browser-profiles section. Both are about the settings UI now disagreeing with the runtime behaviour it configures, rather than styling.
Posted via Macroscope — UI Consistency
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
57fccc1 to
ea2efcb
Compare
There was an error while loading. Please reload this page.
3264ff7 to
76fc9d2
Compare
Two review findings: the import menu only hid uninstalled sources, so a platform that can never import from a browser (a macOS-only fork on Linux) still listed it and clicking led to a dead-end blocked screen — those are now left out too. And the "Default profile" search entry lost the word "browser" when its settings row went away, which broke the "default browser profile" query and read ambiguously beside its siblings; the search-only title says "Default browser profile" again. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…key retry Three review findings on the import flow: - Profile discovery accepted any entry named `Cookies`, so a directory listed as an importable profile and then failed the SQLite open; the fallback scan and the installed check now require a regular file. - A "new profile" target chosen before the profile cap was reached could still be imported once it was, creating a profile past the limit; the Import button now disables in that case. - `keychainItemMissing` told the user to sign in and retry but offered no retry — it is now retryable, since signing in is exactly what creates the key. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The cap guard on the Import button had no feedback: with the "New profile" tile unrendered, nothing in Into looked selected and Import was simply off. The cap case now flows through the same message slot as a vanished existing target, and the disabled condition reuses that one derivation. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
At the profile cap the Blank profile item went grey with no explanation while the import rows stayed live, so the menu read as broken rather than full; a noninteractive item now names the cap, matching the menu's other explained states. Also deletes entryExists, which nothing reached once discovery moved to databaseFileExists and the lock probe inlined readLink. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…ses anything The nodeBuiltinImport suppression was justified by the signal-0 liveness probe, but that uses the process global, which the diagnostic never inspects — and the module imports no node builtin at all since the hostname moved to HostProcessHostname. Left in place it would silently permit a future node:fs import here. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…abort an import
Two review findings. Chromium 96 moved the cookie database to
`Network/Cookies`, but the reader only ever looked at `{profile}/Cookies` —
so an install carrying a leftover root jar imported a stale or empty
database while the real sessions lived under `Network/`, and a fresh install
with only the `Network/` jar read as not installed and was hidden. Discovery,
counts, the installed check and the importer now resolve the first candidate
that is a regular file, most-current first.
And a second Import click before React left the configure screen started a
second run; the parent refused it, and the wizard applied that refusal as a
read failure — dropping out of the importing step mid-write and showing a
false error over a successful import. A synchronous in-flight ref now makes
the second click a no-op.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…database When the cookies imported but the new profile's settings write failed, the wizard reported "The browser's cookie database could not be read" — the one thing that had just succeeded. The failure now carries its own reason, `profileNotSaved`, with copy that says the cookies came over and the profile couldn't be kept (its partition is cleared again so nothing is stranded), and it offers a retry. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
cookies.set resolves once the cookie is in memory; Chromium persists the store on its own schedule, so a crash right after the wizard said Done could drop the import. Flush once after the writes; a failed flush is logged, not surfaced, since the cookies are in the session regardless.
The cap was only on the rendered controls. createProfile now refuses past BROWSER_PROFILE_MAX_COUNT against the live settings, and the post-import updater does too — the wizard blocks a new target at the cap, but the count can change while the import runs. That case reports profileLimitReached, since a retry cannot lower the count.
The rebase over #9281 resolved in favour of this branch's rewrite of the file and lost its size="sm" select triggers and icon-xs row button.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.