Commit 909a296
committed
🤖 fix: incorporate linter changes and improvements to task service
- Add guardrail to prevent spawning tasks after agent_report
- Improve trunk branch detection for worktree runtimes (use parent's current branch)
- Add fallback report synthesis when agent_report is missing
- Add proper failure handling with postFailureToParent
- Add maybeResumeParentStream for auto-resuming parent after task completion
- Add hasActiveDescendantTasks check before resuming
- Add cleanupTaskSubtree for proper cleanup of task hierarchies
- Add hasPendingTaskToolCalls guard in workspaceService
- Add appendToHistoryAndEmit helper method
- Various robustness improvements from linter suggestions
Change-Id: I8a9c29a435b3bb96e0146628d55fab77fb3d3c91
Signed-off-by: Thomas Kosiewski <tk@coder.com>1 parent f5fd3d2 commit 909a296
File tree
6 files changed
+1406
-139
lines changed- src
- browser/utils/messages
- node/services
6 files changed
+1406
-139
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
106 | 117 | | |
107 | 118 | | |
108 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
1064 | 1065 | | |
1065 | 1066 | | |
1066 | 1067 | | |
| 1068 | + | |
| 1069 | + | |
1067 | 1070 | | |
1068 | 1071 | | |
1069 | 1072 | | |
| |||
1081 | 1084 | | |
1082 | 1085 | | |
1083 | 1086 | | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
1084 | 1098 | | |
1085 | 1099 | | |
1086 | 1100 | | |
| |||
1160 | 1174 | | |
1161 | 1175 | | |
1162 | 1176 | | |
1163 | | - | |
| 1177 | + | |
| 1178 | + | |
1164 | 1179 | | |
1165 | 1180 | | |
1166 | 1181 | | |
| |||
1246 | 1261 | | |
1247 | 1262 | | |
1248 | 1263 | | |
1249 | | - | |
| 1264 | + | |
1250 | 1265 | | |
1251 | 1266 | | |
1252 | 1267 | | |
| |||
1296 | 1311 | | |
1297 | 1312 | | |
1298 | 1313 | | |
1299 | | - | |
| 1314 | + | |
1300 | 1315 | | |
1301 | 1316 | | |
1302 | 1317 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
| 255 | + | |
255 | 256 | | |
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
| 260 | + | |
272 | 261 | | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
| 262 | + | |
280 | 263 | | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | 264 | | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
| 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 | + | |
295 | 302 | | |
296 | 303 | | |
297 | 304 | | |
| |||
0 commit comments