an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions
HTML agent-harnessagent-orchestrationagentsai-agentsautonomous-agentsclaude-codecodexcoding-agentsdesktop-appdeveloper-toolselectrongemini-cliharnessharness-engineeringlocal-firstmemorymulti-agentopencodeorchestrationtypescript
fix(roster): make drag-to-reorder actually work; fix(codex): resume via subcommand
Vyapak Goyalf0e11b91257b
diff --git a/src/main/index.ts b/src/main/index.tsindex 3cde7506..9424ae57 100644--- a/src/main/index.ts+++ b/src/main/index.ts@@ -1493,11 +1493,21 @@ ipcMain.handle('pty:spawn', async (evt, opts: SpawnOptions & { hive?: AgentMeta;// handled in the Claude-only block above; this generic flag path covers the// other CLIs (it must not blindly attach `--resume` when the seed failed).if (opts.hive && opts.resume === true && !claudeProvider) {- const rf = providerPreset(provider).resumeFlag;+ const preset = providerPreset(provider);+ const rf = preset.resumeFlag;+ const rsub = preset.resumeSubcommand;const sid = hive.lastSession(opts.hive.id);if (rf && sid) {const args = opts.args ?? [];if (!args.includes(rf)) { args.push(rf, sid); opts.args = args; }+ } else if (rsub && sid) {+ // Subcommand form (Codex): `codex resume [OPTIONS] [SESSION_ID]` — the+ // subcommand MUST be the first argv entry, the session id trails the flags.+ const args = opts.args ?? [];+ if (args[0] !== rsub) {+ opts.args = [rsub, ...args, sid];+ didResume = true;+ }}}// Remember which agent owns this PTY so closing the tab can archive it. Adiff --git a/src/renderer/src/components/AgentCard.tsx b/src/renderer/src/components/AgentCard.tsxindex 8a7dc701..0c2631bc 100644--- a/src/renderer/src/components/AgentCard.tsx+++ b/src/renderer/src/components/AgentCard.tsx@@ -25,6 +25,7 @@ export interface AgentCardProps {* sticky note stuck to the card. Clicking it opens the first task's detail. */doingCount?: number;onTaskNoteClick?: () => void;+ draggable?: boolean; // must sit on the <button> itself — Chromium won't start a drag on an ancestor from inside a form control}const fmtK = (n: number): string => `${Math.round(n / 1000)}k`;@@ -32,7 +33,7 @@ const fmtK = (n: number): string => `${Math.round(n / 1000)}k`;export function AgentCard({name, character, accent, status, project, action, progress = 0,contextTokens, contextLimit, selected, isGod, onClick,- doingCount = 0, onTaskNoteClick+ doingCount = 0, onTaskNoteClick, draggable}: AgentCardProps) {// The god is always framed (stands out from the row); others only when selected.const framed = isGod || selected;@@ -40,6 +41,7 @@ export function AgentCard({return (<buttononClick={onClick}+ draggable={draggable}className="cth-titlebar-nodrag"style={{width: 220, minWidth: 220, height: 96,diff --git a/src/renderer/src/components/AgentStrip.tsx b/src/renderer/src/components/AgentStrip.tsxindex 5664b393..5e3f23e5 100644--- a/src/renderer/src/components/AgentStrip.tsx+++ b/src/renderer/src/components/AgentStrip.tsx@@ -214,6 +214,7 @@ export function AgentStrip({ config }: AgentStripProps) {}}><AgentCard+ draggablename={a.name}character={a.character}accent={a.accent}diff --git a/src/shared/agentProvider.ts b/src/shared/agentProvider.tsindex fbfd02dd..1b9f83ba 100644--- a/src/shared/agentProvider.ts+++ b/src/shared/agentProvider.ts@@ -73,6 +73,7 @@ export interface AgentProviderPreset {* (Claude `--resume <sid>`, Antigravity `--conversation <id>`). undefined = no* resume support, spawn fresh. */resumeFlag?: string;+ resumeSubcommand?: string; // CLIs that resume via a subcommand instead of a flag (Codex: `codex resume [OPTIONS] [SESSION_ID]`)}export const AGENT_PROVIDER_PRESETS: AgentProviderPreset[] = [@@ -118,9 +119,11 @@ export const AGENT_PROVIDER_PRESETS: AgentProviderPreset[] = [// inbox-wake nudge remains as a harmless fallback for an idle worker).canReceiveInbox: true,initialPromptFlag: undefined,- // Codex has no stable session-resume CLI flag in the curated reference; spawn- // fresh on respawn (the protocol is re-injected as the initial prompt anyway).- resumeFlag: undefined+ // Codex resumes via a SUBCOMMAND, not a flag: `codex resume [OPTIONS]+ // [SESSION_ID]`. A `--resume <id>` flag does not exist, which is why restarts+ // used to silently start a brand-new session instead of continuing.+ resumeFlag: undefined,+ resumeSubcommand: 'resume'},{id: 'antigravity',