Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
8363ec9
refactor(accounts): drop automatic account switching
ArtyomVancyan Nov 7, 2026
1e0f421
feat(api-profiles): optional key for localhost, required default model
ArtyomVancyan Nov 7, 2026
f7e1973
feat(accounts): delete Claude accounts, one "In use" label
ArtyomVancyan Nov 7, 2026
63183fb
fix(api-profiles): import the API key helper by relative path
ArtyomVancyan Nov 7, 2026
8c16dbb
fix(accounts): ignore the OAuth token inherited from a Workbench term…
ArtyomVancyan Nov 7, 2026
75895f9
fix(accounts): delete accounts from their row, on hover
ArtyomVancyan Nov 7, 2026
739c6b1
fix(kanban): fit the columns on the board
ArtyomVancyan Nov 7, 2026
b4831bc
chore(memory): main-process code imports shared runtime code by relat…
ArtyomVancyan Nov 7, 2026
e99d5a5
feat(chat): Clawd button gives a chat what an agent window has
ArtyomVancyan Nov 7, 2026
d8610e0
feat(chat): open a chat's Claude Code session in an agent window
ArtyomVancyan Nov 7, 2026
b0b4280
feat(chat): slash commands and skills menu in the composer
ArtyomVancyan Nov 7, 2026
c7b684b
fix(chat): review fixes for the slash commands menu
ArtyomVancyan Nov 7, 2026
99c834f
feat(chat): color slash commands and skills in the composer
ArtyomVancyan Nov 7, 2026
f61455e
test(browser-profiles): wait longer for the fake browser processes
ArtyomVancyan Nov 7, 2026
5b93df2
test(browser-profiles): run the fake browsers as sleep on Rust coreutils
ArtyomVancyan Nov 7, 2026
4d8ff28
test(browser-profiles): fake the browser processes with Node, not sleep
ArtyomVancyan Nov 7, 2026
270453d
feat(browser-drawer): stop a page loading from the reload button
ArtyomVancyan Nov 8, 2026
a10ce72
test(browser-profiles): fake the browser processes with bash
ArtyomVancyan Nov 8, 2026
deb5c52
fix(terminal): tell Claude Code working from idle by its footer
ArtyomVancyan Nov 8, 2026
5c16883
fix(live-agent): show a session in the window Workbench started it in
ArtyomVancyan Nov 8, 2026
4d441aa
feat(messaging): chats and agent windows message each other
ArtyomVancyan Nov 8, 2026
6409e51
fix(messaging): review fixes for chats and agent windows messaging ea…
ArtyomVancyan Nov 8, 2026
8c110c6
feat(chat): open the Claude page as it was left
ArtyomVancyan Nov 8, 2026
35d04e4
chore(memory): note that npm run lint edits unrelated files
ArtyomVancyan Nov 8, 2026
b921ebf
fix(messaging): second review fixes for chats and agent windows messa…
ArtyomVancyan Nov 8, 2026
6bb350a
fix(chat): keep the Claude page's remembered state right
ArtyomVancyan Nov 8, 2026
d995cc9
test(task-messaging): retry removing the conflict check's temp folder
ArtyomVancyan Nov 8, 2026
f8f3cb5
feat(browser-drawer): show the browser profile's bookmarks bar
ArtyomVancyan Nov 11, 2026
c76cc29
feat(settings): add a Browser page for the chat browsers
ArtyomVancyan Nov 11, 2026
50cdef2
fix(accounts): let a window on another account delete the account in use
ArtyomVancyan Nov 11, 2026
c1c2ca6
fix(chat): keep the messages within the chat's width
ArtyomVancyan Nov 11, 2026
6b3659e
fix(browser-drawer): copy the page's selection to the system clipboard
ArtyomVancyan Nov 11, 2026
c19d9ac
feat(browser-drawer): open links in new tabs and show the tabs the us…
ArtyomVancyan Nov 11, 2026
9eb33e6
fix(browser-drawer): start a viewed page's stream again when it stays…
ArtyomVancyan Nov 11, 2026
7a63026
fix(browser-profiles): keep the saved copies of profiles chats choose
ArtyomVancyan Nov 11, 2026
0568f88
feat(chat): pick the API profile's custom models in the model menu
ArtyomVancyan Nov 11, 2026
f7335f3
Revert "feat(chat): pick the API profile's custom models in the model…
ArtyomVancyan Nov 11, 2026
4f3d0b4
fix(chat): reach the task tools and chat browser through the bridge w…
ArtyomVancyan Nov 11, 2026
c65a467
fix(chat): turn the task tools off once the bridge failed with WSL mi…
ArtyomVancyan Nov 13, 2026
e1e3941
fix(browser-drawer): show a tab switched to at once
ArtyomVancyan Nov 13, 2026
3840ab7
feat(browser-drawer): run and open the browser profile's extensions
ArtyomVancyan Nov 13, 2026
e5b94e2
fix(usage): show an Enterprise account's monthly spend limit
ArtyomVancyan Nov 13, 2026
2b7dd61
feat(simulation): preview an Enterprise account's usage popover
ArtyomVancyan Nov 13, 2026
65c219d
fix(usage): tell Enterprise accounts apart reliably and keep their sp…
ArtyomVancyan Nov 13, 2026
d39cfe8
feat(platform): run code natively inside a WSL session
ArtyomVancyan Nov 13, 2026
abbd5c7
feat(browser): run chat browsers on Windows while the shell is WSL
ArtyomVancyan Nov 13, 2026
bbe6e4a
fix(settings): shorten the Browser runtime description to one line
ArtyomVancyan Nov 13, 2026
9b6534c
feat(browser-drawer): the browser's own shortcuts act on the drawer's…
ArtyomVancyan Nov 13, 2026
5242e6c
fix(live-agent): show a chat's session in the window that resumed it
ArtyomVancyan Nov 13, 2026
b1c368a
feat(chat): share a chat's Claude Code session with its agent window
ArtyomVancyan Nov 13, 2026
f30d1de
fix(browser-drawer): read shortcut letters as the layout types them
ArtyomVancyan Nov 13, 2026
a752781
fix(chat): take turns with the agent window inside the chat's reply
ArtyomVancyan Nov 13, 2026
8fd9bc6
feat(agents): flash the agent window a chat opens
ArtyomVancyan Nov 13, 2026
d37aa8c
fix(agents): redraw Claude Code in windows shown again after the Proj…
ArtyomVancyan Nov 13, 2026
aaac8b3
feat(projects): list the latest opened projects first
ArtyomVancyan Nov 13, 2026
84105a5
feat(app): ask whether to keep running in the background when a windo…
ArtyomVancyan Nov 13, 2026
2241786
feat(chat): keep the chat as wide as its composer needs beside the br…
ArtyomVancyan Nov 13, 2026
de80c86
feat(browser): keep each chat's tabs and ask before closing its browser
ArtyomVancyan Nov 13, 2026
d388809
fix(app): ask about closing a window only while other project windows…
ArtyomVancyan Nov 13, 2026
4fa310f
feat(browser): an extensions icon of its own, and pages' own cursors …
ArtyomVancyan Nov 13, 2026
01d11a8
fix(browser-profiles): Chromium copies keep the profile's extensions …
ArtyomVancyan Nov 13, 2026
b306b4b
fix(browser): extension popups open with their content, sized to it, …
ArtyomVancyan Nov 13, 2026
d5b4888
fix(browser): a Chromium page shows unscaled after another tab was in…
ArtyomVancyan Nov 13, 2026
556e501
feat(browser): chat browsers always run on Windows, set up from the d…
ArtyomVancyan Nov 13, 2026
2885596
feat(agents): no expand button while only one window is open
ArtyomVancyan Nov 13, 2026
186b7c2
fix(usage): stored usage keeps its resets and Fable limit, and fetch …
ArtyomVancyan Nov 13, 2026
e4ad55d
chore: remember to prefer browser-native drawer behavior, and ignore …
ArtyomVancyan Nov 13, 2026
aabce56
fix(chat): the chat's Playwright can't open the browser's own pages
ArtyomVancyan Nov 14, 2026
f59fe54
fix(browser): popups lay out at their width, and the bridge's lookups…
ArtyomVancyan Nov 14, 2026
ed1a564
fix(browser): the drawer's setup checks look where chat browsers run
ArtyomVancyan Nov 14, 2026
c68ec9e
fix(browser): Firefox extension popups show and take input on newer F…
ArtyomVancyan Nov 14, 2026
134dabe
feat(browser): loaders for opening popups and loading tabs, and no em…
ArtyomVancyan Nov 14, 2026
8d4ccce
fix(browser): Back and Forward follow the tab's history
ArtyomVancyan Nov 14, 2026
6a1c751
feat(app): each project's window opens on the page it showed last
ArtyomVancyan Nov 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ out/
build/
.vite/
*.tsbuildinfo
.playwright-mcp/

