# fix\(sessions\): invalidate snapshots when the command source changes \(\#222\) · lucenx/codexbar-plasma

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

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

Visibility: public

Requested revision: 04d6fe8636826705e7ab2aedd3df191370196829

Requested commit: 04d6fe8636826705e7ab2aedd3df191370196829

Commit: 04d6fe8636826705e7ab2aedd3df191370196829

Tree: 3e55eafdb9490f273ce9ab33b274160b4a372a60

Author: Simone

Committer: GitHub

## Message

```
fix(sessions): invalidate snapshots when the command source changes (#222)

* test(sessions): reproduce cross-source snapshot retention

* fix(sessions): clear snapshots from retired command sources

Invalidate completed session data and update metadata synchronously when the
configured executable changes. Retain same-source snapshots on failed scans.

The preceding test-only commit reproduces four native Qt failures, covering
hidden/visible source changes and failed/timed-out scans after a switch.
```

## Parents

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

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