[GH-ISSUE #5532] [TUI] Engine update test start cannot resolve a retired Control path from staging (Windows HIP) #5503

Open
opened 2026-11-08 04:52:35 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @jerrydong1988 on GitHub (Nov 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5532

Area and environment

Desktop app on Windows 11 (build 26300), AMD Radeon 8060S (gfx1151), 128 GiB system RAM. Strata Desktop 0.2.12, Control 0.1.58, engine update from 0.1.56 to 0.1.58 (windows-x86_64-hip-rdna3). Model selected for the test start: Swift IQ3_S (swift-1.5-iq3_s).

This tracks the updater bug reported in #5492, which was closed without merging. This Windows HIP installation reproduces the same failure as the Windows CUDA installation in that PR.

Steps and observed result

  1. Start with a saved model config created under Control 0.1.53. Its cwd still names that version folder, and its --expert-profile still names the file under that folder.
  2. Update Control to 0.1.58. On this installation the 0.1.53 directory is gone, but the active Control has data\expert-profile.bin.
  3. In the desktop app, open Settings → About and update the engine. The updater selects this model, copies its config into the test-start directory and rejects engine 0.1.58. The active engine stays on 0.1.56.

The reason recorded in components\.updates\state.json was (user directory redacted):

ProfileError: run.json: %LOCALAPPDATA%\Strata\components\control\0.1.53\data\expert-profile.bin was removed by an update and no file of that name is in the current version; run setup again for this model

Why the test fails

With the failed test's saved run.json, Control 0.1.58's path resolver found the replacement for both cwd and --expert-profile under the normal components root. It reported both as unresolved when pointed at the updater's staging root. On main at 146df3c, default_test_start copies the paths from the saved config before it sets STRATA_COMPONENTS_DIR to the directory containing the candidate engine.

Expected: resolve retired Control paths against the installed Control while preparing the test config, then load and test the candidate engine from staging. The saved model config can stay untouched.

Workaround verified locally

After pointing cwd and both copies of --expert-profile in the saved config at the bundled Control, an engine-only retry with --force and the same Swift config passed the full one-token test and switched to 0.1.58. A separate request to the installed engine returned HTTP 200 and the correct answer (95 for 37 + 58).

Reproduction status: observed on the released Desktop and Control versions above. The retry verifies the configuration workaround. The proposed upstream patch was not installed on this machine.

Originally created by @jerrydong1988 on GitHub (Nov 7, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5532 ### Area and environment Desktop app on Windows 11 (build 26300), AMD Radeon 8060S (gfx1151), 128 GiB system RAM. Strata Desktop 0.2.12, Control 0.1.58, engine update from 0.1.56 to 0.1.58 (`windows-x86_64-hip-rdna3`). Model selected for the test start: Swift IQ3_S (`swift-1.5-iq3_s`). This tracks the updater bug reported in #5492, which was closed without merging. This Windows HIP installation reproduces the same failure as the Windows CUDA installation in that PR. ### Steps and observed result 1. Start with a saved model config created under Control 0.1.53. Its `cwd` still names that version folder, and its `--expert-profile` still names the file under that folder. 2. Update Control to 0.1.58. On this installation the 0.1.53 directory is gone, but the active Control has `data\expert-profile.bin`. 3. In the desktop app, open Settings → About and update the engine. The updater selects this model, copies its config into the test-start directory and rejects engine 0.1.58. The active engine stays on 0.1.56. The reason recorded in `components\.updates\state.json` was (user directory redacted): ```text ProfileError: run.json: %LOCALAPPDATA%\Strata\components\control\0.1.53\data\expert-profile.bin was removed by an update and no file of that name is in the current version; run setup again for this model ``` ### Why the test fails With the failed test's saved `run.json`, Control 0.1.58's path resolver found the replacement for both `cwd` and `--expert-profile` under the normal components root. It reported both as unresolved when pointed at the updater's staging root. On [main at 146df3c](https://github.com/Niko1221/Strata/blob/146df3c468739147f520ac3816de806f71232571/strata_control/updater.py#L998-L1021), `default_test_start` copies the paths from the saved config before it sets `STRATA_COMPONENTS_DIR` to the directory containing the candidate engine. **Expected:** resolve retired Control paths against the installed Control while preparing the test config, then load and test the candidate engine from staging. The saved model config can stay untouched. ### Workaround verified locally After pointing `cwd` and both copies of `--expert-profile` in the saved config at the bundled Control, an engine-only retry with `--force` and the same Swift config passed the full one-token test and switched to 0.1.58. A separate request to the installed engine returned HTTP 200 and the correct answer (`95` for `37 + 58`). **Reproduction status:** observed on the released Desktop and Control versions above. The retry verifies the configuration workaround. The proposed upstream patch was not installed on this machine.
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#5503
No description provided.