The open source AI video agent: turns any coding agent into a video agent, with an editor to change anything it makes.
Settings: a Claude Code older than the one tried says so, with the command that updates it (#278)
Rick1ed02d7e84e8
diff --git a/.changeset/claude-code-outdated.md b/.changeset/claude-code-outdated.mdnew file mode 100644index 0000000..c03068a--- /dev/null+++ b/.changeset/claude-code-outdated.md@@ -0,0 +1,6 @@+---+"@openfilm/desktop": patch+"openfilm": patch+---++Settings › Agents says when Claude Code is older than the one OpenFilm was tested with (2.1.308), whose model menu may then miss the newest models, and gives the command that updates it the way it was installed: npm, pnpm or bun, its Homebrew cask, or its own installer (`claude update`). The Claude app's own copy is updated by the app.diff --git a/apps/desktop/bench/agent-outdated.test.mjs b/apps/desktop/bench/agent-outdated.test.mjsnew file mode 100644index 0000000..bd04544--- /dev/null+++ b/apps/desktop/bench/agent-outdated.test.mjs@@ -0,0 +1,53 @@+import { test } from 'node:test';+import assert from 'node:assert/strict';+import { fileURLToPath } from 'node:url';+import { createServer } from 'vite';+import { chromium } from 'playwright-core';+import shellConfig from '../shell/vite.config.ts';++test('a Claude Code older than the chat was tried with says so in Settings › Agents, with the command that updates it', { timeout: 90_000 }, async () => {+ const server = await createServer({+ ...shellConfig, configFile: false, root: fileURLToPath(new URL('..', import.meta.url)),+ server: { host: '127.0.0.1', port: 0 }, logLevel: 'error',+ plugins: [...shellConfig.plugins, { name: 'agent-outdated-fixture', configureServer(app) {+ app.middlewares.use('/agent-outdated-ui', (_req, res, next) => {+ res.setHeader('content-type', 'text/html');+ void app.transformIndexHtml('/agent-outdated-ui', '<!doctype html><html><body><div id="root"></div><script type="module" src="/bench/agent-sign-in.tsx"></script></body></html>')+ .then((html) => res.end(html), next);+ });+ } }],+ });+ let browser;+ try {+ await server.listen();+ browser = await chromium.launch({ headless: true });+ for (const locale of ['en', 'zh-CN']) {+ const page = await browser.newPage({ viewport: { width: 1100, height: 700 } });+ const errors = [];+ page.on('pageerror', (error) => errors.push(error.message));+ await page.addInitScript((locale) => {+ localStorage.setItem('openfilm.language', locale);+ const agents = [+ { id: 'claude', name: 'Claude Code', shown: true, status: 'ready', path: '/usr/local/bin/claude',+ outdated: { version: '2.1.288', tested: '2.1.308', update: 'npm i -g @anthropic-ai/claude-code@latest' } },+ { id: 'codex', name: 'Codex', shown: true, status: 'ready', path: '/opt/homebrew/bin/codex' },+ ];+ window.openfilmHost = { version: 1, agents: {+ list: async () => agents, refresh: async () => agents, connect: async () => ({ ok: true }),+ disconnect: async () => {}, setShown: async () => {}, onChange: () => () => {},+ } };+ }, locale);+ await page.goto(`http://127.0.0.1:${server.httpServer.address().port}/agent-outdated-ui`);+ const zh = locale === 'zh-CN';+ const row = (name) => page.locator('div.py-4').filter({ has: page.getByText(name, { exact: true }) });+ const said = zh ? 'Claude Code 2.1.288 比 OpenFilm 测过的 2.1.308 旧' : 'Claude Code 2.1.288 is older than the 2.1.308 OpenFilm was tested with';+ await row('Claude Code').getByRole('status').filter({ hasText: said }).waitFor();+ assert.equal(await row('Claude Code').getByText('npm i -g @anthropic-ai/claude-code@latest', { exact: true }).isVisible(), true, 'the command that updates it');+ assert.equal(await row('Claude Code').getByText(zh ? '已连接' : 'Connected', { exact: true }).isVisible(), true, 'an older one still works: it stays connected');+ assert.equal(await row('Codex').getByText(/2\.1\.310/).count(), 0, 'an agent that is not older says nothing');+ if (process.env.OPENFILM_OUTDATED_PREVIEW) await page.screenshot({ path: `${process.env.OPENFILM_OUTDATED_PREVIEW}-${locale}.png`, fullPage: true });+ assert.deepEqual(errors, []);+ await page.close();+ }+ } finally { await browser?.close(); await server.close(); }+});diff --git a/apps/desktop/src/agent-installation.mjs b/apps/desktop/src/agent-installation.mjsindex 2e1290f..0a946f4 100644--- a/apps/desktop/src/agent-installation.mjs+++ b/apps/desktop/src/agent-installation.mjs@@ -183,6 +183,32 @@ export function claudeVersion(file) {return real.split(/[\\/]/).reverse().find((part) => /^\d+\.\d+\.\d+$/.test(part)) ?? null;}+/**+ * How a Claude Code is updated, told from where it is installed, as claudeVersion tells its version: `{ command }`+ * for a global package (npm's, pnpm's or bun's, each with its own), a Homebrew cask (by its name: claude-code or+ * claude-code@latest) or the official installer (`claude update`); `{ app: true }` for the Claude app's own copy,+ * which the app keeps up to date; null when the way can't be told. On Windows the official installer's claude.exe is a+ * copy, not a link into its versions, so neither its version nor its way is told there.+ * @returns {{ command: string } | { app: true } | null}+ */+export function claudeUpdate(file) {+ let real;+ try { real = realpathSync(file); } catch { return null; }+ const parts = real.split(/[\\/]/);+ for (let dir = dirname(real), up = 0; up < 3; dir = dirname(dir), up += 1) {+ try {+ if (JSON.parse(readFileSync(join(dir, 'package.json'), 'utf8')).name !== '@anthropic-ai/claude-code') continue;+ const manager = parts.includes('.bun') ? 'bun add -g' : parts.some((part) => part === 'pnpm' || part === '.pnpm') ? 'pnpm add -g' : 'npm i -g';+ return { command: `${manager} @anthropic-ai/claude-code@latest` };+ } catch { /* not here */ }+ }+ const cask = parts.indexOf('Caskroom');+ if (cask >= 0 && parts[cask + 1]) return { command: `brew upgrade --cask ${parts[cask + 1]}` };+ if (parts.some((part, i) => part === 'claude' && parts[i + 1] === 'versions')) return { command: 'claude update' };+ if (parts.some((part, i) => part === 'Claude' && parts[i + 1] === 'claude-code')) return { app: true };+ return null;+}+/** What programs said of their version (`--version`), by program and its time: each asked once. */const versionsAsked = new Map();diff --git a/apps/desktop/src/agent-installation.test.mjs b/apps/desktop/src/agent-installation.test.mjsindex 719dec0..2cd9357 100644--- a/apps/desktop/src/agent-installation.test.mjs+++ b/apps/desktop/src/agent-installation.test.mjs@@ -3,7 +3,7 @@ import assert from 'node:assert/strict';import { mkdirSync, mkdtempSync, symlinkSync, utimesSync, writeFileSync } from 'node:fs';import { tmpdir } from 'node:os';import { join } from 'node:path';-import { AGENT_INSTALLERS, chosenProgram, claudeAppCli, codexAppCopies, claudeVersion, cmdTarget, codexVersion, consoleProgram, desktopApp, detectAgentInstallation, findExecutable, installCommand, laterVersion, notTheAgent, opencodeVersion, searchReport, windowsBinDirs } from './agent-installation.mjs';+import { AGENT_INSTALLERS, chosenProgram, claudeAppCli, claudeUpdate, codexAppCopies, claudeVersion, cmdTarget, codexVersion, consoleProgram, desktopApp, detectAgentInstallation, findExecutable, installCommand, laterVersion, notTheAgent, opencodeVersion, searchReport, windowsBinDirs } from './agent-installation.mjs';test("an npm .cmd shim (Windows) runs its package's script: that is what gets started", () => {const npm = mkdtempSync(join(tmpdir(), 'of-npm-'));@@ -211,6 +211,22 @@ test('the report: every folder searched, each file with the name, what a shim ru]);});+test('Claude Code is updated the way it was installed: npm, pnpm, bun, its Homebrew cask, its own installer; the Claude app updates its own', () => {+ if (process.platform === 'win32') return;+ const home = mkdtempSync(join(tmpdir(), 'of-home-'));+ const exe = (file) => { mkdirSync(join(file, '..'), { recursive: true }); writeFileSync(file, '', { mode: 0o755 }); return file; };+ const pkg = (dir) => { exe(join(dir, 'cli.js')); writeFileSync(join(dir, 'package.json'), JSON.stringify({ name: '@anthropic-ai/claude-code', version: '2.1.288' })); return join(dir, 'cli.js'); };+ assert.deepEqual(claudeUpdate(pkg(join(home, 'lib/node_modules/@anthropic-ai/claude-code'))), { command: 'npm i -g @anthropic-ai/claude-code@latest' });+ assert.deepEqual(claudeUpdate(pkg(join(home, 'Library/pnpm/global/5/node_modules/@anthropic-ai/claude-code'))), { command: 'pnpm add -g @anthropic-ai/claude-code@latest' });+ assert.deepEqual(claudeUpdate(pkg(join(home, '.bun/install/global/node_modules/@anthropic-ai/claude-code'))), { command: 'bun add -g @anthropic-ai/claude-code@latest' });+ assert.deepEqual(claudeUpdate(exe(join(home, 'homebrew/Caskroom/claude-code/2.1.288/claude'))), { command: 'brew upgrade --cask claude-code' });+ assert.deepEqual(claudeUpdate(exe(join(home, 'homebrew/Caskroom/claude-code@latest/2.1.288/claude'))), { command: 'brew upgrade --cask claude-code@latest' });+ assert.deepEqual(claudeUpdate(exe(join(home, '.local/share/claude/versions/2.1.288'))), { command: 'claude update' });+ assert.deepEqual(claudeUpdate(exe(join(home, 'Library/Application Support/Claude/claude-code/2.1.288/abc/claude'))), { app: true });+ assert.equal(claudeUpdate(exe(join(home, 'tools/2.1.288/claude'))), null, 'a way it can\'t tell');+ assert.equal(claudeUpdate(join(home, 'not-there')), null);+});+test('Claude Code on the PATH and in the Claude app: the later one is used, told from where each is installed', () => {if (process.platform === 'win32') return;const home = mkdtempSync(join(tmpdir(), 'of-home-'));diff --git a/apps/desktop/src/agent-roster.mjs b/apps/desktop/src/agent-roster.mjsindex 8732331..145a789 100644--- a/apps/desktop/src/agent-roster.mjs+++ b/apps/desktop/src/agent-roster.mjs@@ -213,7 +213,7 @@ export async function probeModel({ format, baseUrl, key, model, fetch: fetchImpl** @param {{* dataDir: string,- * localAgents: (options?: { ids?: string[], statusIds?: string[], fresh?: boolean, onAgent?: (agent: any) => void }) => Promise<Array<{ id: string, cli: { path: string } | null, signedIn: boolean | null, account?: object | null, problem?: string, install: string | null, setupRequired: string | null, app?: string | null, installer?: string | null }>>,+ * localAgents: (options?: { ids?: string[], statusIds?: string[], fresh?: boolean, onAgent?: (agent: any) => void }) => Promise<Array<{ id: string, cli: { path: string } | null, signedIn: boolean | null, account?: object | null, problem?: string, outdated?: { version: string, tested: string, update: string | null } | null, install: string | null, setupRequired: string | null, app?: string | null, installer?: string | null }>>,* localAgent?: (id: string, options?: { fresh?: boolean }) => Promise<{ id: string, cli: { path: string } | null, signedIn: boolean | null, account?: object | null, problem?: string, install: string | null, setupRequired: string | null, app?: string | null, installer?: string | null }>,* openSignIn: (id: string) => Promise<{ ok: boolean, error?: string, isOpen?: () => Promise<boolean | null> }>,* signOut?: (id: string) => Promise<{ ok: boolean, error?: string }>,@@ -275,6 +275,7 @@ export function createRoster(deps) {if (choices.disconnected.includes(id) || !choices.shown[id]) return { status: 'off', ...where };if (found.signedIn === false) return { status: live.waiting[id] ? 'waiting' : 'sign-in', ...where };return { status: 'ready', ...where, ...(found.account ? { account: { ...found.account } } : {}), ...(found.problem ? { problem: found.problem } : {}),+ ...(found.outdated ? { outdated: { ...found.outdated } } : {}),...(found.signOut && deps.signOut ? { signOut: true } : {}) };}if (choices.disconnected.includes(id)) return { status: 'off' };diff --git a/apps/desktop/src/agent-roster.test.mjs b/apps/desktop/src/agent-roster.test.mjsindex 7dd8242..542e1b3 100644--- a/apps/desktop/src/agent-roster.test.mjs+++ b/apps/desktop/src/agent-roster.test.mjs@@ -542,6 +542,19 @@ test("Codex found but unable to read its own settings says so, with what it saidassert.equal(codex.problem, problem);});+test('a connected Claude Code older than the chat was tried with says so, with its version and how to update it', async () => {+ const dir = mkdtempSync(join(tmpdir(), 'of-roster-'));+ writeFileSync(join(dir, 'agents.json'), JSON.stringify({ disconnected: [], shown: { claude: true } }));+ const outdated = { version: '2.1.288', tested: '2.1.308', update: 'npm i -g @anthropic-ai/claude-code@latest' };+ const r = roster(dir, undefined, {+ localAgents: async () => [{ id: 'claude', cli: { path: '/bin/claude' }, signedIn: true, account: null, outdated, install: null, setupRequired: null }],+ });+ await r.refresh();+ const claude = r.list().find((a) => a.id === 'claude');+ assert.equal(claude.status, 'ready', 'an older one still works: only said');+ assert.deepEqual(claude.outdated, outdated);+});+test('Codex is connected from the start, Claude Code once the person connects it; a choice kept stays as it is', () => {const dir = mkdtempSync(join(tmpdir(), 'of-roster-'));assert.deepEqual(readChoices(dir).disconnected, ['claude']);diff --git a/apps/desktop/src/agents.mjs b/apps/desktop/src/agents.mjsindex 152af78..16b8cc3 100644--- a/apps/desktop/src/agents.mjs+++ b/apps/desktop/src/agents.mjs@@ -36,7 +36,7 @@ import { Readable, Writable } from 'node:stream';import { fileURLToPath, pathToFileURL } from 'node:url';import * as acp from '@agentclientprotocol/sdk';import { PATH_SEP, childEnvironment, lastPathSource, loginShellEnvironment, loginShellVariables, shellSubset } from './environment.mjs';-import { AGENT_PROGRAMS, HOME_BIN_CANDIDATES, chosenProgram, codexAppCopies, codexVersion, desktopApp, detectAgentInstallation, installCommand, laterVersion, notTheAgent, searchReport } from './agent-installation.mjs';+import { AGENT_PROGRAMS, HOME_BIN_CANDIDATES, chosenProgram, claudeUpdate, claudeVersion, codexAppCopies, codexVersion, desktopApp, detectAgentInstallation, installCommand, laterVersion, notTheAgent, searchReport } from './agent-installation.mjs';import { logSwitches } from './agent-logs.mjs';import { mergeConfig, sessionSkills } from './agent-skills.mjs';import { nodeBinary } from './node-runtime.mjs';@@ -727,6 +727,8 @@ async function agentOnComputer(id, pathDirs, { fresh = false, checkSignIn = true...(cli && checkSignIn ? ownSignIn(AGENTS[id], await agentStatus(id, cli.path, { fresh })) : { signedIn: null, account: null }),/* it signs out with its own command: Switch account signs in to another account from Settings */...(cli && AGENTS[id].logout ? { signOut: true } : {}),+ /* older than the chat was tried with: Settings › Agents says so, with how to update it */+ ...(cli && id === 'claude' ? { outdated: claudeOutdated(cli.path) } : {}),install,setupRequired: claudeApp ? 'code-tab' : null,...(cli ? {} : { app: claudeApp ? null : app, installer: installCommand(id) }),@@ -865,6 +867,27 @@ const AUTH_REQUIRED = -32000;/** The oldest Codex the chat was tried with: an older one may have an app server the adapter can't talk to. */export const CODEX_TESTED = '0.132.0';+/**+ * The oldest Claude Code the chat was tried with. An older one lists only the models it knows: 2.1.288 has no Haiku+ * 5.5, which 2.1.308 has (#230), and the person takes that for OpenFilm's or the service's doing. Never above npm's+ * `stable`, which the Claude app, the Homebrew cask and `claude update` follow: else most are told to update with+ * nothing to update to.+ */+export const CLAUDE_TESTED = '2.1.308';++/**+ * A Claude Code older than CLAUDE_TESTED, for Settings › Agents to say so: its version, the one tried, the command that+ * updates it (null when it has none), and `app` for the Claude app's own copy, which the app updates. Null when it is not+ * older, or its version can't be told.+ * @param {string} path @param {{ versionOf?: (file: string) => string | null, updateOf?: (file: string) => { command: string } | { app: true } | null }} [o]+ */+export function claudeOutdated(path, { versionOf = claudeVersion, updateOf = claudeUpdate } = {}) {+ const version = versionOf(path);+ if (!version || !laterVersion(CLAUDE_TESTED, version)) return null;+ const how = updateOf(path);+ return { version, tested: CLAUDE_TESTED, update: how && 'command' in how ? how.command : null, ...(how && 'app' in how ? { app: true } : {}) };+}+/*** A Codex that did not start, older than the ones tried: its reason, and that updating it is the likely fix (an old* one's app server goes away as the session opens, "connection got disposed", and says nothing more).diff --git a/apps/desktop/src/agents.test.mjs b/apps/desktop/src/agents.test.mjsindex 46644f4..52de874 100644--- a/apps/desktop/src/agents.test.mjs+++ b/apps/desktop/src/agents.test.mjs@@ -1,6 +1,6 @@import { test } from 'node:test';import assert from 'node:assert/strict';-import { AgentSession, CLIENT_CAPABILITIES, agentDefaults, closeEverySession, planProblem, probeFolder, CODEX_UTF8_CMD, agentShell, allowOption, codexDeveloperInstructions, codexLaunchEnv, distinctOptions, errorCause, legacyOptions, optionsForModel, powerShellScript, powerShellLine, powerShellWindowLaunch, terminalScript, checkAgentProgram, readAgentStatus, setChosenPaths, signInScript, turnError, signInError, codexTooOld, AGENTS, ownSignIn, codexServiceError, codexRefusal, codexNotice, explainFailure, stderrReason, withToolKind, OWN_GROUP, stopTree, winArg } from './agents.mjs';+import { AgentSession, CLIENT_CAPABILITIES, agentDefaults, closeEverySession, planProblem, probeFolder, CODEX_UTF8_CMD, agentShell, allowOption, codexDeveloperInstructions, codexLaunchEnv, distinctOptions, errorCause, legacyOptions, optionsForModel, powerShellScript, powerShellLine, powerShellWindowLaunch, terminalScript, checkAgentProgram, readAgentStatus, setChosenPaths, signInScript, turnError, signInError, codexTooOld, AGENTS, ownSignIn, codexServiceError, codexRefusal, codexNotice, explainFailure, stderrReason, withToolKind, OWN_GROUP, stopTree, winArg, CLAUDE_TESTED, claudeOutdated } from './agents.mjs';import { spawn } from 'node:child_process';import { acpSignedIn, signOutAgent } from './agents.mjs';@@ -699,3 +699,13 @@ test("signing out runs the agent's own sign-out with no window, says what it saiassert.match(none.error, /Qwen Code has no sign-out command/);} finally { setChosenPaths({}); closeEverySession(); rmSync(dir, { recursive: true, force: true }); }});++test('a Claude Code older than the one the chat was tried with is said, with how to update it; a later one, or one whose version is not known, is not', () => {+ const at = (version, update = { command: 'claude update' }) => ({ versionOf: () => version, updateOf: () => update });+ assert.deepEqual(claudeOutdated('/x/claude', at('2.1.288')), { version: '2.1.288', tested: CLAUDE_TESTED, update: 'claude update' });+ assert.deepEqual(claudeOutdated('/x/claude', at('2.1.288', { app: true })), { version: '2.1.288', tested: CLAUDE_TESTED, update: null, app: true });+ assert.deepEqual(claudeOutdated('/x/claude', at('2.1.288', null)), { version: '2.1.288', tested: CLAUDE_TESTED, update: null });+ assert.equal(claudeOutdated('/x/claude', at(CLAUDE_TESTED)), null);+ assert.equal(claudeOutdated('/x/claude', at('2.2.0')), null);+ assert.equal(claudeOutdated('/x/claude', at(null)), null);+});diff --git a/packages/openfilm/studio/ui/src/components/settings/AgentsSection.tsx b/packages/openfilm/studio/ui/src/components/settings/AgentsSection.tsxindex 80e8d0d..555c3b6 100644--- a/packages/openfilm/studio/ui/src/components/settings/AgentsSection.tsx+++ b/packages/openfilm/studio/ui/src/components/settings/AgentsSection.tsx@@ -282,6 +282,8 @@ export function AgentsSection() {const ownKey = agent.id === 'byok' && agent.byok;/* found, but it cannot read its own settings, so no session starts: what it says, to fix in its config file */const problem = agent.status === 'ready' && agent.problem ? agent.problem : null;+ /* older than the chat was tried with: it works, but may not list the newest models; how to update it */+ const outdated = chosen && agent.status === 'ready' && agent.outdated ? agent.outdated : null;const said = error?.id === agent.id ? error.text : agent.error ?? (problem ? `${t('settings.agents.unreadable')} ${problem}` : undefined);const open = agent.id === 'byok' && keyOpen;/* where it is not found: why, on asking (Claude Code waiting for its app's Code tab is not lost) */@@ -326,10 +328,19 @@ export function AgentsSection() {</>)}>- {agent.status === 'waiting' || open || said || asking || switchHow || agent.chosen || meter || notice?.id === agent.id || (chosen && agent.status === 'ready' && (host.mcp || host.skills)) ? (+ {agent.status === 'waiting' || open || said || asking || switchHow || agent.chosen || meter || outdated || notice?.id === agent.id || (chosen && agent.status === 'ready' && (host.mcp || host.skills)) ? (<div className="flex flex-col gap-1.5 pl-[34px]">{notice?.id === agent.id ? <p role="status" className="text-[13.5px] leading-relaxed text-[var(--text-muted)]">{notice.text}</p> : null}{said ? <p role="alert" className={settingsError}>{said}</p> : null}+ {outdated ? (+ <div className="flex flex-col gap-1.5">+ <p role="status" className="text-[13.5px] leading-relaxed text-[var(--text-muted)]">+ {t(outdated.update ? 'settings.agents.outdated' : outdated.app ? 'settings.agents.outdatedApp' : 'settings.agents.outdatedOther')+ .replace('{name}', agent.name).replace('{version}', outdated.version).replace('{tested}', outdated.tested)}+ </p>+ {outdated.update ? <code className="block break-all rounded-[6px] bg-[var(--fill-tsp)] px-2.5 py-2 font-mono text-[12.5px] text-[var(--text)]">{outdated.update}</code> : null}+ </div>+ ) : null}{meter ? (<div className="flex flex-col gap-1.5" aria-label={t('settings.agents.usage')}>{plan === undefined ? (diff --git a/packages/openfilm/studio/ui/src/i18n/en.ts b/packages/openfilm/studio/ui/src/i18n/en.tsindex ece846a..e558fd9 100644--- a/packages/openfilm/studio/ui/src/i18n/en.ts+++ b/packages/openfilm/studio/ui/src/i18n/en.ts@@ -1781,6 +1781,9 @@ export const en = {notCursorAgent: 'This is not Cursor’s command-line agent, which installs in a cursor-agent folder. Connecting needs Cursor’s command-line agent.',didNotStart: 'It did not start from there:',unreadable: 'It can’t read its own settings, so it can’t start. Fix what it names in its config file, or update it:',+ outdated: '{name} {version} is older than the {tested} OpenFilm was tested with, so the model menu may not have its newest models. Update it, then reopen the chat:',+ outdatedApp: '{name} {version} is older than the {tested} OpenFilm was tested with, so the model menu may not have its newest models. Update the Claude app, which keeps its copy up to date.',+ outdatedOther: '{name} {version} is older than the {tested} OpenFilm was tested with, so the model menu may not have its newest models. Update it the way you installed it, then reopen the chat.',whyMissing: 'Why isn’t it found?',searching: 'Searching…',hintChosenMissing: "The selected installation location or its connection program is no longer there. Choose it again or return to automatic detection.",diff --git a/packages/openfilm/studio/ui/src/i18n/es.ts b/packages/openfilm/studio/ui/src/i18n/es.tsindex 7cf02ee..7e52fb8 100644--- a/packages/openfilm/studio/ui/src/i18n/es.ts+++ b/packages/openfilm/studio/ui/src/i18n/es.ts@@ -1780,6 +1780,9 @@ export const es: Words = {notCursorAgent: 'Esto no es el agente de línea de comandos de Cursor, que se instala en una carpeta cursor-agent. Para conectar hace falta el agente de línea de comandos de Cursor.',didNotStart: 'No se pudo iniciar desde ahí:',unreadable: 'No puede leer su propia configuración, así que no puede iniciarse. Corrige lo que indica en su archivo de configuración o actualízalo:',+ outdated: '{name} {version} es anterior a la {tested} con la que se probó OpenFilm, así que el menú de modelos puede no tener los más nuevos. Actualízalo y vuelve a abrir el chat:',+ outdatedApp: '{name} {version} es anterior a la {tested} con la que se probó OpenFilm, así que el menú de modelos puede no tener los más nuevos. Actualiza la app de Claude, que mantiene su copia al día.',+ outdatedOther: '{name} {version} es anterior a la {tested} con la que se probó OpenFilm, así que el menú de modelos puede no tener los más nuevos. Actualízalo de la misma forma en que lo instalaste y vuelve a abrir el chat.',whyMissing: '¿Por qué no se encuentra?',searching: 'Buscando…',hintChosenMissing: "La ubicación seleccionada o su programa de conexión ya no está disponible. Vuelve a elegirla o usa la detección automática.",diff --git a/packages/openfilm/studio/ui/src/i18n/ja.ts b/packages/openfilm/studio/ui/src/i18n/ja.tsindex 250c3ee..ff3ab3e 100644--- a/packages/openfilm/studio/ui/src/i18n/ja.ts+++ b/packages/openfilm/studio/ui/src/i18n/ja.ts@@ -1780,6 +1780,9 @@ export const ja: Words = {notCursorAgent: 'これは Cursor のコマンドラインエージェントではありません(cursor-agent フォルダーにインストールされます)。接続には Cursor のコマンドラインエージェントが必要です。',didNotStart: 'ここからは起動できませんでした:',unreadable: '自分の設定を読み込めないため起動できません。設定ファイルの該当箇所を直すか、更新してください:',+ outdated: '{name} {version} は OpenFilm が確認した {tested} より古いため、モデルメニューに最新のモデルがない場合があります。更新してから会話を開き直してください:',+ outdatedApp: '{name} {version} は OpenFilm が確認した {tested} より古いため、モデルメニューに最新のモデルがない場合があります。Claude アプリを更新してください。アプリが内蔵のコピーを更新します。',+ outdatedOther: '{name} {version} は OpenFilm が確認した {tested} より古いため、モデルメニューに最新のモデルがない場合があります。インストールしたときと同じ方法で更新してから、会話を開き直してください。',whyMissing: '見つからない理由は?',searching: '検索中…',hintChosenMissing: "指定したインストール先または接続プログラムが見つかりません。再選択するか、自動検出に戻してください。",diff --git a/packages/openfilm/studio/ui/src/i18n/ko.ts b/packages/openfilm/studio/ui/src/i18n/ko.tsindex dad770a..52a3b09 100644--- a/packages/openfilm/studio/ui/src/i18n/ko.ts+++ b/packages/openfilm/studio/ui/src/i18n/ko.ts@@ -1776,6 +1776,9 @@ export const ko: Words = {notCursorAgent: '이것은 Cursor의 명령줄 에이전트가 아닙니다(cursor-agent 폴더에 설치됩니다). 연결하려면 Cursor의 명령줄 에이전트가 필요합니다.',didNotStart: '여기서 실행하지 못했습니다:',unreadable: '자체 설정을 읽지 못해 시작할 수 없습니다. 설정 파일에서 지적된 부분을 고치거나 업데이트하세요:',+ outdated: '{name} {version}은(는) OpenFilm이 테스트한 {tested}보다 오래되어 모델 메뉴에 최신 모델이 없을 수 있습니다. 업데이트한 뒤 대화를 다시 여세요:',+ outdatedApp: '{name} {version}은(는) OpenFilm이 테스트한 {tested}보다 오래되어 모델 메뉴에 최신 모델이 없을 수 있습니다. Claude 앱을 업데이트하세요. 앱이 함께 들어 있는 사본을 최신으로 유지합니다.',+ outdatedOther: '{name} {version}은(는) OpenFilm이 테스트한 {tested}보다 오래되어 모델 메뉴에 최신 모델이 없을 수 있습니다. 설치했던 방식으로 업데이트한 뒤 대화를 다시 여세요.',whyMissing: '왜 찾지 못하나요?',searching: '찾는 중…',hintChosenMissing: "선택한 설치 위치나 연결 프로그램을 더 이상 찾을 수 없습니다. 다시 선택하거나 자동 검색으로 돌아가세요.",diff --git a/packages/openfilm/studio/ui/src/i18n/zh-CN.ts b/packages/openfilm/studio/ui/src/i18n/zh-CN.tsindex 1c6e52a..59084ad 100644--- a/packages/openfilm/studio/ui/src/i18n/zh-CN.ts+++ b/packages/openfilm/studio/ui/src/i18n/zh-CN.ts@@ -1781,6 +1781,9 @@ export const zhCN: Words = {notCursorAgent: '这不是 Cursor 的命令行智能体(它安装在 cursor-agent 文件夹里)。连接需要 Cursor 的命令行智能体。',didNotStart: '从这里启动失败:',unreadable: '它读不了自己的设置,所以无法启动。请修改它的配置文件里提到的那一项,或更新它:',+ outdated: '{name} {version} 比 OpenFilm 测过的 {tested} 旧,模型菜单里可能没有最新的模型。更新后重新打开对话:',+ outdatedApp: '{name} {version} 比 OpenFilm 测过的 {tested} 旧,模型菜单里可能没有最新的模型。请更新 Claude 应用,它会更新自带的这一份。',+ outdatedOther: '{name} {version} 比 OpenFilm 测过的 {tested} 旧,模型菜单里可能没有最新的模型。请用当初安装它的方式更新,然后重新打开对话。',whyMissing: '为什么检测不到?',searching: '正在查找…',hintChosenMissing: "你选择的安装位置或其中的连接程序已经不在了。重新选择,或改回自动检测。",diff --git a/packages/openfilm/studio/ui/src/lib/host.ts b/packages/openfilm/studio/ui/src/lib/host.tsindex 397ac78..bb72ddd 100644--- a/packages/openfilm/studio/ui/src/lib/host.ts+++ b/packages/openfilm/studio/ui/src/lib/host.ts@@ -259,6 +259,8 @@ export interface HostAgent {connectionIssue?: { kind: 'quota' | 'credentials'; message: string };/** Found, but it cannot read its own settings (Codex's config file), as it says: no session starts until fixed. */problem?: string;+ /** Older than the chat was tried with (Claude Code): its version, the one tried, the command that updates it, and `app` when its app updates it. */+ outdated?: { version: string; tested: string; update: string | null; app?: boolean } | null;account?: HostAgentAccount;/** It signs out with its own command, so the app can switch its account (`agents.switchAccount`); else that is done in the agent itself. */signOut?: boolean;