Skip to content

fix: surface config save errors instead of silently swallowing them - #89

Merged
steve-calvert-glean merged 1 commit into
mainfrom
fix-config-save-errors
Apr 12, 2026
Merged

fix: surface config save errors instead of silently swallowing them#89
steve-calvert-glean merged 1 commit into
mainfrom
fix-config-save-errors

Conversation

@steve-calvert-glean

Copy link
Copy Markdown
Collaborator

Summary

  • SaveConfig() previously only returned an error when both keyring and file writes failed — now logs independently when one backend fails
  • AddTurn() and AppendTurn() now return save errors instead of silently logging them
  • Callers in model.go and commands.go handle the new error returns

Test plan

  • Existing config and session tests pass
  • mise run test:all passes (452 tests, lint clean, binary builds)

@steve-calvert-glean
steve-calvert-glean requested a review from a team as a code owner April 11, 2026 21:03
@steve-calvert-glean steve-calvert-glean added the bug Something isn't working label Apr 12, 2026
SaveConfig() previously only returned an error when both keyring and
file writes failed. Now logs independently when one backend fails.
Also fixes AddTurn()/AppendTurn() to return save errors instead of
silently logging them.
@steve-calvert-glean
steve-calvert-glean merged commit 8a11305 into main Apr 12, 2026
7 checks passed
@steve-calvert-glean
steve-calvert-glean deleted the fix-config-save-errors branch April 12, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants