- Co-Authored-By
- Christopher David <chris@openagents.com>
Stop a delegated child's own subprocesses, and keep the fleet rows honest
Deploy story
What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.
Not deployed through the forge lane
No push, promotion, build, or deploy receipt references this commit (receipts are scanned over a bounded recent window). Changes shipped by full node replacement carry their proof in the release gate receipt instead.
Changed files
-
modified
packages/openagents-cli/src/cli.ts -
modified
packages/openagents-cli/src/coder-delegate.ts -
modified
packages/openagents-cli/src/coder-fleet.ts -
modified
packages/openagents-cli/src/coder-ui.ts -
modified
packages/openagents-cli/test/coder-delegate.test.ts -
modified
packages/openagents-cli/test/coder-ui.test.ts
Diff
6 files changed, +179 -10
packages/openagents-cli/src/cli.ts modified +16
@@ -1723,6 +1723,19 @@ const delegateCommand = Command.make(
| 1723 | 1723 |
|
| 1724 | 1724 |
|
| 1725 | 1725 |
|
| 1726 |
|
|
| 1727 |
|
|
| 1728 |
|
|
| 1729 |
|
|
| 1730 |
|
|
| 1731 |
|
|
| 1732 |
|
|
| 1733 |
|
|
| 1734 |
|
|
| 1735 |
|
|
| 1736 |
|
|
| 1737 |
|
|
| 1738 |
|
|
| 1726 | 1739 |
|
| 1727 | 1740 |
|
| 1728 | 1741 |
|
packages/openagents-cli/src/coder-delegate.ts modified +90 -2
@@ -29,7 +29,8 @@
| 29 | 29 |
|
| 30 | 30 |
|
| 31 | 31 |
|
| 32 |
|
|
| 32 |
|
|
| 33 |
|
|
| 33 | 34 |
|
| 34 | 35 |
|
| 35 | 36 |
|
@@ -248,6 +249,83 @@ export interface OpencodeHarnessOptions {
| 248 | 249 |
|
| 249 | 250 |
|
| 250 | 251 |
|
| 252 |
|
|
| 253 |
|
|
| 254 |
|
|
| 255 |
|
|
| 256 |
|
|
| 257 |
|
|
| 258 |
|
|
| 259 |
|
|
| 260 |
|
|
| 261 |
|
|
| 262 |
|
|
| 263 |
|
|
| 264 |
|
|
| 265 |
|
|
| 266 |
|
|
| 267 |
|
|
| 268 |
|
|
| 269 |
|
|
| 270 |
|
|
| 271 |
|
|
| 272 |
|
|
| 273 |
|
|
| 274 |
|
|
| 275 |
|
|
| 276 |
|
|
| 277 |
|
|
| 278 |
|
|
| 279 |
|
|
| 280 |
|
|
| 281 |
|
|
| 282 |
|
|
| 283 |
|
|
| 284 |
|
|
| 285 |
|
|
| 286 |
|
|
| 287 |
|
|
| 288 |
|
|
| 289 |
|
|
| 290 |
|
|
| 291 |
|
|
| 292 |
|
|
| 293 |
|
|
| 294 |
|
|
| 295 |
|
|
| 296 |
|
|
| 297 |
|
|
| 298 |
|
|
| 299 |
|
|
| 300 |
|
|
| 301 |
|
|
| 302 |
|
|
| 303 |
|
|
| 304 |
|
|
| 305 |
|
|
| 306 |
|
|
| 307 |
|
|
| 308 |
|
|
| 309 |
|
|
| 310 |
|
|
| 311 |
|
|
| 312 |
|
|
| 313 |
|
|
| 314 |
|
|
| 315 |
|
|
| 316 |
|
|
| 317 |
|
|
| 318 |
|
|
| 319 |
|
|
| 320 |
|
|
| 321 |
|
|
| 322 |
|
|
| 323 |
|
|
| 324 |
|
|
| 325 |
|
|
| 326 |
|
|
| 327 |
|
|
| 328 |
|
|
| 251 | 329 |
|
| 252 | 330 |
|
| 253 | 331 |
|
@@ -276,6 +354,11 @@ export class OpencodeHarness implements DelegateHarness {
| 276 | 354 |
|
| 277 | 355 |
|
| 278 | 356 |
|
| 357 |
|
|
| 358 |
|
|
| 359 |
|
|
| 360 |
|
|
| 361 |
|
|
| 279 | 362 |
|
| 280 | 363 |
|
| 281 | 364 |
|
@@ -294,7 +377,12 @@ export class OpencodeHarness implements DelegateHarness {
| 294 | 377 |
|
| 295 | 378 |
|
| 296 | 379 |
|
| 297 |
|
|
| 380 |
|
|
| 381 |
|
|
| 382 |
|
|
| 383 |
|
|
| 384 |
|
|
| 385 |
|
|
| 298 | 386 |
|
| 299 | 387 |
|
| 300 | 388 |
|
packages/openagents-cli/src/coder-fleet.ts modified +7 -2
@@ -102,8 +102,13 @@ export function taskActivity(task: CoderTask): string {
| 102 | 102 |
|
| 103 | 103 |
|
| 104 | 104 |
|
| 105 |
|
|
| 106 |
|
|
| 105 |
|
|
| 106 |
|
|
| 107 |
|
|
| 108 |
|
|
| 109 |
|
|
| 110 |
|
|
| 111 |
|
|
| 107 | 112 |
|
| 108 | 113 |
|
| 109 | 114 |
|
packages/openagents-cli/src/coder-ui.ts modified +18 -5
@@ -436,7 +436,17 @@ export function runCoderUi(session: CoderSession, options: CoderUiOptions): Prom
| 436 | 436 |
|
| 437 | 437 |
|
| 438 | 438 |
|
| 439 |
|
|
| 439 |
|
|
| 440 |
|
|
| 441 |
|
|
| 442 |
|
|
| 443 |
|
|
| 444 |
|
|
| 445 |
|
|
| 446 |
|
|
| 447 |
|
|
| 448 |
|
|
| 449 |
|
|
| 440 | 450 |
|
| 441 | 451 |
|
| 442 | 452 |
|
@@ -451,14 +461,17 @@ export function runCoderUi(session: CoderSession, options: CoderUiOptions): Prom
| 451 | 461 |
|
| 452 | 462 |
|
| 453 | 463 |
|
| 464 |
|
|
| 465 |
|
|
| 466 |
|
|
| 467 |
|
|
| 468 |
|
|
| 469 |
|
|
| 454 | 470 |
|
| 455 | 471 |
|
| 456 | 472 |
|
| 457 | 473 |
|
| 458 | 474 |
|
| 459 |
|
|
| 460 |
|
|
| 461 |
|
|
| 462 | 475 |
|
| 463 | 476 |
|
| 464 | 477 |
|
@@ -473,7 +486,7 @@ export function runCoderUi(session: CoderSession, options: CoderUiOptions): Prom
| 473 | 486 |
|
| 474 | 487 |
|
| 475 | 488 |
|
| 476 |
|
|
| 489 |
|
|
| 477 | 490 |
|
| 478 | 491 |
|
| 479 | 492 |
|
packages/openagents-cli/test/coder-delegate.test.ts modified +23 -1
@@ -325,7 +325,7 @@ describe("fleet rendering", () => {
| 325 | 325 |
|
| 326 | 326 |
|
| 327 | 327 |
|
| 328 |
|
|
| 328 |
|
|
| 329 | 329 |
|
| 330 | 330 |
|
| 331 | 331 |
|
@@ -337,6 +337,28 @@ describe("fleet rendering", () => {
| 337 | 337 |
|
| 338 | 338 |
|
| 339 | 339 |
|
| 340 |
|
|
| 341 |
|
|
| 342 |
|
|
| 343 |
|
|
| 344 |
|
|
| 345 |
|
|
| 346 |
|
|
| 347 |
|
|
| 348 |
|
|
| 349 |
|
|
| 350 |
|
|
| 351 |
|
|
| 352 |
|
|
| 353 |
|
|
| 354 |
|
|
| 355 |
|
|
| 356 |
|
|
| 357 |
|
|
| 358 |
|
|
| 359 |
|
|
| 360 |
|
|
| 361 |
|
|
| 340 | 362 |
|
| 341 | 363 |
|
| 342 | 364 |
|
packages/openagents-cli/test/coder-ui.test.ts modified +25
@@ -310,4 +310,29 @@ describe("runCoderUi", () => {
| 310 | 310 |
|
| 311 | 311 |
|
| 312 | 312 |
|
| 313 |
|
|
| 314 |
|
|
| 315 |
|
|
| 316 |
|
|
| 317 |
|
|
| 318 |
|
|
| 319 |
|
|
| 320 |
|
|
| 321 |
|
|
| 322 |
|
|
| 323 |
|
|
| 324 |
|
|
| 325 |
|
|
| 326 |
|
|
| 327 |
|
|
| 328 |
|
|
| 329 |
|
|
| 330 |
|
|
| 331 |
|
|
| 332 |
|
|
| 333 |
|
|
| 334 |
|
|
| 335 |
|
|
| 336 |
|
|
| 337 |
|
|
| 313 | 338 |
|