The open source AI video agent: turns any coding agent into a video agent, with an editor to change anything it makes.
Desktop: Codex's install link is chatgpt.com/download (#121)
riverisbuildingd552d8c807d7
diff --git a/.changeset/codex-download-link.md b/.changeset/codex-download-link.mdnew file mode 100644index 0000000..de16a35--- /dev/null+++ b/.changeset/codex-download-link.md@@ -0,0 +1,5 @@+---+"@openfilm/desktop": patch+---++Settings › Agents: Codex's Install opens chatgpt.com/download, where its app and command line are.diff --git a/apps/desktop/src/agent-definitions.mjs b/apps/desktop/src/agent-definitions.mjsindex 79efdc7..20f0c5e 100644--- a/apps/desktop/src/agent-definitions.mjs+++ b/apps/desktop/src/agent-definitions.mjs@@ -2,7 +2,7 @@/** Desktop metadata only; discovery, launch and sign-in behavior stay in their existing modules. *//** @satisfies {Record<string, { name: string, install: `https://${string}` | null }>} */const definitions = {- codex: { name: 'Codex', install: 'https://developers.openai.com/codex' },+ codex: { name: 'Codex', install: 'https://chatgpt.com/download/' },claude: { name: 'Claude Code', install: 'https://claude.com/download' },copilot: { name: 'GitHub Copilot', install: 'https://github.com/features/copilot/cli' },cursor: { name: 'Cursor', install: 'https://cursor.com/cli' },diff --git a/apps/desktop/src/agent-installation.test.mjs b/apps/desktop/src/agent-installation.test.mjsindex a5b6f4a..6d39bcc 100644--- a/apps/desktop/src/agent-installation.test.mjs+++ b/apps/desktop/src/agent-installation.test.mjs@@ -124,7 +124,7 @@ test('the program the person chose comes first; it can be a shim, the .cmd besidconst mine = put(join(home, 'mine', 'codex'), '', 0o755);const opts = { home, env: { PATH: bin }, pathDirs: [], applicationDirs: [] };if (process.platform !== 'win32') {- assert.deepEqual(detectAgentInstallation('codex', opts), { installed: true, cli: onPath, source: 'path', install: 'https://developers.openai.com/codex' });+ assert.deepEqual(detectAgentInstallation('codex', opts), { installed: true, cli: onPath, source: 'path', install: 'https://chatgpt.com/download/' });assert.equal(detectAgentInstallation('codex', { ...opts, chosen: mine }).source, 'chosen');assert.equal(detectAgentInstallation('codex', { ...opts, chosen: mine }).cli, mine);assert.equal(detectAgentInstallation('codex', { ...opts, chosen: join(home, 'gone') }).cli, onPath, 'one chosen and gone: found as before');@@ -173,7 +173,7 @@ test('a program found some other way (a Store app) is used last', () => {const store = put(join(home, 'Store', 'OpenAI.Codex', 'codex.exe'), '', 0o755);const opts = { home, env: { PATH: '' }, pathDirs: [], applicationDirs: [] };assert.equal(detectAgentInstallation('codex', opts).cli, null);- assert.deepEqual(detectAgentInstallation('codex', { ...opts, others: [store] }), { installed: true, cli: store, source: 'app', install: 'https://developers.openai.com/codex' });+ assert.deepEqual(detectAgentInstallation('codex', { ...opts, others: [store] }), { installed: true, cli: store, source: 'app', install: 'https://chatgpt.com/download/' });});test('the report: every folder searched, each file with the name, what a shim runs, and what cannot be started', () => {@@ -258,7 +258,7 @@ test('Codex installed long ago beside the copy an app keeps up to date: the lateconst versions = (map) => (file) => map[file] ?? null;const opts = { home, env: { PATH: bin }, pathDirs: [], applicationDirs: [apps] };assert.deepEqual(detectAgentInstallation('codex', { ...opts, codexVersionOf: versions({ [onPath]: '0.42.0', [inApp]: '0.163.0' }) }),- { installed: true, cli: inApp, source: 'app', install: 'https://developers.openai.com/codex' });+ { installed: true, cli: inApp, source: 'app', install: 'https://chatgpt.com/download/' });assert.equal(detectAgentInstallation('codex', { ...opts, others: [store], codexVersionOf: versions({ [onPath]: '0.42.0', [inApp]: '0.163.0', [store]: '0.170.0' }) }).cli, store, 'the latest of them');assert.equal(detectAgentInstallation('codex', { ...opts, codexVersionOf: versions({ [onPath]: '0.170.0', [inApp]: '0.163.0' }) }).cli, onPath, 'the one on the PATH is the later');assert.equal(detectAgentInstallation('codex', { ...opts, codexVersionOf: versions({ [inApp]: '0.163.0' }) }).cli, onPath, 'one whose version can\'t be told stays');diff --git a/apps/desktop/src/agent-roster.test.mjs b/apps/desktop/src/agent-roster.test.mjsindex 37780ce..73866e9 100644--- a/apps/desktop/src/agent-roster.test.mjs+++ b/apps/desktop/src/agent-roster.test.mjs@@ -162,7 +162,7 @@ test('an agent not found can be pointed at: the program is tried first, kept, anconst used = [];const asked = [];const r = roster(dir, undefined, {- localAgents: async () => [{ id: 'codex', cli: null, signedIn: null, install: 'https://developers.openai.com/codex', setupRequired: null }],+ localAgents: async () => [{ id: 'codex', cli: null, signedIn: null, install: 'https://chatgpt.com/download/', setupRequired: null }],pickProgram: async (id, words) => { asked.push([id, words]); return picked; },checkProgram: async () => check,usePaths: (paths) => used.push(paths),