Skip to content

fix(chat): stop silently swallowing exceptions in load_session (#1906)#2176

Merged
mrveiss merged 2 commits intoDev_new_guifrom
fix/issue-1906
Mar 24, 2026
Merged

fix(chat): stop silently swallowing exceptions in load_session (#1906)#2176
mrveiss merged 2 commits intoDev_new_guifrom
fix/issue-1906

Conversation

@mrveiss
Copy link
Owner

@mrveiss mrveiss commented Mar 23, 2026

Summary

Test plan

  • Verify exceptions propagate when session file is unreadable
  • Verify missing session still returns [] without raising
  • Run existing chat history tests

🤖 Generated with Claude Code

Remove bare except-all blocks from SessionMixin.load_session and
ChatHistoryManager.load_session. FileNotFoundError, PermissionError,
and ValueError now propagate to callers which already have proper
handlers (added in #1797).
@github-actions
Copy link

github-actions bot commented Mar 23, 2026

✅ SSOT Configuration Compliance: Passing

🎉 No hardcoded values detected that have SSOT config equivalents!

- Remove inaccurate FileNotFoundError from session.py docstring
- Add exception handling to get_messages and get_session_message_count
  which were unprotected callers of load_session
@mrveiss mrveiss merged commit 287066a into Dev_new_gui Mar 24, 2026
2 of 3 checks passed
@mrveiss mrveiss deleted the fix/issue-1906 branch March 24, 2026 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant