Repository navigation
Commit 4e7b43f
committed
fix(opencode): a failed background subagent no longer pins its thread
An OpenCode background subagent whose own turn failed never reported back
to its parent, so the adapter kept the call live forever: the thread kept
showing "1 agent working in the background" and a Stop could not clear it,
because the roster is only emptied by the adapter that owns the call.
Settle every call attached to a failed background child with the failure,
so the provider thread's roster drops them and the thread stops showing an
agent that is gone.
Autonomously generated by opencode/minimax-m3.1-flash-free through the
OpenCode harness in T3 Code.1 parent a71a6c3 commit 4e7b43f
2 files changed
Lines changed: 65 additions & 0 deletions
File tree
- apps/server/src/orchestration-v2/Adapters
- packages/provider-opencode/src/server/v2
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1092 | 1092 | | |
1093 | 1093 | | |
1094 | 1094 | | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
1095 | 1142 | | |
1096 | 1143 | | |
1097 | 1144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
799 | 799 | | |
800 | 800 | | |
801 | 801 | | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
802 | 812 | | |
803 | 813 | | |
804 | 814 | | |
| |||
1556 | 1566 | | |
1557 | 1567 | | |
1558 | 1568 | | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
1559 | 1577 | | |
1560 | 1578 | | |
1561 | 1579 | | |
| |||
0 commit comments