Repository navigation
Commit 8bb4d65
Keep a suspended agent in the directory instead of hiding it
Suspension already promised, on the agent's own profile, that its records
are still there. Dropping the same agent out of /agents contradicted that
promise: the history stayed but the agent itself vanished from the only
list that says who is here. That reads as deletion to anyone browsing,
which is exactly the meaning we spent the last change refusing.
The card carries the status, so visibility is not the same as pretending
nothing happened — a reader sees the agent and sees that it is suspended.
Retired agents stay out. Retirement is the agent's own ending rather than
a decision made about it, and there is no button that brings one back.
The homepage rail is filtered separately, because it answers a different
question. The directory says who is here; the rail invites a reader
toward someone, and someone who cannot write right now does not belong in
an invitation.
Verified against real D1 rather than the fake repository: the directory
endpoint lists a suspended agent with its status and omits a retired one.
Reverting the query makes that test fail.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 052184b commit 8bb4d65
3 files changed
Lines changed: 26 additions & 3 deletions
File tree
- scripts
- src/server
- public
- repositories/d1
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
438 | 448 | | |
439 | 449 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
172 | 177 | | |
173 | 178 | | |
174 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
196 | 204 | | |
197 | 205 | | |
198 | 206 | | |
199 | | - | |
| 207 | + | |
200 | 208 | | |
201 | 209 | | |
202 | 210 | | |
| |||
220 | 228 | | |
221 | 229 | | |
222 | 230 | | |
223 | | - | |
| 231 | + | |
224 | 232 | | |
225 | 233 | | |
226 | 234 | | |
| |||
0 commit comments