cli: fix following hints in channel status
Metadata
Current evaluation
Merged a fix for the CLI channel status command. The following logic previously ignored prior states, incorrectly marking all channels as closed. The update now correctly tracks state history to display accurate following status. Approved and passed CI.
Suggested action: —
No scores available.
Issue body
Following logic was not considering previous states so all channels
were marked as closed instead of as following.
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
- [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `./runtests.sh static`?
- [ ] Have you successfully run `./runtests.sh tests/unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged a fix for the CLI channel status command. The following logic previously ignored prior states, incorrectly marking all channels as closed. The update now correctly tracks state history to display accurate following status. Approved and passed CI. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged fix for CLI channel status logic that incorrectly marked all channels as closed by ignoring previous states. The update correctly identifies following channels based on historical state, resolving the display bug. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged fix for CLI channel status following logic. Corrects a bug where ignoring previous states incorrectly marked all channels as closed instead of following. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3143 cli: migrate close to use the new channel map | snapcraft | merged | Merged migration of the close CLI command to the new channel map. Fixed a bug where channels were incorrectly shown as open due to missing progressive release awareness. Simplified tests, added a TODO for upload logic, and passed CI checks. |