load_cli_config() supports both string and dict formats for the model key (e.g. `model: "anthropic/claude-opus-4"`), but save_config_value() assumed all intermediate keys are dicts. When the config file used the string format, running `/model <name>` would crash with TypeError: 'str' object does not support item assignment. Add an isinstance check so non-dict values are replaced with a fresh dict before descending.
117 KiB
Executable File
117 KiB
Executable File