[PR #3954] [CLOSED] [GUI] validate and use one run configuration snapshot #4851

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/3954
Author: @zapabob
Created: 10/24/2026
Status: ❌ Closed

Base: main ← Head: codex/fix-run-config-snapshot-20261024


📝 Commits (2)

  • c487c87 fix(gui): validate and use one run config snapshot
  • a57fa66 [GUI] merge latest main and test run configuration snapshot races

📊 Changes

4 files changed (+71 additions, -4 deletions)

View changed files

📝 apps/host/server/native-control.mjs (+3 -3)
📝 apps/host/server/run-config-check.mjs (+8 -0)
📝 apps/host/tests/native-settings-file.test.mjs (+45 -0)
📝 apps/host/tests/run-config-check.test.mjs (+15 -1)

📄 Description

Problem and result

The GUI native model-loading path parsed one file read but validated another, allowing the validated settings and the engine settings to differ if the file changed between reads. The load now validates and parses the same captured text. Existing validation errors, warnings and BOM handling are preserved.

Integrated upstream main 4b9e05a2a806a3fe24f7b2560d98626c37dade35, resolving the native-control conflict while retaining upstream DeepSeek Speed capabilities and engine-version guards. Added two deterministic file-change regression cases: valid-to-invalid still uses the validated captured settings; invalid-to-valid still refuses the captured invalid settings.

Validation

Tested tree: 93655a05c9ebf93739ec2d8d085fd53decc3ea3e (local integration commit a57fa66637dc358b8e5d77f848c56081aa8a973a). Linux x86_64, Node 24.22.1, npm 11.9.0.

Passed:

  • From apps/host: node --test tests/run-config-check.test.mjs tests/native-settings-file.test.mjs tests/native-control.test.mjs: 22 passed, 0 failed.
  • Both new file-change regression tests failed against unchanged main before the fix and passed after integration.
  • npm run build (host Web UI; chunk-size warning), npm run typecheck, and git diff <main> HEAD --check.

Failed:

  • npm test: 1015 passed, 3 failed, 104 skipped (1122 total). Unchanged same main: 1012 passed, the same 3 failed, 104 skipped (1119 total).
  • app-ui.test.mjs:108: browser-mode HTTP quit/listener check; networkInterfaces() returns a uv_interface_addresses error.
  • component-updates.test.mjs:315: older-host update completion expects done, receives error.
  • timeskip-real.test.mjs:98: cancellation does not satisfy the grandchild-process termination assertion.

Not run:

  • This revision on Windows or macOS; the original PR's historical Windows/20-test result is not a result for this revision.
  • Real GPU/model startup, real concurrent editor activity, packaged Control integration, desktop installer builds and real-Harness tests skipped by the environment.

Limits

The deterministic tests control the filesystem read boundary and use the existing simulated engine fixture. They do not establish real hardware correctness or other-OS runtime compatibility. This change binds validation and parsing for this model-loading path; it does not make other file operations transactional.

This body is a handoff draft, not a claim that the remote PR was updated. The integration could not be pushed because the GitHub integration denied repository writes with HTTP 403, and the CLI lacked GitHub authentication.


🔄 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/3954 **Author:** [@zapabob](https://github.com/zapabob) **Created:** 10/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `codex/fix-run-config-snapshot-20261024` --- ### 📝 Commits (2) - [`c487c87`](https://github.com/Niko1221/Strata/commit/c487c875d05075113965bc61d822b27179f70639) fix(gui): validate and use one run config snapshot - [`a57fa66`](https://github.com/Niko1221/Strata/commit/a57fa66637dc358b8e5d77f848c56081aa8a973a) [GUI] merge latest main and test run configuration snapshot races ### 📊 Changes **4 files changed** (+71 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `apps/host/server/native-control.mjs` (+3 -3) 📝 `apps/host/server/run-config-check.mjs` (+8 -0) 📝 `apps/host/tests/native-settings-file.test.mjs` (+45 -0) 📝 `apps/host/tests/run-config-check.test.mjs` (+15 -1) </details> ### 📄 Description ## Problem and result The GUI native model-loading path parsed one file read but validated another, allowing the validated settings and the engine settings to differ if the file changed between reads. The load now validates and parses the same captured text. Existing validation errors, warnings and BOM handling are preserved. Integrated upstream main `4b9e05a2a806a3fe24f7b2560d98626c37dade35`, resolving the native-control conflict while retaining upstream DeepSeek Speed capabilities and engine-version guards. Added two deterministic file-change regression cases: valid-to-invalid still uses the validated captured settings; invalid-to-valid still refuses the captured invalid settings. ## Validation Tested tree: `93655a05c9ebf93739ec2d8d085fd53decc3ea3e` (local integration commit `a57fa66637dc358b8e5d77f848c56081aa8a973a`). Linux x86_64, Node 24.22.1, npm 11.9.0. Passed: - From `apps/host`: `node --test tests/run-config-check.test.mjs tests/native-settings-file.test.mjs tests/native-control.test.mjs`: 22 passed, 0 failed. - Both new file-change regression tests failed against unchanged main before the fix and passed after integration. - `npm run build` (host Web UI; chunk-size warning), `npm run typecheck`, and `git diff <main> HEAD --check`. Failed: - `npm test`: 1015 passed, 3 failed, 104 skipped (1122 total). Unchanged same main: 1012 passed, the same 3 failed, 104 skipped (1119 total). - `app-ui.test.mjs:108`: browser-mode HTTP quit/listener check; `networkInterfaces()` returns a `uv_interface_addresses` error. - `component-updates.test.mjs:315`: older-host update completion expects `done`, receives `error`. - `timeskip-real.test.mjs:98`: cancellation does not satisfy the grandchild-process termination assertion. Not run: - This revision on Windows or macOS; the original PR's historical Windows/20-test result is not a result for this revision. - Real GPU/model startup, real concurrent editor activity, packaged Control integration, desktop installer builds and real-Harness tests skipped by the environment. ## Limits The deterministic tests control the filesystem read boundary and use the existing simulated engine fixture. They do not establish real hardware correctness or other-OS runtime compatibility. This change binds validation and parsing for this model-loading path; it does not make other file operations transactional. This body is a handoff draft, not a claim that the remote PR was updated. The integration could not be pushed because the GitHub integration denied repository writes with HTTP 403, and the CLI lacked GitHub authentication. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:30:51 +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#4851
No description provided.