# fix\(insights\): report a stopped connection test as a timeout \(\#359\) · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/807e6cab38c0358d356b6d99ce48e13aca78be9b)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: 807e6cab38c0358d356b6d99ce48e13aca78be9b

Requested commit: 807e6cab38c0358d356b6d99ce48e13aca78be9b

Commit: 807e6cab38c0358d356b6d99ce48e13aca78be9b

Tree: aead6d40f859d293f2878f65bade6bfeeca7f613

Author: Simone

Committer: GitHub

## Message

```
fix(insights): report a stopped connection test as a timeout (#359)

A Test connection listing killed by the shell bound arrives with empty
stdout and exit code 124 or 137, but the settings page dropped the exit
code and modelsReply mapped the empty reply to "format". The user saw
"unexpected format" for a timeout. modelsReply now takes the exit code
and maps 124/137 to "timeout" like generationReply, and the settings
accept path forwards data["exit code"] using the controller's idiom.

Regression: tst_ai_insights modelsReply cases for exits 124/137/1, plus
a settings-harness test feeding exit 124 through the production accept
path. Both fail before (reason "format"), pass after.
```

## Parents

- [5e1eceded19dc908e2dcc46dbb53f9799ea1ecf1](https://git.cafe/lucenx/codexbar-plasma/commit/5e1eceded19dc908e2dcc46dbb53f9799ea1ecf1?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/807e6cab38c0358d356b6d99ce48e13aca78be9b?format=markdown)
