aboutsummaryrefslogtreecommitdiffstats
path: root/initial-prompt.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-08-09 15:14:14 +0200
committerDanilo M. <danix@danix.xyz>2026-08-09 15:14:14 +0200
commit009496882033fa9f01e0faaffe9d6d797650b621 (patch)
tree7a20b0fa43818e482dd6467e75c195006f644a69 /initial-prompt.md
parent05184385699325efa830a18c4b05380df79bc12c (diff)
downloadllamachat-009496882033fa9f01e0faaffe9d6d797650b621.tar.gz
llamachat-009496882033fa9f01e0faaffe9d6d797650b621.zip
fix: survive malformed provider config at startup
Eight config shapes, all valid TOML, crashed config.load() before any window existed, so the user got a traceback on a terminal a desktop launch does not have. Skip malformed providers instead, keeping the local path working, and say on stderr which one was dropped and why. The guards are isinstance tests rather than a try/except because the shapes raise three different exception types, and the local entry is checked the same way: [[providers.local]] is a truthy list that raised during the bare base_url merge, before the loop could skip it. A config that cannot load at all now reports the file and exits rather than half-starting on defaults the user never configured. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0176tzAW6H1i2Kz8vm2XXVGV
Diffstat (limited to 'initial-prompt.md')
0 files changed, 0 insertions, 0 deletions