# Compiled TypeScript (sources are .ts)
src/**/*.js
Expand Down
3 changes: 3 additions & 0 deletions .workbench/compeng/MEMORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
- [Commit changes in correlated groups](commit-in-correlated-groups.md) — Split a batch of changes into logically correlated groups and commit each group separately.
- [Keep answers and summaries concise](concise-summaries.md) — Give short, highlight-focused answers and summaries instead of long documents.
- [Act, do not offer menus](act-dont-offer-menus.md) — When told to remove or change something, carry it out instead of presenting options.
- [Main process: no @shared alias](main-process-no-shared-alias.md) — main-process runtime imports from src/shared must be relative; @shared breaks the Vite build
- [Lint edits unrelated files](lint-fix-edits-files.md) — npm run lint (knip --fix) strips exports anywhere; revert files outside the change
- [Prefer browser-native behavior](prefer-browser-native.md) — Browser drawer features should act like the real browser; native mechanisms over custom replicas
15 changes: 15 additions & 0 deletions .workbench/compeng/lint-fix-edits-files.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: lint-fix-edits-files
description: "npm run lint runs knip --fix, which edits unrelated files; revert what it touched outside the change"
metadata:
node_type: memory
type: feedback
originSessionId: 6ce9fe7e-0f7f-4a94-9dd8-9108c58f35e0
modified: 2026-11-08T10:58:27.844Z
---

