# fix\(insights\): retire the connection test when the Ollama address changes \(\#348\) · lucenx/codexbar-plasma

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

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

Visibility: public

Requested revision: 05d9fa7355d646b2ada6596370e30064cac77d14

Requested commit: 05d9fa7355d646b2ada6596370e30064cac77d14

Commit: 05d9fa7355d646b2ada6596370e30064cac77d14

Tree: 8e5a426b57af3f3333a14d517ae3690699e5d676

Author: Simone

Committer: GitHub

## Message

```
fix(insights): retire the connection test when the Ollama address changes (#348)

Test connection in the AI Insights settings lists models at the Ollama
address it started with. Editing the address while it ran did not
retire it, so the late reply reported "Connection works" and filled
the model list for an address that was never tested; a finished result
also kept claiming success after the address was edited. A provider
change already retired the request.

An address edit now retires a running test and clears its result.

Test: tests/test_ai_insights_settings.py copies the page's
retire/run/report/accept functions and the endpoint handler into a
QtTest with stubbed processes; both endpoint scenarios fail on main.

Documentation: ai-insights.md (Test connection, verification list) and
development.md. No CHANGELOG entry: AI Insights is unreleased and its
Added entry still describes the behavior.


Claude-Session: https://claude.ai/code/session_01TvjnVJPgkwU6fxn8uL6N8c

Co-authored-by: Claude <noreply@anthropic.com>
```

## Parents

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

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