The best way to control Claude Code, Codex and more from any computer or phone
fix(desktop): Vivaldi cookie import finds its Linux keyring key (#27148)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: maria-rcks <maria@kuuro.net>
Ryan McDonough committed
Oct 30, 2026 at 14:24 UTC
7e839022055be49f5a49e7f539329e61e1ba9cb9
2 files changed
+21
-7
apps/desktop/src/preview/BrowserImport/ChromiumKeys.test.ts
+19
-6
@@ -17,6 +17,7 @@ import {
17
unwrapWindowsDpapiKey,
18
} from "./ChromiumKeys.ts";
19
import { LinuxBrowserSecretPath } from "./LinuxBrowserSecret.ts";
20
+import { BROWSER_IMPORT_SOURCES } from "./Sources.ts";
21
22
const { getPassword } = vi.hoisted(() => ({ getPassword: vi.fn<() => string | null>() }));
23
@@ -146,12 +147,24 @@ describe("Linux Chromium secrets", () => {
147
),
148
);
149
149
- it.effect("preserves trailing whitespace in the stored secret", () =>
150
- Effect.gen(function* () {
151
- const secret = yield* readLinuxSecret("chrome");
152
- expect(secret).toBe("linux-secret \t\n");
153
- }).pipe(Effect.provide(layerHelper({ stdout: "linux-secret \t\n" }))),
154
- );
150
+ it.effect("derives Vivaldi's Linux key while preserving whitespace in the stored secret", () => {
151
+ let captured: CapturedCommand | undefined;
152
+ return Effect.gen(function* () {
153
+ const source = BROWSER_IMPORT_SOURCES.find((source) => source.id === "vivaldi")!;
154
+ const keys = yield* resolveChromiumKeys({
155
+ platform: "linux",
156
+ keychainService: source.keychainService,
157
+ keychainAccount: source.keychainAccount,
158
+ linuxSecretApplication: source.linuxSecretApplication,
159
+ });
160
+ expect(captured?.args).toEqual(["chrome"]);
161
+ expect(keys.cbcV11?.toString("hex")).toBe("95aa769d6a5beca14d5d90ae655db112");
162
+ }).pipe(
163
+ Effect.provide(
164
+ layerHelper({ stdout: "linux-secret \t\n", capture: (value) => (captured = value) }),
165
+ ),
166
+ );
167
+ });
168
169
it.effect("drains stdout and stderr concurrently", () =>
170
Effect.gen(function* () {
apps/desktop/src/preview/BrowserImport/Sources.ts
+2
-1
@@ -109,7 +109,8 @@ export const BROWSER_IMPORT_SOURCES: ReadonlyArray<BrowserImportSourceDefinition
109
keychainAccount: "Vivaldi",
110
macSegments: ["Vivaldi"],
111
linuxSegments: ["vivaldi"],
112
- linuxSecretApplication: "vivaldi",
112
+ // Vivaldi stores its Linux libsecret key under Chrome's application name.
113
+ linuxSecretApplication: "chrome",
114
}),
115
chromiumSource({
116
id: "opera",