GeezerVison is showing github.com — fix(desktop): read Chromium cookies stored as text by deanhtid · Pull Request #19377 · pingdotgg/t3code
Conversation
deanhtid
commented
Oct 14, 2026
•
edited by juliusmarminge
Loading
Uh oh!
There was an error while loading. Please reload this page.
One SQLite TEXT value in Chromium’s BLOB-affinity encrypted_value column could abort the entire cookie import during schema decoding. Cast that column to BLOB in SQLite in both query paths, before Node can decode encrypted bytes as UTF-8. No migration or write to the source browser database is involved.
Thanks @deanhtid for the diagnosis and fix in #19377. Maintainer takeover preserves the contributor history, merges current main, and consolidates overlapping database tests. This is a focused repair to the existing import path; authentication-sensitive data still requires human review.
Verification on headless Linux:
ChromiumCookies.test.ts: 16 → 15 tests. The two parameterized database cases cover schema 14 and schema 24, mixed plaintext TEXT, encrypted TEXT, encrypted BLOB, and genuinely empty values. Successful decryption verifies payload bytes and modern domain binding.
- Before: restoring main’s production reader yields 13 passing tests and 2
SchemaError: Expected Uint8Array failures. After: all 15 pass.
- Desktop typecheck, targeted lint, formatting, and whitespace checks pass. The five focused cookie/key suites pass (68 tests), and the importer integration suite passes (5 tests). Tests bypass Electron’s executable-path lookup; no Electron process launches.
Real Chromium/Electron import was not verified: the VM’s Chromium binary cannot start because libcups.so.2, libcairo.so.2, and libpango-1.0.so.0 are unavailable. Proof is at the SQLite/decryption test level using synthetic data; no real cookies or credentials were accessed. Windows, macOS, iOS, Android, and Electron desktop were not exercised. Human approval and a real-browser import remain the final validation limits.
Implementation: GPT-6.1-Sol; tests: GPT-6-Astra; independent reviews: Claude Opus 5.5 and GPT-6-Sol. Orchestrated in T3 Code through the Codex harness.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Not approved
Macroscope's review found this PR not approvable — The production change alters Chromium cookie import so encrypted values stored as SQLite TEXT can be converted to bytes and decrypted, affecting authentication-sensitive browser data. Although narrowly scoped and covered by regression tests, this sensitive-data path warrants human review.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Oct 14, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Advanced
- Run ID:
cd11fd2b-a478-4203-bf12-ca71df723248
📥 Commits
-
Reviewing files that changed from the base of the PR and between 4a57868 and 2221901.
📒 Files selected for processing: 2
-
apps/desktop/src/preview/BrowserImport/ChromiumCookies.test.ts
apps/desktop/src/preview/BrowserImport/ChromiumCookies.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
📝 Walkthrough
-
The Chromium cookie database reader casts encrypted_value to BLOB in both schema-version query branches. Tests cover schema versions 14 and 24, including plaintext, encrypted TEXT and BLOB values, and empty values.
Changes: Chromium cookie reading
| Layer / File(s) |
Summary |
Encrypted value decoding apps/desktop/src/preview/BrowserImport/ChromiumCookies.ts, apps/desktop/src/preview/BrowserImport/ChromiumCookies.test.ts |
Both schema-version query branches cast encrypted_value to BLOB. Tests cover schema versions 14 and 24 and verify plaintext, encrypted TEXT and BLOB values, empty values, and zero undecryptable records. |
Priority: ⬇️ Low
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix
Suggested reviewers: juliusmarminge
Merge Risk: ⚪ Minimal · up to 22219
-
No actionable issue is identified; the change appears ready for normal merge checks.
Architecture Summary
Architecture risk: 🔵 Low · up to 22219
The change affects 1 system.
Changed systems: apps/desktop
Architecture concerns
No architecture-level concerns identified.
Review details
-
Systems and components
- observed — apps/desktop (service) was modified; 2 changed files map to changed impact.
Before / after behavior
- observed — Modified behavior in apps/desktop/src/preview/BrowserImport/ChromiumCookies.test.ts: Replaced the schema-23-only fixture with tests for schema versions 14 and 24, conditionally adding
top_frame_site_key for versions 15 and newer and applying SHA-256 host binding for version 24. The fixture now verifies plaintext cookies, encrypted values stored as both TEXT and BLOB, and genuinely empty values, expecting all four cookies to import successfully with no undecryptable records.
- observed — Modified behavior in apps/desktop/src/preview/BrowserImport/ChromiumCookies.ts: Both schema-version query branches now cast
encrypted_value to BLOB before returning it from SQLite; the previous uncast column selection was removed.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title clearly identifies the desktop Chromium cookie import fix and matches the primary changes in the pull request. |
| Description check |
 |
The description explains the problem, implementation, scope, verification results, and validation limits. It does not use the template headings and does not include an explicit maintainer approval com… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Description check
-
Explanation
The description explains the problem, implementation, scope, verification results, and validation limits. It does not use the template headings and does not include an explicit maintainer approval comment, but it provides the required information sufficiently for a focused fix.
✨ Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Taking over this one as maintainer for desktop-app-03. I will preserve the contributor commits, merge current main, verify byte-preserving cookie reads with minimal regression coverage, and obtain independent reviews. No merge is planned.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
Reverting this in #22222 together with the other desktop fixes the takeover campaign merged yesterday. Nothing was wrong with the review of this change; it was merged on CI and code audits only, and after #20907 from the same batch broke existing installs the maintainer decided that desktop changes do not ship without being run on a real desktop build. To bring it back: open a fresh PR from the original commit, run it on a real build that already has user state on each platform it touches, and put the before/after proof in the body.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Labels
size:XS
0-9 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|