[PR #4227] [CLOSED] [TUI] canonicalize models in setup args #4962

Closed
opened 2026-11-07 16:31:38 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/4227
Author: @Cyneric
Created: 10/26/2026
Status: ❌ Closed

Base: main ← Head: issue-4209-model-casing


📝 Commits (1)

  • 302aa17 [TUI] canonicalize models in setup args

📊 Changes

2 files changed (+13 additions, -0 deletions)

View changed files

📝 strata_cli/launch/runner.py (+4 -0)
📝 tests/terminal/test_launch.py (+9 -0)

📄 Description

Problem and result

Saved presets store model tags in lowercase, but setup.py accepts case-sensitive canonical model names. When a preset triggers setup again, setup rejects a known model such as iq3_xxs. This change resolves known names through the catalog before building setup arguments; unknown and legacy names remain unchanged.

Fixes #4209.

Approach

Use Catalog.resolve() in Runner.setup_args() and preserve the original family/model if resolution raises ValueError. Add a CPU-only regression test for lowercase Qwen, Gyro, and an unknown legacy name. This does not change the separate model-folder lookup issue #3996.

Validation

  • Passed: uv run --with pytest --with pyyaml --with psutil --with rich --with textual --with jinja2 python -m pytest tests/terminal/test_launch.py -q — 114 passed, 1 skipped.
  • Passed: git diff --check.
  • Failed: uv run --with-requirements requirements.txt --with-requirements requirements-monitor.txt --with pytest python -m pytest tests/terminal -q — 1,706 passed, 62 skipped, 341 subtests passed, 24 failed. Failures were in unrelated suite areas: Windows symlink privileges, unavailable bash/WSL and llama.cpp bundle, process/lifecycle checks, and two TUI assertions. No failure was in the model-casing regression or est_launch.py run above.

Limits

No live model setup/download was run. The full-suite failures are environment-dependent and have not been diagnosed or verified against a baseline; they are reported, not attributed to this change.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/4227 **Author:** [@Cyneric](https://github.com/Cyneric) **Created:** 10/26/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `issue-4209-model-casing` --- ### 📝 Commits (1) - [`302aa17`](https://github.com/Niko1221/Strata/commit/302aa17714aa5aae9adea9ce22cb2770bd5cff1c) [TUI] canonicalize models in setup args ### 📊 Changes **2 files changed** (+13 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `strata_cli/launch/runner.py` (+4 -0) 📝 `tests/terminal/test_launch.py` (+9 -0) </details> ### 📄 Description ## Problem and result Saved presets store model tags in lowercase, but setup.py accepts case-sensitive canonical model names. When a preset triggers setup again, setup rejects a known model such as iq3_xxs. This change resolves known names through the catalog before building setup arguments; unknown and legacy names remain unchanged. Fixes #4209. ## Approach Use Catalog.resolve() in Runner.setup_args() and preserve the original family/model if resolution raises ValueError. Add a CPU-only regression test for lowercase Qwen, Gyro, and an unknown legacy name. This does not change the separate model-folder lookup issue #3996. ## Validation - Passed: uv run --with pytest --with pyyaml --with psutil --with rich --with textual --with jinja2 python -m pytest tests/terminal/test_launch.py -q — 114 passed, 1 skipped. - Passed: git diff --check. - Failed: uv run --with-requirements requirements.txt --with-requirements requirements-monitor.txt --with pytest python -m pytest tests/terminal -q — 1,706 passed, 62 skipped, 341 subtests passed, 24 failed. Failures were in unrelated suite areas: Windows symlink privileges, unavailable bash/WSL and llama.cpp bundle, process/lifecycle checks, and two TUI assertions. No failure was in the model-casing regression or est_launch.py run above. ## Limits No live model setup/download was run. The full-suite failures are environment-dependent and have not been diagnosed or verified against a baseline; they are reported, not attributed to this change. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:31:38 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4962
No description provided.