GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(desktop): read Chromium cookies stored as text by deanhtid · Pull Request #19377 · pingdotgg/t3code

Conversation

@deanhtid

@deanhtid deanhtid commented Oct 14, 2026 •
edited by juliusmarminge
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

All reactions
@deanhtid
fix(desktop): read Chromium cookies stored as text
4a57868
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Oct 14, 2026
@macroscopeapp

macroscopeapp Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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: Passed 4
Check name Status Explanation
Title check Passed The title clearly identifies the desktop Chromium cookie import fix and matches the primary changes in the pull request.
Description check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge self-assigned this Oct 19, 2026
@juliusmarminge

juliusmarminge commented Oct 19, 2026

Copy link
Copy Markdown
Member

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

juliusmarminge added 3 commits October 19, 2026 09:51
@juliusmarminge
Merge remote-tracking branch 'origin/main' into fix/chromium-cookie-t…
ec19ad8
…ext-storage
@juliusmarminge
test(desktop): consolidate mixed cookie storage coverage
bf9203f
@juliusmarminge
Merge remote-tracking branch 'origin/main' into l48-19377
2221901
@juliusmarminge
juliusmarminge merged commit 62144bf into pingdotgg:main Oct 20, 2026
25 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge mentioned this pull request Oct 20, 2026
revert: fourteen unverified desktop fixes from the takeover campaign #22222
Merged
@juliusmarminge

juliusmarminge commented Oct 20, 2026

Copy link
Copy Markdown
Member

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Pipyakas pushed a commit to Pipyakas/t3code that referenced this pull request Oct 21, 2026
@deanhtid @juliusmarminge @Pipyakas
fix(desktop): read Chromium cookies stored as text (pingdotgg#19377)
c397201
Co-authored-by: Dean Whittaker <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
(cherry picked from commit 62144bf)
@nickrroberts nickrroberts mentioned this pull request Oct 21, 2026
fix(browser): stop host-wide preview failures and recover CDP sessions Control-Plane-Apps/control-plane#70
Merged
@nedlane nedlane mentioned this pull request Nov 3, 2026
[Bug]: Chromium cookie import aborts on TEXT-backed encrypted_value rows #30465
Open
2 tasks done
@olafura olafura mentioned this pull request Nov 7, 2026
test(features): ledger upstream T3 Code through 30d0138540 hal-c2/hal-c2#1125
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@juliusmarminge juliusmarminge

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

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.

2 participants

@deanhtid @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.