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: keep isolated task preparation off the shared checkout
[._.]/ Adam Eivy36a455202ee0
diff --git a/server/services/agentWorkspacePrep.js b/server/services/agentWorkspacePrep.jsindex 4e5662a5ce..9e76423511 100644--- a/server/services/agentWorkspacePrep.js+++ b/server/services/agentWorkspacePrep.js@@ -379,8 +379,9 @@ export async function prepareAgentWorkspace({ agentId, task }) {const wantsWorktree = explicitWorktree || !!existingBranch;if (!isReadOnly) {- // Pull latest from git before starting work- const pullResult = await git.ensureLatest(workspacePath).catch(err => {+ // Isolated tasks fetch their base in createWorktree; never rebase the+ // shared checkout as a side effect of preparing a separate workspace.+ const pullResult = wantsWorktree ? { skipped: 'isolated-task' } : await git.ensureLatest(workspacePath).catch(err => {emitLog('warn', `⚠️ Pre-task git pull failed for ${workspacePath}: ${err.message}`, { taskId: task.id, workspace: workspacePath });return { success: false, error: err.message };});diff --git a/server/services/agentWorkspacePrep.test.js b/server/services/agentWorkspacePrep.test.jsindex 164ddad8df..e2ee920f25 100644--- a/server/services/agentWorkspacePrep.test.js+++ b/server/services/agentWorkspacePrep.test.js@@ -99,7 +99,7 @@ describe('prepareAgentWorkspace — Creative Director scratch cwd (#4650)', () =const r = await prepareAgentWorkspace({ agentId: 'agent-cd-wt', task });expect(r.outcome).toBe('ready');expect(r.workspacePath).toBe('/mock/worktrees/agent-cd-wt');- expect(ensureLatest).toHaveBeenCalled();+ expect(ensureLatest).not.toHaveBeenCalled();expect(createWorktree).toHaveBeenCalled();});});@@ -128,6 +128,7 @@ describe('prepareAgentWorkspace', () => {});expect(r.outcome).toBe('ready');expect(r.explicitWorktree).toBe(true);+ expect(ensureLatest).not.toHaveBeenCalled();expect(createWorktree).toHaveBeenCalled();});diff --git a/server/services/creativeDirector/sceneRunner.backend.test.js b/server/services/creativeDirector/sceneRunner.backend.test.jsindex d035b51102..169021ba76 100644--- a/server/services/creativeDirector/sceneRunner.backend.test.js+++ b/server/services/creativeDirector/sceneRunner.backend.test.js@@ -268,6 +268,7 @@ describe('runSceneRender — Reactor and fal pins', () => {describe('Video production review boundary', () => {it('renders native audio despite the legacy muted default and pauses on shared runtime setup failure', async () => {+ reviewState.allowsDispatch = true;const shot = scene({ workRevision: 0, status: 'pending' });const video = project({ workspace: 'video', status: 'rendering', videoOwnerInstanceId: 'example-owner', disableAudio: true,renderBackend: { video: { mode: 'reactor' } },diff --git a/server/services/creativeDirector/videoExecution.js b/server/services/creativeDirector/videoExecution.jsindex e5c4a9cfbb..3baacd3e52 100644--- a/server/services/creativeDirector/videoExecution.js+++ b/server/services/creativeDirector/videoExecution.js@@ -24,9 +24,6 @@ export function effectiveVideoProject(project) {const choices = project.videoExecution?.choices;if (project.workspace !== 'video' || !choices) return project;return { ...project, renderBackend: { ...project.renderBackend, video: choices.video },- // Video audio is selected for assembly. Legacy projects default to muted- // clips, but that flag must not override the reviewed Video audio contract.- disableAudio: false,modelId: choices.video.modelId || project.modelId,modelOverrides: { ...project.modelOverrides, treatment: choices.treatment, plan: choices.plan,...(choices.evaluation.type === 'api' ? { evaluation: choices.evaluation } : {}) } };