Repository navigation
Commit 0074d2f
committed
fix(context-engine): forward agent identity to deferred-maintenance task cleanup
The owner-scoped task APIs fail closed when they cannot resolve the
caller agent id, and a bare (non-agent-scoped) session key yields none
on its own. Resolve the agent identity from the session key (session-key
parse first, config roster only when a config is already in scope) and
forward it as callerAgentId on the cancel/supersede cleanup paths so
deferred-maintenance tasks always reach a terminal state instead of
silently no-op'ing. Closes the pre-existing bare-key cleanup gap; no
behavior change for agent-scoped session keys.1 parent bf94628 commit 0074d2f
2 files changed
Lines changed: 109 additions & 0 deletions
File tree
- src/agents/embedded-agent-runner
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1145 | 1145 | | |
1146 | 1146 | | |
1147 | 1147 | | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
1148 | 1222 | | |
1149 | 1223 | | |
1150 | 1224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
166 | 168 | | |
167 | 169 | | |
168 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
169 | 194 | | |
170 | 195 | | |
171 | 196 | | |
| |||
355 | 380 | | |
356 | 381 | | |
357 | 382 | | |
| 383 | + | |
358 | 384 | | |
359 | 385 | | |
360 | 386 | | |
| |||
547 | 573 | | |
548 | 574 | | |
549 | 575 | | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
550 | 580 | | |
551 | 581 | | |
552 | 582 | | |
| 583 | + | |
553 | 584 | | |
554 | 585 | | |
555 | 586 | | |
556 | 587 | | |
557 | 588 | | |
| 589 | + | |
558 | 590 | | |
559 | 591 | | |
560 | 592 | | |
| |||
611 | 643 | | |
612 | 644 | | |
613 | 645 | | |
| 646 | + | |
614 | 647 | | |
615 | 648 | | |
616 | 649 | | |
| 650 | + | |
617 | 651 | | |
618 | 652 | | |
619 | 653 | | |
620 | 654 | | |
621 | 655 | | |
| 656 | + | |
622 | 657 | | |
623 | 658 | | |
624 | 659 | | |
| |||
0 commit comments