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

feat([issue-740]): stamp two-stage renders in history for A/B attribution

[._.]/ Adam Eivy110e5cca36a5
diff --git a/server/services/videoGen/local.js b/server/services/videoGen/local.js
index dc3e281084..a4dc6e1c2e 100644
--- a/server/services/videoGen/local.js
+++ b/server/services/videoGen/local.js
@@ -771,6 +771,10 @@ export async function generateVideo({ pythonPath, prompt, negativePrompt = '', m
// from `keyframes` even when caller omitted `mode`, so without this the
// history entry would say 'text' for a multi-keyframe render.
mode: mode || (hasMultiKeyframes ? 'fflf' : sourceImagePath ? 'image' : 'text'),
+ // Stamp the experimental fast-path so A/B analysis can tell a two-stage
+ // render apart from a user who happened to pick 8 steps — comparing it
+ // against the default Standard render is the whole point of the knob.
+ ...(t2vTwoStage ? { twoStageT2v: true, stage2Steps: actualStage2Steps } : {}),
...(hidden ? { hidden: true } : {}),
};
const job = { ...meta, clients: [], status: 'running' };