diff --git a/routes/lab.py b/routes/lab.py index 96ce72e..5acb674 100644 --- a/routes/lab.py +++ b/routes/lab.py @@ -454,7 +454,7 @@ async def get_log(batchId: str): state = active_batches.get(batchId) if not state: raise HTTPException(404, f"Batch {batchId} not found") - return {"lines": state.log_lines[-200:]} + return {"lines": state.log_lines[-2000:]} @router.get("/api/lab/debug-log") diff --git a/ui/ai-lab.js b/ui/ai-lab.js index 626ec83..bdea712 100644 --- a/ui/ai-lab.js +++ b/ui/ai-lab.js @@ -1397,9 +1397,8 @@ const AiLab = (() => { const data = await res.json(); const logEl = document.getElementById('lab-log-content'); if (logEl && data.lines) { - // Show last N lines - const tail = data.lines.slice(-30); - logEl.textContent = tail.join('\n'); + // Show all lines from the backend (up to 200) + logEl.textContent = data.lines.join('\n'); logEl.scrollTop = logEl.scrollHeight; } } catch { /* ignore */ }