Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: identify Creative Director renders in video queue (#4512)
[._.]/ Adam Eivye4c1e8c500e9
diff --git a/client/src/components/media/MediaJobsQueue.jsx b/client/src/components/media/MediaJobsQueue.jsxindex ffc4b8d9a4..09f187498d 100644--- a/client/src/components/media/MediaJobsQueue.jsx+++ b/client/src/components/media/MediaJobsQueue.jsx@@ -36,6 +36,16 @@ const STATUS_BADGE = {const KIND_ICON = { video: Film, image: ImageIcon, training: Cpu };+// Creative Director scene renders use the same durable media queue as manual+// Video Gen renders, but carry an owner tag so the orchestrator can reconcile+// completion. Keep that ownership visible in the shared queue: otherwise an+// agent-enqueued render looks like an unrelated anonymous video job (or, when+// the prompt is absent on a malformed projection, like no useful row at all).+const isCreativeDirectorJob = (job) => typeof job?.owner === 'string'+ && (job.owner.startsWith('cd:') || job.owner.startsWith('creative-director:'));++const ownerLabel = (job) => isCreativeDirectorJob(job) ? 'Creative Director' : job?.owner;+// Safe-read a Codex job's stored reasoning effort. Mirrors codex.js's server-side// guard (`typeof effort === 'string' && effort.trim()`): a non-string value from// hand-edited media-jobs.json returns '' instead of throwing on `.trim()`, and a@@ -391,7 +401,7 @@ function JobRow({ job, onCancel, onRetry, onRunNow, onDelete }) {{job.kind === 'training'? trainingSummary(job.params): (job.params?.prompt ? `"${job.params.prompt.slice(0, 80)}${job.params.prompt.length > 80 ? '…' : ''}"` : 'no prompt')}- {job.owner && <span> · {job.owner}</span>}+ {ownerLabel(job) && <span> · {ownerLabel(job)}</span>}</div></div></div>diff --git a/client/src/components/media/MediaJobsQueue.test.jsx b/client/src/components/media/MediaJobsQueue.test.jsxindex 1d685565af..fe3fc0a56c 100644--- a/client/src/components/media/MediaJobsQueue.test.jsx+++ b/client/src/components/media/MediaJobsQueue.test.jsx@@ -93,6 +93,26 @@ describe('MediaJobsQueue — unavailable state', () => {});});+describe('MediaJobsQueue — Creative Director renders', () => {+ it('surfaces a Creative Director-owned video job in the live queue', async () => {+ listMediaJobs.mockResolvedValue([{+ id: 'cdvideo0000live',+ kind: 'video',+ owner: 'cd:example-project',+ status: 'queued',+ position: 2,+ queuedAt: '2026-06-19T10:00:00Z',+ params: { prompt: 'an invented establishing shot', modelId: 'example-video-model' },+ }]);++ render(<MediaJobsQueue kind="video" />);++ await waitFor(() => expect(screen.getByText(/Creative Director/)).toBeInTheDocument());+ expect(screen.getByText(/#2 in queue/)).toBeInTheDocument();+ expect(screen.getByText(/an invented establishing shot/)).toBeInTheDocument();+ });+});+describe('MediaJobsQueue — Codex reasoning-effort retry control', () => {it('surfaces the job effort in the row label', async () => {const user = userEvent.setup();