Repository navigation
Commit 0146592
fix(server): commands a lost Codex app-server never finished no longer show as running
When the app-server dies or stops answering, the adapter now fails every
command, dynamic tool, and MCP app capture it still tracks — for active turns
and for settled turns with background work — before failing the event stream.
Previously the run failed but its command item and node stayed running, so the
composer kept a Running chip with a Stop button for work that no longer existed.
The terminalization is the same triplet the interrupt path already runs, so both
now go through one `terminalizeTrackedTurnWork` helper instead of repeating the
three calls (and the opaque persistent-tools flag) at each site.
The test that used a Codex exit to leave a stale command for Stop now asserts
that the exit itself fails the command.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 355acfd commit 0146592
2 files changed
Lines changed: 78 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2013 | 2013 | | |
2014 | 2014 | | |
2015 | 2015 | | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
2016 | 2033 | | |
2017 | 2034 | | |
2018 | 2035 | | |
| |||
2166 | 2183 | | |
2167 | 2184 | | |
2168 | 2185 | | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
2169 | 2193 | | |
2170 | 2194 | | |
2171 | 2195 | | |
| |||
5204 | 5228 | | |
5205 | 5229 | | |
5206 | 5230 | | |
5207 | | - | |
| 5231 | + | |
5208 | 5232 | | |
5209 | 5233 | | |
5210 | 5234 | | |
| |||
5266 | 5290 | | |
5267 | 5291 | | |
5268 | 5292 | | |
| 5293 | + | |
| 5294 | + | |
| 5295 | + | |
| 5296 | + | |
| 5297 | + | |
| 5298 | + | |
| 5299 | + | |
| 5300 | + | |
| 5301 | + | |
| 5302 | + | |
5269 | 5303 | | |
5270 | 5304 | | |
5271 | 5305 | | |
| |||
5279 | 5313 | | |
5280 | 5314 | | |
5281 | 5315 | | |
5282 | | - | |
5283 | | - | |
5284 | | - | |
5285 | | - | |
5286 | | - | |
5287 | | - | |
5288 | | - | |
5289 | | - | |
5290 | | - | |
5291 | | - | |
5292 | | - | |
5293 | | - | |
5294 | | - | |
5295 | | - | |
5296 | | - | |
| 5316 | + | |
5297 | 5317 | | |
5298 | 5318 | | |
5299 | 5319 | | |
5300 | 5320 | | |
5301 | 5321 | | |
5302 | 5322 | | |
5303 | | - | |
| 5323 | + | |
5304 | 5324 | | |
5305 | 5325 | | |
5306 | 5326 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3844 | 3844 | | |
3845 | 3845 | | |
3846 | 3846 | | |
| 3847 | + | |
| 3848 | + | |
| 3849 | + | |
| 3850 | + | |
| 3851 | + | |
| 3852 | + | |
| 3853 | + | |
| 3854 | + | |
| 3855 | + | |
| 3856 | + | |
| 3857 | + | |
| 3858 | + | |
| 3859 | + | |
| 3860 | + | |
| 3861 | + | |
| 3862 | + | |
| 3863 | + | |
| 3864 | + | |
| 3865 | + | |
| 3866 | + | |
| 3867 | + | |
| 3868 | + | |
| 3869 | + | |
| 3870 | + | |
| 3871 | + | |
| 3872 | + | |
3847 | 3873 | | |
3848 | 3874 | | |
3849 | 3875 | | |
| |||
6429 | 6455 | | |
6430 | 6456 | | |
6431 | 6457 | | |
| 6458 | + | |
| 6459 | + | |
| 6460 | + | |
| 6461 | + | |
| 6462 | + | |
| 6463 | + | |
| 6464 | + | |
| 6465 | + | |
| 6466 | + | |
| 6467 | + | |
| 6468 | + | |
| 6469 | + | |
| 6470 | + | |
6432 | 6471 | | |
6433 | 6472 | | |
6434 | 6473 | | |
6435 | 6474 | | |
6436 | 6475 | | |
| 6476 | + | |
6437 | 6477 | | |
6438 | 6478 | | |
6439 | 6479 | | |
| |||
7078 | 7118 | | |
7079 | 7119 | | |
7080 | 7120 | | |
7081 | | - | |
7082 | | - | |
7083 | | - | |
7084 | | - | |
7085 | | - | |
7086 | | - | |
7087 | | - | |
7088 | | - | |
7089 | | - | |
7090 | | - | |
7091 | | - | |
7092 | | - | |
7093 | | - | |
7094 | | - | |
| 7121 | + | |
7095 | 7122 | | |
7096 | 7123 | | |
7097 | 7124 | | |
| |||
0 commit comments