Repository navigation
v1.91.4.0 fix: Windows Opera cookie import wave (#2980, refs #2957) - #2987
Merged
Merged
Conversation
…actionable - strip the SHA-256(host_key) prefix Chromium adds to v10 values (DB meta v24+) on Windows - keep receipts and name `$B handoff` recovery for App-Bound rows in browsers without native extraction - explain missing browsers, missing profiles and ambiguous profile selection with next steps - add windowsNative/resolveBrowserInfo, the operagx alias and sorted failure reasons in CLI output - cover the Node server runtime with a real-DPAPI Windows test
…pera BROWSER.md additions
|
😎 This pull request was merged. |
This was referenced Sep 28, 2026
Contributor
E2E Evals: ✅ PASS8 automated passed / 8 final results | 0 failed, 0 manual accepted (unscored; no score-cache credit) | 8 executed, 0 reused | $.34 total cost | reconcile exit: 0 Profile: pr / pr; selected behaviors: 3, judges: 6. Deferred to scheduled/release coverage: 14 behaviors and 0 changed prompt files. Deferred checks did not run and receive no PR-pass credit.
Fail-closed reconciliationSliced lane: declared PR profile or broad fallback via scripts/test-paid-shards.ts (planner → 6 executors → fail-closed report). Reused scores retain their original provenance and expiry. |
PowerShell launched with a stripped environment took ~18-21s on the Windows runner (measured on a throwaway diagnostics run), past dpapiDecrypt's 10s deadline; with the full environment it returns in ~0.3s. Only APPDATA is redirected to the fixture's Opera root.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Windows Opera and Opera GX cookie import, brought to release quality as one fix wave for the cookie-import feature. It includes Matt Van Horn's #2980 commit (authorship preserved) plus the fixes an
/autoplanreview (CEO → DX → Eng, each with a native Claude reviewer and a GPT-6 Astra outside reviewer) turned up. Refs #2957.What changed
Opera support (from #2980).
cookie-import-browser opera/opera-gxon Windows read%APPDATA%\Opera Software\Opera StableorOpera GX Stable(Default/Profile N,Network/CookiesthenCookies), with a separate DPAPI key per browser. Other browsers stay on the Local root.operagxis accepted as an alias.Windows v10 decryption fix (all Chromium browsers). Chromium cookie DBs at meta version 24+ put SHA-256(host_key) in front of the encrypted value. The Windows AES-GCM path returned it as part of the cookie, so an import could report success while the site stayed signed out. The prefix is now dropped only when it matches the host digest (bare values from older DBs are unchanged). This also affects Chrome, Chromium, Edge and Brave v10 cookies.
App-Bound (v20) rows in browsers without native extraction. Opera no longer falls through to the native extractor and a generic
not_supportedthrow. The receipt keeps its counts and reasons and says what to do:$B handoff, sign in,$B resume. Partial imports warn that the session may not be restored. Browsers with native extraction (windowsNative: Chrome, Chromium, Brave, Edge) keep #2964's behavior; a parity test ties that flag tonativeBrowserPaths.Actionable errors.
Opera GX (opera-gx)).Opera profile 'Profile 8' not found. Available: Default.).--profilenow explains why it stopped: several matching profiles (with directory names), none with cookies for the domain, unreadable profiles, or several profiles under--all.Failure reasons: key=count(sorted).APPDATAfalls back to~/AppData/Roaming.Docs. Opera added to the browser lists in BROWSER.md, README, docs/skills.md, ARCHITECTURE.md and the command reference (regenerated). BROWSER.md gains a Windows Opera walkthrough and tables for receipt failure reasons and import error codes. A free test keeps those lists in step with the registry. TODOS.md gets the deferred follow-ups (macOS/Linux Opera, channels, side profiles, legacy root layouts, a user path option, mixed-batch key failures, the CBC prefix check).
Test fixtures and PR selection. The historical cookie-workflow manual-approval fixture now reverses the new BROWSER.md text so it still reconstructs the exact approved prompt.
gstack/llms.txt(generated fromcommands.ts) is declared as acommand reference tableinput intouchfiles-data.ts; before, it counted as an unknown dependency and restored the full 42-shard gate for a one-line generated change.Verification
Local checks on
1b460978(the final head209b5c5dchanges only the Windows test's child environment), Bun 1.4.0 (CI pin):bun-polyfill.cjs, real PowerShellProtectedData), plus a wrong-key negative control. It runs and passes inwindows-free-tests(it is skipped with no credit on Linux/macOS). Its first CI run timed out; a throwaway diagnostics run showed PowerShell takes ~18-21s to start when the child environment is stripped versus ~0.3s with the runner's environment, and DPAPI round-tripped correctly in every variant, so the test now keeps the runner's environment and only redirectsAPPDATA.bun run eval:bg:pr): 3/3 selected shards passed (re-run on the final head) — judgessetup-browser-cookies/SKILL.md workflow,command reference table,browse/SKILL.md reference,snapshot flags reference,regression vs baseline; E2Ebrowse-basic,browse-snapshot,diagram-triplet. 14 behaviors remain scheduled/release coverage, not PR passes.bun run test, 4 strict shards): 27,310 pass / 0 fail. An earlier run on this head had one timing failure interminal-agent-lifecycle.test.ts(untouched here) while paid evals ran concurrently; it passed 5/5 alone and the unloaded rerun passed. Local runs used plain git because this machine's commit shim forces a fixed author, which breaksgstack-retro-metricsfixtures (they pass in CI).bun run buildpassed; gitleaks: no leaks in the wave commits; credential pre-push guard enabled.209b5c5d: all 45 non-skipped checks pass.windows-free-testsneeded one rerun:plan-review-board-feedback.test.ts(a design-daemon deadline test untouched here) hit a bun spawn timeout on the runner, then passed.Not verified: no real Windows Opera or Opera GX session has been imported yet. #2957 stays open until the reporter (or a maintainer) confirms one.
Windows verification recipe (for #2957)
Rebuilding restarts the gstack daemon and drops open
$Btabs and imported cookies, so finish browser work first. In Git Bash, in your gstack checkout:Please report the Opera version and paste the sanitized result line, for example
Imported 12 cookies from opera (profile: Default); 0 failed to decrypt. Cookie copy complete. Storage reset: not_requested. Authentication: not_requested., and whether the intended account appeared. Never paste cookie values. Afterwards,git checkout main && ./setupreturns to the normal release.Supersedes
#2980 (included here with credit), #1114 (#2964 reports aggregate typed failure reasons; per-row debug logging is not planned) and #392 (superseded by #2964's DPAPI support and no-TCP-fallback policy). They will be closed after this merges.