Skip to content

fix(profile): read profile config.yaml as UTF-8 - #8447

Closed
Tianworld wants to merge 1 commit into
NousResearch:mainfrom
Tianworld:fix/profiles-read-config-utf8
Closed

fix(profile): read profile config.yaml as UTF-8#8447
Tianworld wants to merge 1 commit into
NousResearch:mainfrom
Tianworld:fix/profiles-read-config-utf8

Conversation

@Tianworld

Copy link
Copy Markdown
Contributor

When listing or resolving profiles, model/provider are read from each profile config.yaml. Without explicit UTF-8, Windows used the ANSI code page and valid UTF-8 files could fail parsing; the code then returned (None, None) and the UI showed no model despite a correct config.

Made with Cursor

_read_config_model used locale default encoding; on Windows, UTF-8 YAML with non-ASCII in model names failed yaml.safe_load and returned (None, None), hiding the active model in profile listings.

Made-with: Cursor
@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard area/config Config system, migrations, profiles labels Apr 28, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Likely duplicate of #8438 — same profile config.yaml UTF-8 fix. Also subset of #15519.

@teknium1

Copy link
Copy Markdown
Contributor

Closing as already fixed on main.

Triage notes (high confidence):
hermes_cli/profiles.py:462 on main already opens profile config.yaml with encoding='utf-8'. Identical to PR #8438.

If you still see this on the latest version, please reopen with reproduction steps.

(Bulk-closed during a CLI triage sweep.)

@teknium1 teknium1 closed this May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config Config system, migrations, profiles comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants