You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"title": "Fix external worker logs visibility in dashboard",
6
+
"source": {
7
+
"system": "plain",
8
+
"id": "external-worker-logs"
9
+
}
10
+
},
11
+
"status": "completed",
12
+
"startedAt": "2026-01-29T21:31:14.998Z",
13
+
"agents": [
14
+
{
15
+
"name": "khaliqgant",
16
+
"role": "lead",
17
+
"joinedAt": "2026-01-29T21:31:14.999Z"
18
+
}
19
+
],
20
+
"chapters": [
21
+
{
22
+
"id": "chap_2en9c2md03sj",
23
+
"title": "Work",
24
+
"agentName": "default",
25
+
"startedAt": "2026-01-29T21:31:22.210Z",
26
+
"events": [
27
+
{
28
+
"ts": 1769722282211,
29
+
"type": "decision",
30
+
"content": "Check workers.json for external workers to set isSpawned flag: Check workers.json for external workers to set isSpawned flag",
31
+
"raw": {
32
+
"question": "Check workers.json for external workers to set isSpawned flag",
33
+
"chosen": "Check workers.json for external workers to set isSpawned flag",
34
+
"alternatives": [],
35
+
"reasoning": "Dashboard spawner only tracks workers it spawned. External spawners (agentswarm, SDK) write to workers.json with logFile paths. By checking workers.json, we can identify these and show the log button."
36
+
},
37
+
"significance": "high"
38
+
},
39
+
{
40
+
"ts": 1769722289417,
41
+
"type": "decision",
42
+
"content": "Read logs from external worker log files with file watching: Read logs from external worker log files with file watching",
43
+
"raw": {
44
+
"question": "Read logs from external worker log files with file watching",
45
+
"chosen": "Read logs from external worker log files with file watching",
46
+
"alternatives": [],
47
+
"reasoning": "External workers have log files in worker-logs/ directory. Instead of saying PTY output not available, read from these files and watch for changes to stream live updates."
"summary": "Fixed external worker logs visibility: 1) Dashboard now checks workers.json to detect externally-spawned workers and sets isSpawned=true so log button appears, 2) Added fallback to read logs from worker log files when agent not in dashboard spawner, 3) Added file watching for live log streaming, 4) Added 12 unit tests covering detection, reading, and flag logic",
# Trajectory: Fix external worker logs visibility in dashboard
2
+
3
+
> **Status:** ✅ Completed
4
+
> **Task:** external-worker-logs
5
+
> **Confidence:** 85%
6
+
> **Started:** January 29, 2026 at 10:31 PM
7
+
> **Completed:** January 29, 2026 at 10:32 PM
8
+
9
+
---
10
+
11
+
## Summary
12
+
13
+
Fixed external worker logs visibility: 1) Dashboard now checks workers.json to detect externally-spawned workers and sets isSpawned=true so log button appears, 2) Added fallback to read logs from worker log files when agent not in dashboard spawner, 3) Added file watching for live log streaming, 4) Added 12 unit tests covering detection, reading, and flag logic
14
+
15
+
**Approach:** Standard approach
16
+
17
+
---
18
+
19
+
## Key Decisions
20
+
21
+
### Check workers.json for external workers to set isSpawned flag
22
+
-**Chose:** Check workers.json for external workers to set isSpawned flag
23
+
-**Reasoning:** Dashboard spawner only tracks workers it spawned. External spawners (agentswarm, SDK) write to workers.json with logFile paths. By checking workers.json, we can identify these and show the log button.
24
+
25
+
### Read logs from external worker log files with file watching
26
+
-**Chose:** Read logs from external worker log files with file watching
27
+
-**Reasoning:** External workers have log files in worker-logs/ directory. Instead of saying PTY output not available, read from these files and watch for changes to stream live updates.
28
+
29
+
---
30
+
31
+
## Chapters
32
+
33
+
### 1. Work
34
+
*Agent: default*
35
+
36
+
- Check workers.json for external workers to set isSpawned flag: Check workers.json for external workers to set isSpawned flag
37
+
- Read logs from external worker log files with file watching: Read logs from external worker log files with file watching
0 commit comments