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 broker session read paths and agent listing errors"
6
+
},
7
+
"status": "completed",
8
+
"startedAt": "2026-05-19T12:37:18.367Z",
9
+
"completedAt": "2026-05-19T12:48:50.116Z",
10
+
"agents": [
11
+
{
12
+
"name": "default",
13
+
"role": "lead",
14
+
"joinedAt": "2026-05-19T12:44:57.363Z"
15
+
}
16
+
],
17
+
"chapters": [
18
+
{
19
+
"id": "chap_fxwoou59eukx",
20
+
"title": "Work",
21
+
"agentName": "default",
22
+
"startedAt": "2026-05-19T12:44:57.363Z",
23
+
"endedAt": "2026-05-19T12:48:50.116Z",
24
+
"events": [
25
+
{
26
+
"ts": 1779194697364,
27
+
"type": "decision",
28
+
"content": "Resolved CLI read surfaces through the project broker connection file: Resolved CLI read surfaces through the project broker connection file",
29
+
"raw": {
30
+
"question": "Resolved CLI read surfaces through the project broker connection file",
31
+
"chosen": "Resolved CLI read surfaces through the project broker connection file",
32
+
"alternatives": [],
33
+
"reasoning": "status already reads the project .agent-relay/connection.json; passing that path explicitly prevents AGENT_RELAY_STATE_DIR from redirecting who/agents/history/replies to a stale broker"
34
+
},
35
+
"significance": "high"
36
+
}
37
+
]
38
+
}
39
+
],
40
+
"retrospective": {
41
+
"summary": "Fixed broker read surfaces to use the project broker connection and report agent-list query failures instead of empty lists",
Fixed broker read surfaces to use the project broker connection and report agent-list query failures instead of empty lists
13
+
14
+
**Approach:** Standard approach
15
+
16
+
---
17
+
18
+
## Key Decisions
19
+
20
+
### Resolved CLI read surfaces through the project broker connection file
21
+
22
+
-**Chose:** Resolved CLI read surfaces through the project broker connection file
23
+
-**Reasoning:** status already reads the project .agent-relay/connection.json; passing that path explicitly prevents AGENT_RELAY_STATE_DIR from redirecting who/agents/history/replies to a stale broker
24
+
25
+
---
26
+
27
+
## Chapters
28
+
29
+
### 1. Work
30
+
31
+
_Agent: default_
32
+
33
+
- Resolved CLI read surfaces through the project broker connection file: Resolved CLI read surfaces through the project broker connection file
"content": "Recover half-started detached brokers by killing foreground CLI wrappers and unready broker PIDs before retrying: Recover half-started detached brokers by killing foreground CLI wrappers and unready broker PIDs before retrying",
29
+
"raw": {
30
+
"question": "Recover half-started detached brokers by killing foreground CLI wrappers and unready broker PIDs before retrying",
31
+
"chosen": "Recover half-started detached brokers by killing foreground CLI wrappers and unready broker PIDs before retrying",
32
+
"alternatives": [],
33
+
"reasoning": "The failure mode leaves a live agent-relay up --foreground process without usable connection metadata; scanning only agent-relay-broker misses that wrapper, so up/down --force must reap both wrapper and broker PID candidates."
34
+
},
35
+
"significance": "high"
36
+
}
37
+
]
38
+
}
39
+
],
40
+
"retrospective": {
41
+
"summary": "Added deterministic recovery for detached broker half-starts by reaping unready broker PIDs and metadata-less foreground wrappers before restart, and by cleaning failed detached children on readiness timeout.",
Added deterministic recovery for detached broker half-starts by reaping unready broker PIDs and metadata-less foreground wrappers before restart, and by cleaning failed detached children on readiness timeout.
13
+
14
+
**Approach:** Standard approach
15
+
16
+
---
17
+
18
+
## Key Decisions
19
+
20
+
### Recover half-started detached brokers by killing foreground CLI wrappers and unready broker PIDs before retrying
21
+
22
+
-**Chose:** Recover half-started detached brokers by killing foreground CLI wrappers and unready broker PIDs before retrying
23
+
-**Reasoning:** The failure mode leaves a live agent-relay up --foreground process without usable connection metadata; scanning only agent-relay-broker misses that wrapper, so up/down --force must reap both wrapper and broker PID candidates.
24
+
25
+
---
26
+
27
+
## Chapters
28
+
29
+
### 1. Work
30
+
31
+
_Agent: default_
32
+
33
+
- Recover half-started detached brokers by killing foreground CLI wrappers and unready broker PIDs before retrying: Recover half-started detached brokers by killing foreground CLI wrappers and unready broker PIDs before retrying
-`agent-relay up --no-dashboard` and `agent-relay down --force` now recover half-started brokers that stayed alive without readable connection metadata.
72
+
-`agent-relay who` and `agent-relay agents` now fail clearly when broker queries fail instead of printing an empty agent list.
73
+
-`agent-relay history` and `agent-relay replies` now resolve the project broker session even when `AGENT_RELAY_STATE_DIR` points elsewhere.
74
+
-`agent-relay doctor` now fails with an actionable diagnostic for half-started, stale-connection, and unresolved-API-key-template brokers instead of reporting "healthy".
71
75
- CLI readiness checks use the live VT grid and cursor position to avoid false ready states in alternate screens and menus.
72
76
-`agent-relay history --from <agent>` returns the newest messages after chronological sorting.
73
77
-`agent-relay replies --unread` prints nothing when there are no unread messages.
@@ -84,57 +88,74 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
84
88
## [6.2.6] - 2026-05-20
85
89
86
90
### Product Perspective
91
+
87
92
#### User-Impacting Fixes
93
+
88
94
- Flush UTF-8 decoder on normal pty_closed path
89
95
- Preserve split multi-byte UTF-8 in worker_stream (#922) (#922)
90
96
91
97
### Technical Perspective
98
+
92
99
#### Releases
100
+
93
101
- v6.2.6
94
102
95
103
---
96
104
97
105
## [6.2.5] - 2026-05-19
98
106
99
107
### Product Perspective
108
+
100
109
#### User-Impacting Fixes
110
+
101
111
- Handle write_pty frames in PTY worker (#920)
102
112
103
113
### Technical Perspective
114
+
104
115
#### Dependencies & Tooling
116
+
105
117
- Sync package-lock.json for next 15.5.18 bump
106
118
- Bump next from 15.5.14 to 15.5.18 in /web
107
119
108
120
#### Releases
121
+
109
122
- v6.2.5
110
123
111
124
---
112
125
113
126
## [6.2.4] - 2026-05-19
114
127
115
128
### Technical Perspective
129
+
116
130
#### Architecture & API Changes
131
+
117
132
- Use relaycast sdk 1.1 helpers
118
133
119
134
#### Releases
135
+
120
136
- v6.2.4
121
137
122
138
---
123
139
124
140
## [6.2.3] - 2026-05-19
125
141
126
142
### Product Perspective
143
+
127
144
#### User-Facing Features & Improvements
145
+
128
146
-**Align reported version with product release line** (#904)
129
147
130
148
#### User-Impacting Fixes
149
+
131
150
- Address coderabbit review on version handling
132
151
- Use next/link for docs navigation
133
152
- Pass idle threshold to spawned workers
134
153
- Address runtime review findings
135
154
136
155
### Technical Perspective
156
+
137
157
#### Architecture & API Changes
158
+
138
159
- Narrow public crate API
139
160
- Group relaycast broker integration
140
161
- Extract broker runtime event handlers
@@ -143,11 +164,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
0 commit comments