Commit 5f0c8f9
furiosa
fix(sling): default dispatched_by to human when role unknown
When running gt sling from rig root (e.g., ~/gt/gastown), the role
detection returns 'unknown' because the directory doesn't match any
specific agent pattern. This change provides sensible fallbacks:
- ActorString() returns the rig name when role is unknown but rig is known
- ActorString() returns 'human' when both role and rig are unknown
- detectActor() returns 'human' instead of 'unknown' on GetRole() failure
This enables human operators to sling work from the rig root without
having to cd into a specific agent directory first.
Fixes gt-spt3u1 parent 9a9974e commit 5f0c8f9
2 files changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
287 | 293 | | |
288 | 294 | | |
289 | 295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
265 | 268 | | |
266 | 269 | | |
267 | 270 | | |
268 | | - | |
| 271 | + | |
269 | 272 | | |
270 | 273 | | |
271 | 274 | | |
| |||
0 commit comments