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: route repo studies to selected app
[._.]/ Adam Eivyf18f9ea923c5
diff --git a/server/services/repoIntake.js b/server/services/repoIntake.jsindex 12aa2a2026..f208a50514 100644--- a/server/services/repoIntake.js+++ b/server/services/repoIntake.js@@ -158,6 +158,10 @@ export async function queueRepoStudy(link, targetAppId = PORTOS_APP_ID) {const result = await cos.addTask({description: `Repo study: ${repoLabel(link)} — what can ${app.name} learn from it?`,+ // Workspace routing must follow the same managed app whose tracker and+ // repo path are described in the prompt; otherwise agent preparation+ // defaults to the PortOS workspace.+ app: app.id,context: buildRepoStudyContext(link, {appName: app.name,repoPath: app.repoPath,diff --git a/server/services/repoIntake.test.js b/server/services/repoIntake.test.jsindex b849ec9c09..cbcf0ce97c 100644--- a/server/services/repoIntake.test.js+++ b/server/services/repoIntake.test.js@@ -108,6 +108,7 @@ describe('queueRepoStudy', () => {getAppById.mockImplementation(async id => id === target.id ? target : null);await queueRepoStudy(LINK, target.id);expect(getAppById).toHaveBeenCalledWith(target.id);+ expect(addTask.mock.calls[0][0].app).toBe(target.id);expect(addTask.mock.calls[0][0].context).toContain('Example App');});