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: include captured tail in build timeout result; fix install log to use tail slice

[._.]/ Adam Eivyf250a381ef30
diff --git a/server/routes/apps.js b/server/routes/apps.js
index fa60d63b7e..66ad67c82f 100644
--- a/server/routes/apps.js
+++ b/server/routes/apps.js
@@ -675,7 +675,7 @@ router.post('/:id/build', loadApp, asyncHandler(async (req, res) => {
child.on('error', err => { if (!settled) { settled = true; clearTimeout(timer); resolve({ success: false, exitCode: -1, output: err.message }); } });
});
if (!installResult.success) {
- console.log(`❌ npm install (${label}) exit=${installResult.exitCode}: ${installResult.output.slice(0, 300)}`);
+ console.log(`❌ npm install (${label}) exit=${installResult.exitCode}: ${installResult.output.slice(-300)}`);
await logAction('build', app.id, app.name, { buildCommand, step: `npm install (${label})` }, false);
throw new ServerError(`npm install failed (${label}) exit=${installResult.exitCode}: ${installResult.output}`, { status: 500, code: 'INSTALL_FAILED' });
}
@@ -692,7 +692,8 @@ router.post('/:id/build', loadApp, asyncHandler(async (req, res) => {
if (!settled) {
settled = true;
killProc(child);
- resolve({ success: false, stderr: `Build timed out after ${BUILD_TIMEOUT_MS / 1000}s`, code: -1 });
+ const tail = (stderr.trim() || stdout.trim()).slice(-512);
+ resolve({ success: false, stderr: `Build timed out after ${BUILD_TIMEOUT_MS / 1000}s`, code: -1, output: tail || 'no output captured' });
}
}, BUILD_TIMEOUT_MS);
child.stdout.on('data', d => {