charmcraft logout doesn't tell you if you were logged out
Metadata
Current evaluation
Fixed in Charmcraft 1.5 by the craft-store migration: logout now distinguishes an already logged-out state; PR #565 was merged as 70ba8e28.
Resolution: closed resolved
Reason: The logout command now catches unavailable credentials and reports that the user is not logged in, while successful logout still exits normally. This behavior was delivered by PR #565 (commit 70ba8e28), matching the maintainer's confirmation that Charmcraft 1.5 has it.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Seen with 0.6.0:
```
$ charmcraft logout
Credentials cleared.
$ charmcraft logout
Credentials cleared.
```
It would be better if the second logout said:
```
$ charmcraft logout
You were not logged in.
```
Though it would still exit successfully.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed in Charmcraft 1.5 by the craft-store migration: logout now distinguishes an already logged-out state; PR #565 was merged as 70ba8e28. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed in Charmcraft 1.5 by the craft-store migration: logout reports when no credentials were cleared while still exiting successfully. PR #565 was merged as 70ba8e28. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Fixed in version 1.5 after migrating to craft-store. The logout command now correctly reports when a user is not logged in, while maintaining a successful exit code. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed by migrating to craft-store. Version 1.5+ now correctly indicates when already logged out, while maintaining a successful exit code. | |
| qwen/qwen3.6-35b-a3b | — | — | Resolved in version 1.5 following the craft-store migration. The logout command now correctly reports when a user is already logged out, while maintaining a successful exit code. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Resolved by migrating to craft-store. The logout command now correctly reports when already logged out, with the update available in version 1.5 and later. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/charmcraft#565
(confidence 98%)
The merged craft-store migration delivered the distinct already-logged-out message.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #759 charmcraft login produces an error | charmcraft | closed | Closed as superseded by #833, which improved the double-login error and recommended `charmcraft logout`; the follow-up was resolved by merged PR #916. | |
| #192 charmcraft login could list charms and statuses | charmcraft | closed | Enhancement request to have `charmcraft login` also list account charms/statuses was declined and closed; maintainer facundobatista argued login is rarely needed due to auto-login and should stay lightweight. |