Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

feat(codex): declare settings.codexAccounts and keep the core electron-free

Claude Code106049d66e4c
diff --git a/src/shared/types.ts b/src/shared/types.ts
index 0635a976b..b0cb1d7e4 100644
--- a/src/shared/types.ts
+++ b/src/shared/types.ts
@@ -11,6 +11,7 @@ import type { GroupWorktree } from './worktree'
import type { ClientId, DinoSnapshot, PeerDiff, PeerIdentity, PeerState } from './presence'
import type { WhisperModelInfo } from './speech'
import type { ProjectKanbanGitHub } from './github-issues'
+import type { CodexAccount } from './codex-account'
import type {
ModelDiscoveryResult,
ModelGatewayCredentialStatus,
@@ -1108,6 +1109,9 @@ export interface Settings {
agentLaunchCommands: Partial<Record<BuiltinAgentId, string>>
/** Managed Claude accounts (config-dir isolated). See ClaudeAccount. */
claudeAccounts: ClaudeAccount[]
+ /** Managed Codex accounts (CODEX_HOME isolated, machine-scoped by `host`). See CodexAccount.
+ * Renderer-owned in settings.json exactly like `claudeAccounts`; main owns only fs lifecycle. */
+ codexAccounts: CodexAccount[]
/** Custom display label for the SYSTEM Claude account (~/.claude) in pickers/settings.
* Empty = unset → fall back to the detected login email, else "System account". */
systemAccountLabel: string
@@ -1271,6 +1275,7 @@ export const DEFAULT_SETTINGS: Settings = {
modelGateway: { baseUrl: '', apiKey: '' },
agentLaunchCommands: {},
claudeAccounts: [],
+ codexAccounts: [],
systemAccountLabel: '',
// All three builtin agents (Claude/Codex/Gemini) show in the Add menus out of the box.
// Existing users keep whatever they've saved (their persisted disabledAgents overrides this).