[PR #3361] [CLOSED] [GUI] Scope Preparation Errors To The Selected Model #4589

Closed
opened 2026-11-07 15:37:40 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/3361
Author: @medking82
Created: 10/20/2026
Status: ❌ Closed

Base: main ← Head: codex/upstream-model-configuration-fixes


📝 Commits (2)

  • b910b70 [GUI] Scope Preparation Errors To Selected Model
  • 99bdafe [Docs] Record App0.2.2 model preparation validation

📊 Changes

6 files changed (+701 additions, -2 deletions)

View changed files

📝 apps/host/src/components/NativeModels.tsx (+6 -1)
📝 apps/host/tests/guided-setup-empty-catalog.test.mjs (+41 -1)
➕ docs/images/model-job-errors/after.png (+0 -0)
➕ docs/images/model-job-errors/before.png (+0 -0)
➕ docs/model-preparation-errors/README.md (+78 -0)
➕ docs/model-preparation-errors/validation-2026-10-22.json (+576 -0)

📄 Description

Problem and result

Switching to another model can leave the latest failed preparation job visible on the newly selected model. The Models page now shows only a load/install job belonging to the selected model. A real failure for that model remains visible and retryable.

None required for this focused UI fix.

Approach

Match the selected canonical model ID, or its short name together with source family, before using either the remembered job or latest job. Job records and prepared model files are unchanged.

The examples below render the actual component with anonymous fixtures. Hardware, paths and job state are simulated; they are not inference or performance evidence.

Before:
Unrelated model preparation error

After:
Selected model without an unrelated error

Validation

Windows x64, Node v24.12.0, measured 2026-10-22. Current head 99bdafe332e16330be250030afd82ca48383f966 adds documentation only; runtime and test inputs remain identical to the exact head below. Source-bound report and JSON receipt include full commands, dependency/input hashes, setup resolutions and limits.

Passed:

  • 43 passed, 0 failed, 0 skipped at exact runtime/test head b910b705fa24555c658f9b01e7ee443cf728b73c: node --test tests/guided-setup-empty-catalog.test.mjs (18) and node --test tests/model-picker.test.mjs tests/native-fit.test.mjs tests/languages-and-catalog.test.mjs tests/qa1-downloads.test.mjs tests/native-fb5.test.mjs (25), from apps/host. TypeScript checking and Vite production build passed on that PR source.
  • Cases keep stale/unrelated jobs off the selected card, match canonical IDs or family/name aliases, and retain a matching failure. Existing anonymous before/after component examples remain valid; they show synthetic state.
  • A separate App 0.2.2 combined scratch candidate, base 011c9e600a93bbc9fd451c563501b5831c32bbca plus #3361 and #3363 implementation patches, passed 68 unique checks, typecheck and Vite build. That is one shared result across both reports, not an extra result per PR or the source submitted individually. Compared installed Host source matches that unpatched base after CRLF normalization.
  • Source/evidence hashes, local links, sanitization and git diff --check passed. No product or test-source workaround was needed.

Failed:

  • Unpatched App 0.2.2 with the new regression fixtures produced 17 passes and 8 expected failures: four selected-model UI cases and four direct-API effort cases. Both implementation patches resolved all eight.
  • Initial scratch dependency layout and missing source-file setup failures were resolved and retained in the receipt. The blocked wider check was rerun once after restoring exact-base inputs; it passed. No unresolved check failure remains. Existing Vite advisory warnings remain nonfatal.

Not run:

Native App window, packaged installer, model download/preparation, live GPU/model or cloud-provider inference, and cross-platform execution. Component tests render actual React components; Host/Harness are real disposable processes with scripted model replies. The staged Harness is pinned at 571902028a75c64c1d767f4ae5fd099485f0ddf0 / 0.2.1-alpha.3 and includes the separate #3684 v2 packaging patch, explicitly recorded in the receipt; this PR does not submit that patch. Installed application files and production configuration were unchanged.

Limits

This prevents an unrelated job from being shown. It does not repair the original preparation failure or import arbitrary local GGUF files into the prepared library.


🔄 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/3361 **Author:** [@medking82](https://github.com/medking82) **Created:** 10/20/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `codex/upstream-model-configuration-fixes` --- ### 📝 Commits (2) - [`b910b70`](https://github.com/Niko1221/Strata/commit/b910b705fa24555c658f9b01e7ee443cf728b73c) [GUI] Scope Preparation Errors To Selected Model - [`99bdafe`](https://github.com/Niko1221/Strata/commit/99bdafe332e16330be250030afd82ca48383f966) [Docs] Record App0.2.2 model preparation validation ### 📊 Changes **6 files changed** (+701 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `apps/host/src/components/NativeModels.tsx` (+6 -1) 📝 `apps/host/tests/guided-setup-empty-catalog.test.mjs` (+41 -1) ➕ `docs/images/model-job-errors/after.png` (+0 -0) ➕ `docs/images/model-job-errors/before.png` (+0 -0) ➕ `docs/model-preparation-errors/README.md` (+78 -0) ➕ `docs/model-preparation-errors/validation-2026-10-22.json` (+576 -0) </details> ### 📄 Description ## Problem and result Switching to another model can leave the latest failed preparation job visible on the newly selected model. The Models page now shows only a load/install job belonging to the selected model. A real failure for that model remains visible and retryable. ## Related discussion None required for this focused UI fix. ## Approach Match the selected canonical model ID, or its short name together with source family, before using either the remembered job or latest job. Job records and prepared model files are unchanged. The examples below render the actual component with anonymous fixtures. Hardware, paths and job state are simulated; they are not inference or performance evidence. Before: ![Unrelated model preparation error](https://raw.githubusercontent.com/medking82/Strata/b910b705fa24555c658f9b01e7ee443cf728b73c/docs/images/model-job-errors/before.png) After: ![Selected model without an unrelated error](https://raw.githubusercontent.com/medking82/Strata/b910b705fa24555c658f9b01e7ee443cf728b73c/docs/images/model-job-errors/after.png) ## Validation Windows x64, Node v24.12.0, measured 2026-10-22. Current head `99bdafe332e16330be250030afd82ca48383f966` adds documentation only; runtime and test inputs remain identical to the exact head below. [Source-bound report](https://github.com/medking82/Strata/blob/99bdafe332e16330be250030afd82ca48383f966/docs/model-preparation-errors/README.md) and [JSON receipt](https://github.com/medking82/Strata/blob/99bdafe332e16330be250030afd82ca48383f966/docs/model-preparation-errors/validation-2026-10-22.json) include full commands, dependency/input hashes, setup resolutions and limits. **Passed:** - **43 passed, 0 failed, 0 skipped** at exact runtime/test head `b910b705fa24555c658f9b01e7ee443cf728b73c`: `node --test tests/guided-setup-empty-catalog.test.mjs` (18) and `node --test tests/model-picker.test.mjs tests/native-fit.test.mjs tests/languages-and-catalog.test.mjs tests/qa1-downloads.test.mjs tests/native-fb5.test.mjs` (25), from `apps/host`. TypeScript checking and Vite production build passed on that PR source. - Cases keep stale/unrelated jobs off the selected card, match canonical IDs or family/name aliases, and retain a matching failure. Existing anonymous before/after component examples remain valid; they show synthetic state. - A **separate App 0.2.2 combined scratch candidate**, base `011c9e600a93bbc9fd451c563501b5831c32bbca` plus #3361 and #3363 implementation patches, passed **68 unique checks**, typecheck and Vite build. That is one shared result across both reports, not an extra result per PR or the source submitted individually. Compared installed Host source matches that unpatched base after CRLF normalization. - Source/evidence hashes, local links, sanitization and `git diff --check` passed. No product or test-source workaround was needed. **Failed:** - Unpatched App 0.2.2 with the new regression fixtures produced 17 passes and **8 expected failures**: four selected-model UI cases and four direct-API effort cases. Both implementation patches resolved all eight. - Initial scratch dependency layout and missing source-file setup failures were resolved and retained in the receipt. The blocked wider check was rerun once after restoring exact-base inputs; it passed. No unresolved check failure remains. Existing Vite advisory warnings remain nonfatal. **Not run:** Native App window, packaged installer, model download/preparation, live GPU/model or cloud-provider inference, and cross-platform execution. Component tests render actual React components; Host/Harness are real disposable processes with scripted model replies. The staged Harness is pinned at `571902028a75c64c1d767f4ae5fd099485f0ddf0` / 0.2.1-alpha.3 and includes the separate #3684 v2 packaging patch, explicitly recorded in the receipt; this PR does not submit that patch. Installed application files and production configuration were unchanged. ## Limits This prevents an unrelated job from being shown. It does not repair the original preparation failure or import arbitrary local GGUF files into the prepared library. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:37:40 +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#4589
No description provided.