`npm run lint` runs `knip --fix --fix-type exports,types`, which strips `export` from unused exports in any file, even ones the current change never touched (it once broke `src/renderer/components/usage/clawd/sky.ts`, leaving `daylight` unused and failing the type check).

**Why:** the user had to revert such an edit and asked why it was made; it looked like an unexplained change.

**How to apply:** after running `npm run lint`, check `git status` and revert files the current work didn't touch (or run `npx knip --production` to check without fixing).
15 changes: 15 additions & 0 deletions .workbench/compeng/main-process-no-shared-alias.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: main-process-no-shared-alias
description: Main-process code must import runtime values from src/shared by relative path; the @shared alias only works there for type imports
metadata:
node_type: memory
type: project
originSessionId: 6ce9fe7e-0f7f-4a94-9dd8-9108c58f35e0
modified: 2026-11-07T19:11:53.780Z
---

In `src/main`, import runtime values (functions, constants) from `src/shared` with a relative path (`../../shared/...`), never `@shared/...`. The main-process Vite build doesn't resolve the `@shared` alias, so `npm run dev` / `npm run build` fail with "Rollup failed to resolve import". `tsc` and Vitest still pass, so tests don't catch it. `import type` from `@shared` works because it is erased.

**Why:** `npm run dev` broke on `@shared/utils/api-profile-key` imported by `profile-service.ts` (2026-11-07) after every test had passed.

**How to apply:** use relative imports for shared runtime code in main-process files, and run `npx electron-vite build` after adding such imports.
12 changes: 12 additions & 0 deletions .workbench/compeng/prefer-browser-native.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: prefer-browser-native
description: Browser drawer features should behave like the real browser; prefer native browser mechanisms over custom replicas
metadata:
type: feedback
---

For the browser drawer (embedded chat browsers), prefer browser-native behavior over custom-built replicas: use what the browser or Playwright already does, and only fill gaps where headless or the protocol leaves no native way. When a custom stand-in is unavoidable, make it look and act like the browser's own (e.g. the extension popup shows only the extension's page, no extra borders or backgrounds, and it closes the way the browser's does).

