Skip to content

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

fix: keep browser destinations and media prompts out of logs

[._.]/ Adam Eivy59397286cac2
diff --git a/server/routes/browser.js b/server/routes/browser.js
index 4a1daa54ea..baed7e533b 100644
--- a/server/routes/browser.js
+++ b/server/routes/browser.js
@@ -131,9 +131,8 @@ router.post('/restart', asyncHandler(async (req, res) => {
// POST /api/browser/navigate - Open a URL in the CDP browser
router.post('/navigate', asyncHandler(async (req, res) => {
- const caller = req.headers['referer'] || req.headers['origin'] || 'unknown';
- console.log(`🌐 Navigate: ${req.body?.url} (from ${caller})`);
const { url } = validateRequest(navigateSchema, req.body);
+ console.log('🌐 Browser navigation requested');
// Layer 2 — DNS-resolve pre-check: reject a hostname whose A record points at a
// blocked (loopback / link-local / cloud-metadata) address BEFORE opening a
// tab. Throws a clean 400 (UNSAFE_URL) via the shared safeUrlFetch gate; an
diff --git a/server/routes/browser.test.js b/server/routes/browser.test.js
index 9f045bb068..811f27cbf6 100644
--- a/server/routes/browser.test.js
+++ b/server/routes/browser.test.js
@@ -20,7 +20,7 @@
* accepted one doesn't launch a real browser.
*/
-import { describe, it, expect, vi, beforeEach } from 'vitest';
+import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
import express from 'express';
import { EventEmitter } from 'node:events';
import { request } from '../lib/testHelper.js';
@@ -59,6 +59,32 @@ beforeEach(() => {
lookup.mockResolvedValue({ address: '93.184.216.34', family: 4 });
});
+afterEach(() => vi.restoreAllMocks());
+
+describe('POST /api/browser/navigate — private navigation data', () => {
+ it('keeps destinations and caller headers out of logs while navigating the exact URL', async () => {
+ const log = vi.spyOn(console, 'log').mockImplementation(() => {});
+ const url = 'https://example.com/private-record?access_token=example-secret#example-fragment';
+ const r = await request(makeApp()).post('/api/browser/navigate')
+ .set('Referer', 'https://example.org/private-referrer?code=example-code')
+ .set('Origin', 'https://example.org')
+ .send({ url });
+ expect(r.status).toBe(200);
+ expect(navigateToUrlPinned).toHaveBeenCalledWith(url, expect.any(Object));
+ expect(log.mock.calls.flat().join('\n')).not.toMatch(/example\.(com|org)|private-record|example-secret|example-fragment|example-code/);
+ });
+
+ it('does not log an unvalidated navigation body or referrer', async () => {
+ const log = vi.spyOn(console, 'log').mockImplementation(() => {});
+ const r = await request(makeApp()).post('/api/browser/navigate')
+ .set('Referer', 'https://example.org/?code=example-code')
+ .send({ url: 'example-private-invalid-input' });
+ expect(r.status).toBe(400);
+ expect(navigateToUrlPinned).not.toHaveBeenCalled();
+ expect(log.mock.calls.flat().join('\n')).not.toMatch(/example-private-invalid-input|example-code|example\.org/);
+ });
+});
+
describe('POST /api/browser/navigate — SSRF guard', () => {
it('accepts a normal https URL and pins it through the browser service', async () => {
const r = await navigate('https://example.com/');
diff --git a/server/services/browserService.js b/server/services/browserService.js
index 5f7ffabc5e..f5027b1413 100644
--- a/server/services/browserService.js
+++ b/server/services/browserService.js
@@ -307,8 +307,8 @@ export async function navigateToUrl(url) {
});
if (!response.ok) {
- const text = await response.text().catch(() => '');
- throw new Error(`CDP navigate failed (${response.status}): ${text}`);
+ await response.body?.cancel().catch(() => {});
+ throw new Error(`CDP navigate failed (${response.status})`);
}
// A successful CDP /json/new always returns a target with an id; a malformed
@@ -316,10 +316,10 @@ export async function navigateToUrl(url) {
// undefined id/url that a caller mistakes for a successful navigation.
const page = await readResponseJson(response, { fallback: null, emptyValue: null });
if (!page?.id) {
- throw new Error(`CDP navigate returned a malformed response for ${url}`);
+ throw new Error('CDP navigate returned a malformed response');
}
browserEvents.emit('pages:changed');
- console.log(`🌐 Opened ${url} in CDP browser (tab ${page.id})`);
+ console.log('🌐 Opened tab in CDP browser');
return { id: page.id, title: page.title || '(loading)', url: page.url, type: page.type };
}
@@ -555,7 +555,7 @@ export function collectWebSocketHosts(messages) {
// Pure gate over a captured CDP message stream: returns a refusal reason string,
// or null when the navigation is safe to read. Exported for unit testing.
-export function ssrfPinRefusalReason(messages, verifyRemoteIp, url, topFrameId = null) {
+export function ssrfPinRefusalReason(messages, verifyRemoteIp, _url, topFrameId = null) {
const { hops, pendingMainRequestUrls } = pickMainFrameHops(messages, topFrameId);
if (!hops.length) return 'no main-frame document response was observed';
// The main document must have a verifiable (present) connection IP — an empty
@@ -582,14 +582,13 @@ export function ssrfPinRefusalReason(messages, verifyRemoteIp, url, topFrameId =
const detail = noConnection
? `${describeHopDelivery(hop)}; no verified network address for this navigation`
: describeHopDelivery(hop);
- return `Chrome connected to an unverifiable address for ${hop.url || url} (${detail})`;
+ return `Chrome connected to an unverifiable address for a main-frame document (${detail})`;
}
// A top-level navigation that STARTED, produced no response, and was not
- // reported as failed was never pinned — Chrome could be mid-connect to a
- // private/metadata target. Name the URL(s): the bare message is undiagnosable
- // once the capture window is gone.
+ // reported as failed was never pinned. Counts retain diagnostic value without
+ // copying browsing history or URL credentials into errors and their logs.
if (pendingMainRequestUrls.length) {
- return `a top-level navigation was still in flight (unpinned): ${pendingMainRequestUrls.join(', ')}`;
+ return `a top-level navigation was still in flight (unpinned): ${pendingMainRequestUrls.length} pending`;
}
// EVERY connection Chrome made must dial an allowed address — not just the
// main document. A rebinding page can load public, then `fetch()` its
@@ -599,7 +598,7 @@ export function ssrfPinRefusalReason(messages, verifyRemoteIp, url, topFrameId =
// loopback/link-local/metadata, not RFC1918 LAN, so LAN pages aren't refused.)
for (const conn of collectConnectedIps(messages)) {
if (!verifyRemoteIp(conn.remoteIPAddress)) {
- return `Chrome connected to a disallowed address ${conn.remoteIPAddress} for ${conn.url || url}`;
+ return 'Chrome connected to a disallowed address';
}
}
// WebSockets: CDP exposes no remoteIPAddress for WS, so we can only refuse a WS
@@ -611,7 +610,7 @@ export function ssrfPinRefusalReason(messages, verifyRemoteIp, url, topFrameId =
// the primary target, is HTTP-only and fully covered above.
for (const ws of collectWebSocketHosts(messages)) {
if (!ws.host || !verifyRemoteIp(ws.host)) {
- return `page opened a WebSocket to a disallowed host ${ws.host || '(unparseable)'} (${ws.url})`;
+ return 'page opened a WebSocket to a disallowed host';
}
}
return null;
@@ -680,13 +679,13 @@ export async function navigateToUrlPinned(url, {
// document request (and its remoteIPAddress).
const response = await cdpRequest('/json/new?about:blank', { method: 'PUT', timeout: navigateTimeoutMs });
if (!response.ok) {
- const text = await response.text().catch(() => '');
- throw new Error(`CDP open-blank failed (${response.status}): ${text}`);
+ await response.body?.cancel().catch(() => {});
+ throw new Error(`CDP open-blank failed (${response.status})`);
}
browserEvents.emit('pages:changed');
const target = await readResponseJson(response, { fallback: null, emptyValue: null });
if (!target?.id || !target?.webSocketDebuggerUrl) {
- throw new Error(`CDP open-blank returned a malformed response for ${url}`);
+ throw new Error('CDP open-blank returned a malformed response');
}
const READ_ID = 3;
@@ -747,7 +746,7 @@ export async function navigateToUrlPinned(url, {
// A Page.navigate Chrome rejects outright (bad scheme, etc.) errors on id 2;
// otherwise its result carries the top frame's `frameId` we pin against.
if (msg.id === 2) {
- if (msg.error) return finish({ ok: false, reason: msg.error.message || 'navigate rejected' });
+ if (msg.error) return finish({ ok: false, reason: 'CDP rejected navigation' });
if (msg.result?.frameId) topFrameId = msg.result.frameId;
return;
}
@@ -756,7 +755,7 @@ export async function navigateToUrlPinned(url, {
// Non-fatal: a Chrome that rejects one of these just keeps its service
// worker / cache in front of the document, and the empty-IP gate still
// fails closed on the unpinnable response — never under-verifies.
- if (msg.error) console.warn(`⚠️ CDP ${PIN_SETUP_COMMANDS[setupIndex].method} rejected: ${msg.error.message || 'unknown error'}`);
+ if (msg.error) console.warn(`⚠️ CDP ${PIN_SETUP_COMMANDS[setupIndex].method} rejected`);
return;
}
if (msg.id === READ_ID) {
diff --git a/server/services/browserService.test.js b/server/services/browserService.test.js
index d45134094b..aa7cfe5700 100644
--- a/server/services/browserService.test.js
+++ b/server/services/browserService.test.js
@@ -292,7 +292,7 @@ describe('pickMainFrameHops (SSRF pin — main-frame connection IPs)', () => {
docRequest('R1', 'https://ex.com/a', ''),
docResponse('R1', 'https://ex.com/a', '93.184.216.34'),
docRequest('R2', 'https://ex.com/b', ''),
- // R2 redirected before stalling: the refusal must name where it ended up.
+ // Preserve redirect identity in the capture, independently of diagnostics.
{
method: 'Network.requestWillBeSent',
params: {
@@ -419,19 +419,18 @@ describe('ssrfPinRefusalReason (SSRF pin gate)', () => {
docRequest('R1', 'http://127.0.0.1/x'),
docResponse('R1', 'http://127.0.0.1/x', '127.0.0.1'),
], allow, 'http://127.0.0.1/x');
- expect(reason).toMatch(/disallowed address 127\.0\.0\.1/);
+ expect(reason).toBe('Chrome connected to a disallowed address');
});
- it('refuses an in-flight top-level navigation (started, no response), naming its URL', () => {
+ it('refuses an in-flight top-level navigation without exposing its URL', () => {
const reason = ssrfPinRefusalReason([
docRequest('R1', 'https://ex.com/a'),
docResponse('R1', 'https://ex.com/a', '93.184.216.34'),
- docRequest('R2', 'https://evil.example/x'),
+ docRequest('R2', 'https://example.org/private-record?token=example-secret#private-fragment'),
], allow, 'https://ex.com/a');
expect(reason).toMatch(/still in flight/);
- // Which navigation was unpinned is the whole diagnostic value — the capture
- // window is gone by the time anyone reads the error.
- expect(reason).toContain('https://evil.example/x');
+ expect(reason).toContain('1 pending');
+ expect(reason).not.toMatch(/example\.org|private-record|example-secret|private-fragment/);
});
// The Stacker News regression: a single-page app supersedes its own in-flight
@@ -448,7 +447,7 @@ describe('ssrfPinRefusalReason (SSRF pin gate)', () => {
const reason = ssrfPinRefusalReason([...canceled, docRequest('R3', 'https://ex.com/c')], allow, 'https://ex.com/a');
expect(reason).toMatch(/still in flight/);
- expect(reason).toContain('https://ex.com/c');
+ expect(reason).toContain('1 pending');
expect(reason).not.toContain('https://ex.com/b');
});
@@ -460,7 +459,7 @@ describe('ssrfPinRefusalReason (SSRF pin gate)', () => {
docResponse('R1', 'http://127.0.0.1/x', '127.0.0.1'),
loadingFailed('R1', 'net::ERR_CONNECTION_RESET'),
], allow, 'http://127.0.0.1/x');
- expect(reason).toMatch(/disallowed address 127\.0\.0\.1/);
+ expect(reason).toBe('Chrome connected to a disallowed address');
});
// The relaxation is scoped to CANCELED loads. A connection-level failure means
@@ -475,7 +474,8 @@ describe('ssrfPinRefusalReason (SSRF pin gate)', () => {
loadingFailed('R2', 'net::ERR_CONNECTION_RESET'),
], allow, 'https://ex.com/a');
expect(reason).toMatch(/still in flight/);
- expect(reason).toContain('https://rebind.example/x');
+ expect(reason).toContain('1 pending');
+ expect(reason).not.toContain('https://rebind.example/x');
});
it('refuses when no main-frame document response was observed', () => {
@@ -483,11 +483,13 @@ describe('ssrfPinRefusalReason (SSRF pin gate)', () => {
});
it('refuses a main document with a missing/empty remote IP (unverifiable)', () => {
+ const url = 'https://example.com/private-record?token=example-secret#private-fragment';
const reason = ssrfPinRefusalReason([
- docRequest('R1', 'https://ex.com/a'),
- docResponse('R1', 'https://ex.com/a', ''),
- ], allow, 'https://ex.com/a');
+ docRequest('R1', url),
+ docResponse('R1', url, ''),
+ ], allow, url);
expect(reason).toMatch(/unverifiable address/);
+ expect(reason).not.toMatch(/example\.com|private-record|example-secret|private-fragment/);
// The refusal names the cause so the next occurrence is diagnosable.
expect(reason).toMatch(/no remoteIPAddress; fromServiceWorker=false, fromDiskCache=false, fromPrefetchCache=false, serviceWorkerResponseSource=none/);
});
@@ -574,7 +576,7 @@ describe('ssrfPinRefusalReason (SSRF pin gate)', () => {
docResponse('R1', 'https://pwa.example/app', '', { fromDiskCache: true }),
{ method: 'Network.responseReceived', params: { requestId: 'R3', type: 'XHR', response: { url: 'https://pwa.example/latest/meta-data', remoteIPAddress: '169.254.169.254', status: 200 } } },
], allow, 'https://pwa.example/');
- expect(reason).toMatch(/disallowed address 169\.254\.169\.254/);
+ expect(reason).toBe('Chrome connected to a disallowed address');
});
it('refuses a SUB-RESOURCE / fetch that dialed a blocked IP (rebind after page load)', () => {
@@ -585,7 +587,7 @@ describe('ssrfPinRefusalReason (SSRF pin gate)', () => {
docResponse('R1', 'https://ex.com/a', '93.184.216.34'),
{ method: 'Network.responseReceived', params: { requestId: 'R2', type: 'XHR', response: { url: 'https://ex.com/latest/meta-data', remoteIPAddress: '169.254.169.254', status: 200 } } },
], allow, 'https://ex.com/a');
- expect(reason).toMatch(/disallowed address 169\.254\.169\.254/);
+ expect(reason).toBe('Chrome connected to a disallowed address');
});
it('ignores sub-resources with an empty remote IP (data:/blob:/cache — no connection)', () => {
@@ -617,7 +619,7 @@ describe('ssrfPinRefusalReason (SSRF pin gate)', () => {
docResponse('R1', 'https://ex.com/a', '93.184.216.34'),
{ method: 'Network.webSocketCreated', params: { requestId: 'W1', url: 'ws://localhost:9222/devtools' } },
], hostAllow, 'https://ex.com/a');
- expect(reason).toMatch(/WebSocket to a disallowed host localhost/);
+ expect(reason).toBe('page opened a WebSocket to a disallowed host');
});
it('allows a WebSocket to a normal public host', () => {
@@ -660,7 +662,7 @@ describe('navigateToUrlPinned tab ownership (closeAfterRead)', () => {
// Minimal CDP: PUT /json/new hands out a blank tab, /json/close/<id> is
// recorded, and the socket answers Page.navigate with a frameId + a pinned
// main-frame Document response, then Runtime.evaluate with `evalValue`.
- async function startFakeCdp({ evalValue = null, remoteIPAddress = '93.184.216.34' } = {}) {
+ async function startFakeCdp({ evalValue = null, remoteIPAddress = '93.184.216.34', navigateError = null } = {}) {
const opened = [];
const closed = [];
let port = 0;
@@ -687,6 +689,10 @@ describe('navigateToUrlPinned tab ownership (closeAfterRead)', () => {
ws.on('message', (raw) => {
const msg = JSON.parse(raw.toString());
if (msg.method === 'Page.navigate') {
+ if (navigateError) {
+ ws.send(JSON.stringify({ id: msg.id, error: { message: navigateError } }));
+ return;
+ }
const url = msg.params.url;
ws.send(JSON.stringify({ id: msg.id, result: { frameId: 'F1' } }));
ws.send(JSON.stringify({
@@ -738,6 +744,28 @@ describe('navigateToUrlPinned tab ownership (closeAfterRead)', () => {
await rm(tempRoot, { recursive: true, force: true });
});
+ it('keeps private destinations out of unpinned navigation logs', async () => {
+ fake = await startFakeCdp();
+ const service = await importServicePointedAtFake();
+ const log = vi.spyOn(console, 'log').mockImplementation(() => {});
+ try {
+ const page = await service.navigateToUrl('https://example.com/private-record?token=example-secret');
+ expect(page.id).toBe('tab-1');
+ expect(log.mock.calls.flat().join('\n')).not.toMatch(/example\.com|private-record|example-secret/);
+ } finally {
+ log.mockRestore();
+ }
+ });
+
+ it('does not promote CDP error payloads into thrown errors and closes the failed tab', async () => {
+ const url = 'https://example.com/private-record?token=example-secret#private-fragment';
+ fake = await startFakeCdp({ navigateError: `Cannot navigate to ${url}` });
+ const service = await importServicePointedAtFake();
+ await expect(service.navigateToUrlPinned(url, { verifyRemoteIp: () => true }))
+ .rejects.toThrow('refusing to ingest: CDP rejected navigation');
+ expect(fake.closed).toEqual(['tab-1']);
+ });
+
it('tears down the tab it read from when evaluateExpression was supplied', async () => {
fake = await startFakeCdp({ evalValue: 'read-body' });
const service = await importServicePointedAtFake();
diff --git a/server/services/imageGen/agy.js b/server/services/imageGen/agy.js
index 508b5509af..1943066cf7 100644
--- a/server/services/imageGen/agy.js
+++ b/server/services/imageGen/agy.js
@@ -368,7 +368,7 @@ async function generateImagePrepared({
progress: 0,
currentImage: null,
});
- console.log(`🎨 Generating image [${jobId.slice(0, 8)}] agy: ${prompt.slice(0, 60)}…`);
+ console.log(`🎨 Generating image [${jobId.slice(0, 8)}] agy`);
imageGenEvents.emit('started', { generationId: jobId, totalSteps: 1 });
broadcastSse(job, { type: 'status', message: 'Spawning agy…' });
diff --git a/server/services/imageGen/codex.js b/server/services/imageGen/codex.js
index ee6914ca69..cf8e52c385 100644
--- a/server/services/imageGen/codex.js
+++ b/server/services/imageGen/codex.js
@@ -357,7 +357,7 @@ async function generateImagePrepared({
try {
jobs.set(jobId, job);
- console.log(`🎨 Generating image [${jobId.slice(0, 8)}] codex: ${prompt.slice(0, 60)}…`);
+ console.log(`🎨 Generating image [${jobId.slice(0, 8)}] codex`);
imageGenEvents.emit('started', { generationId: jobId, totalSteps: 1 });
activeJobs.set(jobId, { ...meta, generationId: jobId, totalSteps: 1, step: 0, progress: 0, currentImage: null });
broadcastSse(job, { type: 'status', message: 'Spawning codex…' });
diff --git a/server/services/imageGen/external.js b/server/services/imageGen/external.js
index 3988ae6111..b8541fda62 100644
--- a/server/services/imageGen/external.js
+++ b/server/services/imageGen/external.js
@@ -129,7 +129,7 @@ export async function generateImage({ sdapiUrl, prompt, negativePrompt, width, h
};
const generationId = randomUUID();
- console.log(`🎨 Generating image [${generationId.slice(0, 8)}] external→${baseUrl}: ${prompt.slice(0, 60)}... (${payload.width}x${payload.height}, ${payload.steps} steps)`);
+ console.log(`🎨 Generating image [${generationId.slice(0, 8)}] external (${payload.width}x${payload.height}, ${payload.steps} steps)`);
imageGenEvents.emit('started', { generationId, totalSteps: payload.steps });
activeJob = {
generationId, prompt, negativePrompt,
diff --git a/server/services/imageGen/external.test.js b/server/services/imageGen/external.test.js
index 8916a01144..9563c1698c 100644
--- a/server/services/imageGen/external.test.js
+++ b/server/services/imageGen/external.test.js
@@ -26,6 +26,26 @@ beforeEach(() => {
});
describe('external image generation lifecycle', () => {
+ it('keeps the prompt and private endpoint out of logs without changing the render request', async () => {
+ const log = vi.spyOn(console, 'log').mockImplementation(() => {});
+ const prompt = 'Example private portrait for [email protected]';
+ const sdapiUrl = 'https://example.com/private-model?key=example-secret';
+ fetchWithTimeout.mockImplementation(async (url) => {
+ if (url.endsWith('/txt2img')) throw new Error('stop after payload');
+ return response({ sd_model_checkpoint: 'example-model', progress: 0, state: {} });
+ });
+
+ try {
+ await expect(generateImage({ sdapiUrl, prompt })).rejects.toThrow('stop after payload');
+ const [url, init] = fetchWithTimeout.mock.calls.find(([url]) => url.endsWith('/txt2img'));
+ expect(url).toBe('https://example.com/sdapi/v1/txt2img');
+ expect(JSON.parse(init.body).prompt).toBe(prompt);
+ expect(log.mock.calls.flat().join('\n')).not.toMatch(/alice@example\.com|Example private portrait|example\.com|example-secret/);
+ } finally {
+ log.mockRestore();
+ }
+ });
+
it('clears activeJob and emits a failure when a terminal response cannot be read', async () => {
fetchWithTimeout
.mockResolvedValueOnce(response({ sd_model_checkpoint: 'example-model' }))
diff --git a/server/services/imageGen/fal.js b/server/services/imageGen/fal.js
index 295fdc7f8f..58b103b643 100644
--- a/server/services/imageGen/fal.js
+++ b/server/services/imageGen/fal.js
@@ -293,7 +293,7 @@ async function generateImagePrepared({
const job = { ...meta, clients: [], status: 'running', renderStartedAtMs };
jobs.set(jobId, job);
- console.log(`🎨 Generating image [${jobId.slice(0, 8)}] fal (${endpointId}): ${prompt.slice(0, 60)}…`);
+ console.log(`🎨 Generating image [${jobId.slice(0, 8)}] fal (${endpointId})`);
imageGenEvents.emit('started', { generationId: jobId, totalSteps: 1 });
activeJobs.set(jobId, { ...meta, generationId: jobId, totalSteps: 1, step: 0, progress: 0, currentImage: null });
broadcastSse(job, { type: 'status', message: 'Submitting to fal.ai…' });
diff --git a/server/services/imageGen/grok.js b/server/services/imageGen/grok.js
index db0faa5726..98e8813748 100644
--- a/server/services/imageGen/grok.js
+++ b/server/services/imageGen/grok.js
@@ -312,7 +312,7 @@ async function generateImagePrepared({
const job = { ...meta, clients: [], status: 'running', renderStartedAtMs };
jobs.set(jobId, job);
- console.log(`🎨 Generating image [${jobId.slice(0, 8)}] grok: ${prompt.slice(0, 60)}…`);
+ console.log(`🎨 Generating image [${jobId.slice(0, 8)}] grok`);
imageGenEvents.emit('started', { generationId: jobId, totalSteps: 1 });
activeJobs.set(jobId, { ...meta, generationId: jobId, totalSteps: 1, step: 0, progress: 0, currentImage: null });
broadcastSse(job, { type: 'status', message: 'Spawning grok…' });
diff --git a/server/services/videoGen/fal.js b/server/services/videoGen/fal.js
index 7110bc0313..33c4127332 100644
--- a/server/services/videoGen/fal.js
+++ b/server/services/videoGen/fal.js
@@ -280,7 +280,7 @@ async function generateVideoPrepared({
jobs.set(jobId, job);
const costNote = meta.estimatedCostUsd != null ? ` ~$${meta.estimatedCostUsd.toFixed(2)}` : ' cost unknown';
- console.log(`🎬 Generating video [${jobId.slice(0, 8)}] fal (${modelId}${meta.resolution ? ` ${meta.resolution}` : ''}${costNote}): ${(prompt || '(source audio)').slice(0, 60)}…`);
+ console.log(`🎬 Generating video [${jobId.slice(0, 8)}] fal (${modelId}${meta.resolution ? ` ${meta.resolution}` : ''}${costNote})`);
videoGenEvents.emit('started', { generationId: jobId, totalSteps: 1, ...meta });
activeJobs.set(jobId, { ...meta, generationId: jobId, totalSteps: 1, step: 0, progress: 0 });
emitCloudRenderStatus(job, jobId, CLOUD_RENDER_PHASE.SUBMIT, 'Submitting to fal.ai…');
diff --git a/server/services/videoGen/grok.js b/server/services/videoGen/grok.js
index 640556a5bb..684aa69e16 100644
--- a/server/services/videoGen/grok.js
+++ b/server/services/videoGen/grok.js
@@ -206,7 +206,7 @@ async function generateVideoPrepared({
const job = { ...meta, clients: [], status: 'running', renderStartedAtMs };
jobs.set(jobId, job);
- console.log(`🎬 Generating video [${jobId.slice(0, 8)}] grok: ${prompt.slice(0, 60)}…`);
+ console.log(`🎬 Generating video [${jobId.slice(0, 8)}] grok`);
videoGenEvents.emit('started', { generationId: jobId, totalSteps: 1, ...meta });
activeJobs.set(jobId, { ...meta, generationId: jobId, totalSteps: 1, step: 0, progress: 0 });
emitCloudRenderStatus(job, jobId, CLOUD_RENDER_PHASE.SUBMIT, 'Spawning grok…');
diff --git a/server/services/videoGen/reactor.js b/server/services/videoGen/reactor.js
index d3f6b3e4dd..d5e6e20b90 100644
--- a/server/services/videoGen/reactor.js
+++ b/server/services/videoGen/reactor.js
@@ -257,7 +257,7 @@ async function generateVideoPrepared({
const job = { ...meta, clients: [], status: 'running', renderStartedAtMs };
jobs.set(jobId, job);
- console.log(`🎬 Generating video [${jobId.slice(0, 8)}] reactor (${REACTOR_MODEL_ID}): ${prompt.slice(0, 60)}…`);
+ console.log(`🎬 Generating video [${jobId.slice(0, 8)}] reactor (${REACTOR_MODEL_ID})`);
videoGenEvents.emit('started', { generationId: jobId, totalSteps: 1, ...meta });
activeJobs.set(jobId, { ...meta, generationId: jobId, totalSteps: 1, step: 0, progress: 0 });
emitCloudRenderStatus(job, jobId, CLOUD_RENDER_PHASE.SUBMIT, 'Preparing Reactor runtime…');
diff --git a/server/services/videoGen/runway.js b/server/services/videoGen/runway.js
index 4693e3cd04..47a9e34619 100644
--- a/server/services/videoGen/runway.js
+++ b/server/services/videoGen/runway.js
@@ -185,7 +185,7 @@ async function generateVideoPrepared({
jobs.set(jobId, job);
const costNote = meta.estimatedCostUsd != null ? ` ~$${meta.estimatedCostUsd.toFixed(2)}` : ' cost unknown';
- console.log(`🎬 Generating video [${jobId.slice(0, 8)}] runway (${planned.model.id}${meta.resolution ? ` ${meta.resolution}` : ''}${costNote}): ${(prompt || '(no prompt)').slice(0, 60)}…`);
+ console.log(`🎬 Generating video [${jobId.slice(0, 8)}] runway (${planned.model.id}${meta.resolution ? ` ${meta.resolution}` : ''}${costNote})`);
videoGenEvents.emit('started', { generationId: jobId, totalSteps: 1, ...meta });
activeJobs.set(jobId, { ...meta, generationId: jobId, totalSteps: 1, step: 0, progress: 0 });
emitCloudRenderStatus(job, jobId, CLOUD_RENDER_PHASE.SUBMIT, 'Submitting to Runway…');