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

address review (codex): preserve Grok video retries

[._.]/ Adam Eivy668dc1837364
diff --git a/server/routes/mediaJobs.js b/server/routes/mediaJobs.js
index bf211bc92c..e387b8e01a 100644
--- a/server/routes/mediaJobs.js
+++ b/server/routes/mediaJobs.js
@@ -269,7 +269,9 @@ router.post('/:id/retry', asyncHandler(async (req, res) => {
for (const key of ['seed', 'steps', 'guidanceScale', 'imageStrength']) {
if (rawOverrides[key] === null) delete params[key];
}
- if (job.kind === 'video') validateVideoRetryParams(params);
+ // Grok video jobs use `mode` as the cloud-dispatch discriminator, not the
+ // local semantic mode validated by prepareParams.
+ if (job.kind === 'video' && params.mode !== 'grok') validateVideoRetryParams(params);
// Reset Codex effort to the shipped default: dropping the key lets codex.js's
// fallback (CODEX_IMAGEGEN_DEFAULT_EFFORT) take over, which a merged sentinel
// string could not do (it would fail the CODEX_EFFORT_LEVELS validation).