**Why:** The user asked whether Playwright could open the native extension popover "so we don't have to do custom things to make it work", and asked for the custom popover to show only one layer, the extension page.

**How to apply:** Before building UI or logic that imitates a browser feature in the drawer, check for a native route (CDP, BiDi, Playwright API); explain plainly when none exists, then match native look and behavior. Related: [[keep-changes-local]]
263 changes: 222 additions & 41 deletions CLAUDE.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "workbench",
"version": "1.5.65",
"version": "1.6.74",
"author": {
"name": "Artyom Vancyan",
"email": "44609997+artyomvancyan@users.noreply.github.com"
Expand Down
2 changes: 0 additions & 2 deletions src/__tests__/integration/claude-profile-ipc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ const mockProfileManager = {
setActiveProfile: vi.fn(() => true),
deleteProfile: vi.fn(() => true),
renameProfile: vi.fn(() => true),
getAutoSwitchSettings: vi.fn(),
updateAutoSwitchSettings: vi.fn(() => true),
isInitialized: vi.fn(() => true),
findAbandonedProfileByName: vi.fn((_name: string): ClaudeProfile | undefined => undefined),
findProfileByName: vi.fn((_name: string): ClaudeProfile | undefined => undefined)
Expand Down
48 changes: 28 additions & 20 deletions src/main/__tests__/best-profile-env.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Automatic account switching never moves runs (or the active account) to an account without
* credentials, and moves away from one.
* Runs stay on the account in use, also when it is rate limited; only an account without
* credentials (which can't run at all) is replaced by a signed-in one.
*/
import { describe, it, expect, vi, beforeEach } from 'vitest';
import type { ClaudeProfile } from '../../shared/types';
Expand All @@ -10,69 +10,77 @@ type Profile = Pick<ClaudeProfile, 'id' | 'name' | 'configDir'> & { signedIn: bo
const state = vi.hoisted(() => ({
profiles: [] as Array<{ id: string; name: string; configDir?: string; signedIn: boolean; limited?: boolean }>,
activeId: '',
best: null as string | null,
}));

const manager = vi.hoisted(() => ({
getActiveProfile: vi.fn(() => state.profiles.find(p => p.id === state.activeId)),
getProfile: vi.fn((id: string) => state.profiles.find(p => p.id === id)),
getSettings: vi.fn(() => ({ profiles: state.profiles, activeProfileId: state.activeId })),
hasValidAuth: vi.fn((id: string) => !!state.profiles.find(p => p.id === id)?.signedIn),
isProfileRateLimited: vi.fn((id: string) => ({ limited: !!state.profiles.find(p => p.id === id)?.limited })),
getBestAvailableProfile: vi.fn(() => state.profiles.find(p => p.id === state.best) ?? null),
setActiveProfile: vi.fn((id: string) => { state.activeId = id; return true; }),
getProfileEnv: vi.fn((id: string) => ({ CLAUDE_CONFIG_DIR: `/profiles/${id}` })),
getActiveProfileEnv: vi.fn(() => ({ CLAUDE_CONFIG_DIR: `/profiles/${state.activeId}` })),
}));

vi.mock('../claude-profile-manager', () => ({ getClaudeProfileManager: () => manager }));
vi.mock('../claude-profile/usage-monitor', () => ({
getUsageMonitor: () => ({ getAllProfilesUsage: vi.fn(async () => null), emit: vi.fn() }),
}));
vi.mock('../app-logger', () => ({ appLog: { warn: vi.fn(), error: vi.fn(), info: vi.fn(), debug: vi.fn() } }));

import { getBestAvailableProfileEnv, getUsableProfileEnv } from '../rate-limit-detector';
import { getRunnableProfileEnv, getUsableProfileEnv } from '../rate-limit-detector';

function setProfiles(profiles: Profile[], activeId: string, best: string | null): void {
function setProfiles(profiles: Profile[], activeId: string): void {
state.profiles = profiles;
state.activeId = activeId;
state.best = best;
}

describe('getBestAvailableProfileEnv', () => {
describe('getRunnableProfileEnv', () => {
beforeEach(() => vi.clearAllMocks());

it('stays on a rate-limited account rather than switching to one without credentials', () => {
it('stays on a rate-limited account even when another signed-in account is free', () => {
setProfiles([
{ id: 'primary', name: 'Primary', configDir: '/profiles/primary', signedIn: true, limited: true },
{ id: 'primary-1', name: 'Primary', configDir: '/profiles/primary-1', signedIn: false },
], 'primary', 'primary-1');
{ id: 'second', name: 'Second', configDir: '/profiles/second', signedIn: true },
], 'primary');

const result = getBestAvailableProfileEnv();
const result = getRunnableProfileEnv();

expect(result.profileId).toBe('primary');
expect(result.wasSwapped).toBe(false);
expect(result.wasSignedOut).toBe(false);
expect(result.env.CLAUDE_CONFIG_DIR).toBe('/profiles/primary');
expect(manager.setActiveProfile).not.toHaveBeenCalled();
});

it('moves away from an active account without credentials to a signed-in one', () => {
setProfiles([
{ id: 'primary', name: 'Primary', configDir: '/profiles/primary', signedIn: true },
{ id: 'primary-1', name: 'Primary', configDir: '/profiles/primary-1', signedIn: false },
], 'primary-1', 'primary');
], 'primary-1');

const result = getBestAvailableProfileEnv();
const result = getRunnableProfileEnv();

expect(result).toMatchObject({ profileId: 'primary', wasSwapped: true, swapReason: 'not_authenticated' });
expect(result).toMatchObject({ profileId: 'primary', wasSignedOut: true });
expect(result.env.CLAUDE_CONFIG_DIR).toBe('/profiles/primary');
expect(manager.setActiveProfile).toHaveBeenCalledWith('primary');
});

it('stays on an account without credentials when no other account is signed in', () => {
setProfiles([
{ id: 'primary', name: 'Primary', configDir: '/profiles/primary', signedIn: false },
], 'primary');

const result = getRunnableProfileEnv();

expect(result.profileId).toBe('primary');
expect(manager.setActiveProfile).not.toHaveBeenCalled();
});
});

describe('getUsableProfileEnv', () => {
it('returns null for a removed profile or one without credentials', () => {
setProfiles([
{ id: 'primary', name: 'Primary', configDir: '/profiles/primary', signedIn: true },
{ id: 'primary-1', name: 'Primary', configDir: '/profiles/primary-1', signedIn: false },
], 'primary', null);
], 'primary');

expect(getUsableProfileEnv('primary')).toEqual({ CLAUDE_CONFIG_DIR: '/profiles/primary' });
expect(getUsableProfileEnv('primary-1')).toBeNull();
Expand Down
32 changes: 31 additions & 1 deletion src/main/__tests__/claude-profile-detected.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Accounts found in Claude Code's configuration, synced on every start:
* - each setup becomes an account (usable, not removable, renamable)
* - each setup becomes an account (usable, renamable; deleted on purpose unless it's in use)
* - accounts added the old way leave the list once a setup is detected
* - a later start updates its values and keeps its name; a setup that's gone drops its account
* - a cloud provider setup counts as signed in (Claude Code authenticates it)
Expand Down Expand Up @@ -98,4 +98,34 @@ describe('accounts found in Claude Code configuration', () => {
expect(profiles.some((profile) => profile.detected)).toBe(false);
expect(profiles.map((profile) => profile.name)).toEqual(['Primary']);
});

it('deletes an account only when it is not the one in use nor the only one, and moves references off it', async () => {
const workDir = join(root, 'home', '.claude-work');
const awsDir = join(root, 'home', '.claude-aws');
mkdirSync(workDir, { recursive: true });
mkdirSync(awsDir, { recursive: true });
setupsRef.setups = [bedrock(workDir, 'us-east-1'), bedrock(awsDir, 'eu-west-1')];

const manager = await start();
const [work, aws] = manager.getSettings().profiles;
expect(manager.setActiveProfile(aws.id)).toBe(true);

// The account in use can't be deleted
expect(manager.detectedAccountDeletionBlocker(aws.id)).toMatch(/in use/);
expect(manager.detectedAccountDeletionBlocker(aws.id, aws.id)).toMatch(/in use/);
expect(manager.detectedAccountDeletionBlocker(aws.id, 'gone')).toMatch(/in use/);
// ...unless a window on another account deletes it: that account takes its place
expect(manager.detectedAccountDeletionBlocker(aws.id, work.id)).toBeNull();
expect(manager.detectedAccountDeletionBlocker(work.id)).toBeNull();

// Its files gone (account-deletion.ts), it leaves the accounts
setupsRef.setups = [bedrock(awsDir, 'eu-west-1')];
manager.removeDetectedAccount(work.id);
expect(manager.getSettings().profiles.map((profile) => profile.id)).toEqual([aws.id]);
expect(manager.getSettings().activeProfileId).toBe(aws.id);
expect(manager.redetectAccounts().profiles.map((profile) => profile.id)).toEqual([aws.id]);

// The only account left can't be deleted
expect(manager.detectedAccountDeletionBlocker(aws.id)).not.toBeNull();
});
});
2 changes: 1 addition & 1 deletion src/main/__tests__/claude-profile-runtime-store.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe('profile store per runtime', () => {

const manager = new ClaudeProfileManager();
const initializing = manager.initialize();
manager.updateAutoSwitchSettings({ enabled: true });
manager.renameProfile('primary', 'Renamed');
expect(existsSync(store('claude-profiles.json'))).toBe(false);

finishDetection();
Expand Down
14 changes: 3 additions & 11 deletions src/main/__tests__/claude-profile-startup-heal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ vi.mock('../claude-profile/claude-code-detection', () => ({
}));

import { ClaudeProfileManager } from '../claude-profile-manager';
import { getBestAvailableProfile } from '../claude-profile/profile-scorer';
import { DEFAULT_AUTO_SWITCH_SETTINGS } from '../claude-profile/profile-storage';
import type { ClaudeProfile } from '../../shared/types';

const ESC = '\u001b';
Expand Down Expand Up @@ -106,7 +104,8 @@ describe('ClaudeProfileManager startup repair', () => {
},
],
activeProfileId: 'primary-1',
autoSwitch: DEFAULT_AUTO_SWITCH_SETTINGS,
// Saved before automatic account switching was removed: still loads, and is dropped
autoSwitch: { enabled: true, proactiveSwapEnabled: true, sessionThreshold: 95, weeklyThreshold: 99 },
}));
});

Expand Down Expand Up @@ -135,6 +134,7 @@ describe('ClaudeProfileManager startup repair', () => {
expect(stored.profiles.map((p: ClaudeProfile) => p.id)).toEqual(['primary']);
expect(stored.activeProfileId).toBe('primary');
expect(stored.profiles[0].rateLimitEvents).toEqual([]);
expect(stored.autoSwitch).toBeUndefined();
expect(existsSync(duplicateDir)).toBe(true);
});

Expand All @@ -151,14 +151,6 @@ describe('ClaudeProfileManager startup repair', () => {
expect(manager.getSettings().activeProfileId).toBe('primary');
expect(manager.findAbandonedProfileByName('work')?.id).toBe('primary-1');
});

it('never picks an account without credentials when switching away from a rate-limited one', () => {
const profiles: ClaudeProfile[] = [
{ id: 'primary', name: 'Primary', configDir: primaryDir, isDefault: true, createdAt: new Date() },
{ id: 'primary-1', name: 'Primary', configDir: duplicateDir, isDefault: false, createdAt: new Date() },
];
expect(getBestAvailableProfile(profiles, DEFAULT_AUTO_SWITCH_SETTINGS, 'primary')).toBeNull();
});
});

describe('ClaudeProfileManager rate limit recording', () => {
Expand Down
1 change: 1 addition & 0 deletions src/main/__tests__/ensure-onboarding-complete.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ vi.mock('../claude-profile-manager', () => ({

vi.mock('../project-account', () => ({ projectAccount: vi.fn() }));
vi.mock('../task-messaging/window-hint', () => ({ agentWindowMessagingHint: () => '' }));
vi.mock('../session-messaging/window-tools', () => ({ windowToolsConfig: async () => undefined }));

vi.mock('../claude-profile/credential-utils', () => ({
getFullCredentialsFromKeychain: vi.fn(),
Expand Down
Loading
Loading