Commit b5fc0de
committed
feat(claude): read task depth, background flag, and ambient from the SDK
Bump @anthropic-ai/claude-agent-sdk to 0.3.247 and use what it now
reports about tasks.
task.started carries isBackgrounded, spawnDepth, and ambient. A spawned
agent's depth reaches its roster row through subagent metadata, so nested
agents get a real tree depth. Ambient housekeeping (live-update watchers
and the like) never counts as pending background work: it is flagged on
its edges and skipped in snapshot counts, so it cannot hold a thread in
"Background" or "Waiting". The session also declares perTaskStopAffordance,
so Stop ends the current turn and leaves background agents running; they
are stopped one at a time from the Agents tab.1 parent dac7599 commit b5fc0de
7 files changed
Lines changed: 179 additions & 65 deletions
File tree
- apps/server/src
- orchestration/Layers
- provider/Layers
- packages/contracts/src
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1042 | 1042 | | |
1043 | 1043 | | |
1044 | 1044 | | |
| 1045 | + | |
| 1046 | + | |
1045 | 1047 | | |
1046 | 1048 | | |
1047 | 1049 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2614 | 2614 | | |
2615 | 2615 | | |
2616 | 2616 | | |
2617 | | - | |
| 2617 | + | |
| 2618 | + | |
| 2619 | + | |
| 2620 | + | |
| 2621 | + | |
2618 | 2622 | | |
2619 | 2623 | | |
2620 | 2624 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3354 | 3354 | | |
3355 | 3355 | | |
3356 | 3356 | | |
| 3357 | + | |
3357 | 3358 | | |
3358 | 3359 | | |
3359 | 3360 | | |
3360 | 3361 | | |
| 3362 | + | |
| 3363 | + | |
| 3364 | + | |
| 3365 | + | |
| 3366 | + | |
| 3367 | + | |
| 3368 | + | |
| 3369 | + | |
| 3370 | + | |
| 3371 | + | |
| 3372 | + | |
| 3373 | + | |
| 3374 | + | |
| 3375 | + | |
| 3376 | + | |
| 3377 | + | |
| 3378 | + | |
| 3379 | + | |
| 3380 | + | |
| 3381 | + | |
| 3382 | + | |
| 3383 | + | |
| 3384 | + | |
| 3385 | + | |
| 3386 | + | |
| 3387 | + | |
| 3388 | + | |
| 3389 | + | |
3361 | 3390 | | |
3362 | 3391 | | |
3363 | 3392 | | |
| |||
3394 | 3423 | | |
3395 | 3424 | | |
3396 | 3425 | | |
| 3426 | + | |
| 3427 | + | |
| 3428 | + | |
| 3429 | + | |
| 3430 | + | |
| 3431 | + | |
| 3432 | + | |
| 3433 | + | |
| 3434 | + | |
| 3435 | + | |
| 3436 | + | |
| 3437 | + | |
| 3438 | + | |
| 3439 | + | |
| 3440 | + | |
| 3441 | + | |
| 3442 | + | |
| 3443 | + | |
| 3444 | + | |
| 3445 | + | |
| 3446 | + | |
| 3447 | + | |
| 3448 | + | |
| 3449 | + | |
| 3450 | + | |
| 3451 | + | |
| 3452 | + | |
| 3453 | + | |
3397 | 3454 | | |
3398 | 3455 | | |
3399 | 3456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
331 | 334 | | |
332 | 335 | | |
333 | 336 | | |
| |||
4028 | 4031 | | |
4029 | 4032 | | |
4030 | 4033 | | |
| 4034 | + | |
| 4035 | + | |
| 4036 | + | |
4031 | 4037 | | |
4032 | 4038 | | |
4033 | 4039 | | |
| |||
4042 | 4048 | | |
4043 | 4049 | | |
4044 | 4050 | | |
| 4051 | + | |
4045 | 4052 | | |
4046 | 4053 | | |
4047 | 4054 | | |
| |||
4064 | 4071 | | |
4065 | 4072 | | |
4066 | 4073 | | |
4067 | | - | |
| 4074 | + | |
| 4075 | + | |
| 4076 | + | |
| 4077 | + | |
| 4078 | + | |
| 4079 | + | |
| 4080 | + | |
4068 | 4081 | | |
4069 | 4082 | | |
4070 | 4083 | | |
| |||
4120 | 4133 | | |
4121 | 4134 | | |
4122 | 4135 | | |
4123 | | - | |
| 4136 | + | |
| 4137 | + | |
| 4138 | + | |
4124 | 4139 | | |
4125 | 4140 | | |
4126 | 4141 | | |
| |||
5108 | 5123 | | |
5109 | 5124 | | |
5110 | 5125 | | |
| 5126 | + | |
5111 | 5127 | | |
5112 | 5128 | | |
5113 | 5129 | | |
| |||
5117 | 5133 | | |
5118 | 5134 | | |
5119 | 5135 | | |
| 5136 | + | |
5120 | 5137 | | |
5121 | 5138 | | |
5122 | 5139 | | |
| |||
5136 | 5153 | | |
5137 | 5154 | | |
5138 | 5155 | | |
| 5156 | + | |
| 5157 | + | |
| 5158 | + | |
| 5159 | + | |
| 5160 | + | |
| 5161 | + | |
| 5162 | + | |
5139 | 5163 | | |
5140 | 5164 | | |
5141 | 5165 | | |
| |||
5145 | 5169 | | |
5146 | 5170 | | |
5147 | 5171 | | |
| 5172 | + | |
| 5173 | + | |
| 5174 | + | |
5148 | 5175 | | |
5149 | 5176 | | |
5150 | 5177 | | |
| 5178 | + | |
| 5179 | + | |
| 5180 | + | |
| 5181 | + | |
| 5182 | + | |
5151 | 5183 | | |
5152 | 5184 | | |
5153 | 5185 | | |
| |||
6474 | 6506 | | |
6475 | 6507 | | |
6476 | 6508 | | |
| 6509 | + | |
| 6510 | + | |
| 6511 | + | |
| 6512 | + | |
6477 | 6513 | | |
6478 | 6514 | | |
6479 | 6515 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
353 | 356 | | |
354 | 357 | | |
355 | 358 | | |
| |||
604 | 607 | | |
605 | 608 | | |
606 | 609 | | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
607 | 619 | | |
608 | 620 | | |
609 | 621 | | |
| |||
615 | 627 | | |
616 | 628 | | |
617 | 629 | | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
618 | 633 | | |
619 | 634 | | |
620 | 635 | | |
| |||
0 commit comments