Commit 1d17da1
fix: GenerateTaskInsight on gossip auto-approve path
The task object passed to GenerateTaskInsight had stale status='submitted'
because it was fetched before ApproveTask(). Re-fetch after approve so the
insight check (status=='approved') passes.
Also adds GenerateTaskInsight call to autoApproveSimpleTask — previously
only the HTTP approve handler generated insights, missing all simple-mode
tasks that auto-approve via gossip.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 031aefc commit 1d17da1
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
363 | 368 | | |
364 | 369 | | |
365 | 370 | | |
| |||
0 commit comments