Skip to content

fix: prevent config form select crash on invalid saved values#48

Open
saschabuehrle wants to merge 1 commit into
yusufcanb:mainfrom
saschabuehrle:fix/issue-41-config-form-default-option
Open

fix: prevent config form select crash on invalid saved values#48
saschabuehrle wants to merge 1 commit into
yusufcanb:mainfrom
saschabuehrle:fix/issue-41-config-form-default-option

Conversation

@saschabuehrle

Copy link
Copy Markdown

Fixes #41

The config form can start with saved values that are no longer valid (for example a model that is not installed anymore). In that state the select field starts with an invalid index and panics on key handling. This normalizes model/shell/style values to valid defaults before rendering and returns a clear error when no Ollama models are available.

Greetings, saschabuehrle

@sonarqubecloud

Copy link
Copy Markdown

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.

`tlm config" doesn't accept my cursor keys and crashes on enter (macOS arm64 15.3 and Windows 10 x64)

1 participant