Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion hermes_cli/session_recovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,10 @@ def recover_session_database(
output_path=output_path,
work_dir=work_dir,
)
assert output is not None
if output is None:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a regression test that invokes this path under python -O with output_path=None and asserts SessionRecoverySafetyError; that directly protects the optimization-sensitive behavior this guard replaces.

raise SessionRecoverySafetyError(
"output_path is required for session recovery"
)
disk_space = _disk_space_preflight(source, work_root, output.parent)

temp_dir, snapshot_source, inspection = _snapshot_and_inspect(source, work_root)
Expand Down
Loading