Commit e035f24
committed
refactor: dedupe queued-message foreground backgrounding in TaskService
#3605 introduced two near-identical guard blocks that background registered
foreground waits when a tool-end message is already queued (one in the
workspace-turn wait path, one in the task-await path). Extract a single
private helper backgroundForegroundWaitIfQueued() shared by both sites.
Behavior-preserving: the helper folds in the requestingWorkspaceId truthiness
guard, which is always true at the workspace-turn site (asserted non-empty)
and already implied by shouldBackgroundOnQueuedMessage at the task-await site.1 parent 3d85cf9 commit e035f24
1 file changed
Lines changed: 28 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3806 | 3806 | | |
3807 | 3807 | | |
3808 | 3808 | | |
| 3809 | + | |
| 3810 | + | |
| 3811 | + | |
| 3812 | + | |
| 3813 | + | |
| 3814 | + | |
| 3815 | + | |
| 3816 | + | |
| 3817 | + | |
| 3818 | + | |
| 3819 | + | |
| 3820 | + | |
| 3821 | + | |
| 3822 | + | |
| 3823 | + | |
| 3824 | + | |
| 3825 | + | |
| 3826 | + | |
| 3827 | + | |
| 3828 | + | |
3809 | 3829 | | |
3810 | 3830 | | |
3811 | 3831 | | |
| |||
4030 | 4050 | | |
4031 | 4051 | | |
4032 | 4052 | | |
4033 | | - | |
4034 | | - | |
4035 | | - | |
4036 | | - | |
4037 | | - | |
4038 | | - | |
| 4053 | + | |
| 4054 | + | |
| 4055 | + | |
| 4056 | + | |
4039 | 4057 | | |
4040 | 4058 | | |
4041 | 4059 | | |
| |||
4383 | 4401 | | |
4384 | 4402 | | |
4385 | 4403 | | |
4386 | | - | |
4387 | | - | |
4388 | | - | |
4389 | | - | |
4390 | | - | |
4391 | | - | |
4392 | | - | |
| 4404 | + | |
| 4405 | + | |
| 4406 | + | |
| 4407 | + | |
4393 | 4408 | | |
4394 | 4409 | | |
4395 | 4410 | | |
| |||
0 commit comments