Fix CLI session import fallback model default#1386
Fix CLI session import fallback model default#1386trucuit wants to merge 1 commit intonesquena:masterfrom
Conversation
|
Thanks — this is a valid defensive fix. In Adding |
|
Released as part of v0.50.252 — thanks @trucuit! This PR was merged into the v0.50.252 release batch via #1387 alongside 5 other contributor fixes. The full CHANGELOG entry is at https://github.com/nesquena/hermes-webui/blob/master/CHANGELOG.md. Pre-release verification: 3507 pytest tests pass, full QA harness pass (20 structural + 11 browser API + 23 Agent Browser CDP), Opus mentor APPROVED with two non-blocking follow-ups applied during the release batch (force=True on agent redactor, debug-log on profile fallback). Closing this PR — the change is live on master. |
Fixes a crash in CLI session import by defaulting model to 'unknown' when metadata is missing.
This avoids UnboundLocalError during POST /api/session/import_cli and allows CLI sessions without metadata to import successfully.