Skip to content

The open source AI video agent: turns any coding agent into a video agent, with an editor to change anything it makes.

Settings: a personal Claude account's line leaves out its organization, which only repeats the email (#221)

WEBGRS4dfa8fec3d33
diff --git a/.changeset/claude-personal-org.md b/.changeset/claude-personal-org.md
new file mode 100644
index 0000000..84e4c05
--- /dev/null
+++ b/.changeset/claude-personal-org.md
@@ -0,0 +1,5 @@
+---
+"openfilm": patch
+---
+
+Settings › Agents: a personal Claude account reads "email · Max", without its organization, which is only "email's Organization" and said the email twice.
diff --git a/packages/openfilm/studio/ui/src/components/settings/AgentsSection.tsx b/packages/openfilm/studio/ui/src/components/settings/AgentsSection.tsx
index b54663a..6a9f51d 100644
--- a/packages/openfilm/studio/ui/src/components/settings/AgentsSection.tsx
+++ b/packages/openfilm/studio/ui/src/components/settings/AgentsSection.tsx
@@ -23,7 +23,7 @@ import { Check, Copy, Download, KeyRound, Loader2, Plus, X } from 'lucide-react'
import { useLanguage, useT } from '@/i18n';
import { BYOK_EFFORTS, studioHost, type HostAgent, type HostAgentDiagnosis, type HostAgentId, type HostAgentUsage, type HostByokEffort, type HostByokEffortLevel, type HostByokFormat, type HostOwnModel } from '@/lib/host';
import { parseContextLength } from '@/lib/context-length';
-import { missingActions } from '@/lib/agent-row';
+import { accountOrg, missingActions } from '@/lib/agent-row';
/** What is left of the plan: what Codex can say (the app's agent-usage.mjs; Claude Code's own report is wrong for Team accounts). */
const PLAN_AGENTS: readonly HostAgentId[] = ['codex'];
@@ -190,7 +190,7 @@ export function AgentsSection() {
const how = a.method === 'chatgpt' ? t('settings.agents.accountChatgpt') : a.method === 'api-key' ? t('settings.agents.accountApiKey')
: a.method === 'console' ? t('settings.agents.accountConsole') : null;
const plan = a.plan ? a.plan.charAt(0).toUpperCase() + a.plan.slice(1) : null;
- const parts = [a.org, a.email, plan, a.email || a.org ? null : how].filter(Boolean);
+ const parts = [accountOrg(a), a.email, plan, a.email || a.org ? null : how].filter(Boolean);
return parts.length ? parts.join(' · ') : null;
};
diff --git a/packages/openfilm/studio/ui/src/lib/agent-row.test.ts b/packages/openfilm/studio/ui/src/lib/agent-row.test.ts
index 3a80b9b..4727091 100644
--- a/packages/openfilm/studio/ui/src/lib/agent-row.test.ts
+++ b/packages/openfilm/studio/ui/src/lib/agent-row.test.ts
@@ -1,6 +1,6 @@
import { test } from 'node:test';
import assert from 'node:assert/strict';
-import { missingActions } from './agent-row.ts';
+import { accountOrg, missingActions } from './agent-row.ts';
test('an agent not found offers Locate and its installer, or its install page', () => {
const host = { locate: true, install: true };
@@ -12,3 +12,10 @@ test('an agent not found offers Locate and its installer, or its install page',
test("Claude Code waiting in the Claude app offers no Install or Locate: opening the app's Code tab downloads it", () => {
assert.deepEqual(missingActions({ setupRequired: 'code-tab', install: 'https://example.test' }, { locate: true, install: true }), { locate: false, install: null });
});
+
+test("an account's organization is named unless it only repeats the email, as a personal Claude account's does", () => {
+ assert.equal(accountOrg({ org: "[email protected]'s Organization", email: '[email protected]' }), null);
+ assert.equal(accountOrg({ org: 'Acme Films', email: '[email protected]' }), 'Acme Films');
+ assert.equal(accountOrg({ org: "[email protected]'s Organization" }), "[email protected]'s Organization");
+ assert.equal(accountOrg({ email: '[email protected]' }), null);
+});
diff --git a/packages/openfilm/studio/ui/src/lib/agent-row.ts b/packages/openfilm/studio/ui/src/lib/agent-row.ts
index baf0e89..f2367be 100644
--- a/packages/openfilm/studio/ui/src/lib/agent-row.ts
+++ b/packages/openfilm/studio/ui/src/lib/agent-row.ts
@@ -10,3 +10,12 @@ export function missingActions(agent: Pick<HostAgent, 'setupRequired' | 'install
const install: 'run' | 'page' | null = agent.installer && host.install ? 'run' : agent.install ? 'page' : null;
return { locate: host.locate, install };
}
+
+/**
+ * The organization an account's line names, unless it only says the email again: a personal Claude account's
+ * organization is "<email>'s Organization".
+ */
+export function accountOrg(account: { org?: string | null; email?: string | null }): string | null {
+ if (!account.org) return null;
+ return account.email && account.org === `${account.email}'s Organization` ? null : account.org;
+}