Skip to content

fix(cli): persist --global through model picker#28770

Open
Torch4084 wants to merge 1 commit into
NousResearch:mainfrom
Torch4084:fix/model-picker-global-persistence
Open

fix(cli): persist --global through model picker#28770
Torch4084 wants to merge 1 commit into
NousResearch:mainfrom
Torch4084:fix/model-picker-global-persistence

Conversation

@Torch4084

Copy link
Copy Markdown

Summary

The interactive /model picker dropped --global on the Enter-key path, so the selected model changed for the current session but was not written to config.yaml.

Closes #28034.

Changes

  • store the picker invocation's persist_global flag in _model_picker_state
  • let _handle_model_picker_selection() fall back to the stored flag when called from the Enter-key handler
  • thread persist_global through the picker open path in _handle_model_switch()
  • add focused regression tests for the stored flag and the final switch_model(..., is_global=True) call

Testing

  • uv run --extra dev pytest tests/hermes_cli/test_model_picker_global_persistence.py -q

@alt-glitch alt-glitch added type/bug Something isn't working comp/cli CLI entry point, hermes_cli/, setup wizard P2 Medium — degraded but workaround exists duplicate This issue or pull request already exists labels May 19, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Duplicate of #28044 — same fix for /model --global flag being dropped when the visual model picker opens. Both fix #28034.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/model --global does not persist when using the visual model picker

2 participants