[PR #5163] [CLOSED] [GUI] Strata Dev build: plan guidance, early summaries and plan resume (opt-in) #5329

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/5163
Author: @Hinogoja
Created: 11/3/2026
Status: ❌ Closed

Base: main ← Head: promote/features


📝 Commits (10+)

  • 008add7 Dev build: Strata Dev runs beside Live with its own name, ports (47832/8792/8081), data folders and no app updater; opt-in only, Live unchanged
  • bf06620 Dev build: plain config path in the badge (no ?\ prefix), and the badge fits the collapsed sidebar
  • ad6ef0e MTP check: verified.json is written only when a verdict changed, so checking a shared data folder (Strata Dev) leaves it as it was
  • 03700e2 Dev build: -ResourcesFromLive copies node and harness only; Control always comes from the repo (a copied older Control wrote the Dev engine's records into Live's procs folder)
  • 998d801 Dev build: UI slot registry with fixed element ids, Dev panel (extensions, inspector, logs, requests), backend hooks (JS and Python, fault boundary, /dev routes, on_tool_call plugin) and dev.config.json overrides; all only with STRATA_DEV=1, Live renders as before
  • c1e629b Dev build: skills as whole folders (dev/skills source, validator, versions with restore, per-chat choice, tools.json as command tools, zip import/export), dev/models overlays with profiles applied by Control, Dev models in the model menu, DeepSeek expert profile kept out of the shared pack; all only with STRATA_DEV=1
  • efeeab9 Dev build: llama.cpp runner starts the person's llama-server for a .gguf the Strata engine is not tuned for, saves it as an API connection, marks it "läuft über llama.cpp" in the model menu and stops it with the host; only with STRATA_DEV=1
  • c5e9800 Dev: check, promote and rollback scripts; chat rescue tools
  • fdd0e4e Dev: plain name placeholder in the dev-promote command description
  • 7a5c265 Dev: dev-check names known failures as hardware or flaky

📊 Changes

142 files changed (+8208 additions, -154 deletions)

View changed files

📝 apps/desktop/src-tauri/Cargo.toml (+4 -0)
📝 apps/desktop/src-tauri/nsis/installer.nsi (+16 -0)
➕ apps/desktop/src-tauri/src/devbuild.rs (+105 -0)
📝 apps/desktop/src-tauri/src/main.rs (+16 -1)
📝 apps/desktop/src-tauri/src/updater.rs (+5 -0)
➕ apps/desktop/src-tauri/tauri.dev-build.conf.json (+10 -0)
➕ apps/host/scripts/dev-validate.mjs (+95 -0)
📝 apps/host/scripts/dev.mjs (+3 -2)
➕ apps/host/scripts/plan-bench.mjs (+112 -0)
📝 apps/host/server/agent/agent-bridge.mjs (+83 -16)
📝 apps/host/server/agent/context-fit.mjs (+19 -0)
📝 apps/host/server/agent/events.mjs (+17 -1)
📝 apps/host/server/agent/harness-runtime.mjs (+3 -1)
📝 apps/host/server/agent/plan.mjs (+77 -12)
➕ apps/host/server/agent/plugins/strata-dev-hooks.mjs (+39 -0)
📝 apps/host/server/agent/profile.mjs (+26 -7)
📝 apps/host/server/agent/tools-settings.mjs (+4 -2)
📝 apps/host/server/catalog.mjs (+2 -1)
➕ apps/host/server/chat-overflow.mjs (+62 -0)
➕ apps/host/server/dev-api.mjs (+136 -0)

...and 80 more files

📄 Description

Problem and result

Adds a Dev build ("Strata Dev") that runs next to Live with its own name, ports and data folders. Everything is off unless STRATA_DEV=1 is set; Live starts as before. On top of that: plan guidance, earlier chat summaries (contextGuard), plan resume after a stopped step, shorter step messages.

none. Not agreed with a maintainer in an issue first. The scope is large; I can split it if you prefer.

Approach

Dev-only modules sit in separate files (dev-*.mjs, src/dev/). Core files only have small hooks that check STRATA_DEV. The engine (src, include, serve, sycl, metal) is not touched.

Validation

Passed:

  • npx tsc --noEmit in apps/host: clean
  • npm test in apps/host: 1339 passed, 0 failed, 5 skipped
  • npm run build (vite build): built

Failed:

  • python -m pytest tests/terminal: 98 failed, 26 errors at collection, 1593 passed. The same numbers appear on the branch before this change. At least part of it is a missing Python package (jinja2) on my machine. I did not look at the rest one by one.

Not run:

  • That Live without STRATA_DEV is byte-identical in the running app: only covered by the tests above, I did not start Live.
  • CUDA, HIP, SYCL, Metal builds: not touched, not built.

Limits

Large change (35 commits, 142 files). Dev features were tested on Windows only.


🔄 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/5163 **Author:** [@Hinogoja](https://github.com/Hinogoja) **Created:** 11/3/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `promote/features` --- ### 📝 Commits (10+) - [`008add7`](https://github.com/Niko1221/Strata/commit/008add72f17e1664664be44d4a3fd5400d89bd8e) Dev build: Strata Dev runs beside Live with its own name, ports (47832/8792/8081), data folders and no app updater; opt-in only, Live unchanged - [`bf06620`](https://github.com/Niko1221/Strata/commit/bf066207728937dabe4db420eb8781cedeeee8f5) Dev build: plain config path in the badge (no \?\ prefix), and the badge fits the collapsed sidebar - [`ad6ef0e`](https://github.com/Niko1221/Strata/commit/ad6ef0e0930321204225fba98e650c3c34d69d65) MTP check: verified.json is written only when a verdict changed, so checking a shared data folder (Strata Dev) leaves it as it was - [`03700e2`](https://github.com/Niko1221/Strata/commit/03700e2eb0946f06e558777bcc1f374d7d8d625c) Dev build: -ResourcesFromLive copies node and harness only; Control always comes from the repo (a copied older Control wrote the Dev engine's records into Live's procs folder) - [`998d801`](https://github.com/Niko1221/Strata/commit/998d801622b7889d4650cc74551bb1447acd9af3) Dev build: UI slot registry with fixed element ids, Dev panel (extensions, inspector, logs, requests), backend hooks (JS and Python, fault boundary, /dev routes, on_tool_call plugin) and dev.config.json overrides; all only with STRATA_DEV=1, Live renders as before - [`c1e629b`](https://github.com/Niko1221/Strata/commit/c1e629b3fc188eaacdc3b65befba7b864ca4cf08) Dev build: skills as whole folders (dev/skills source, validator, versions with restore, per-chat choice, tools.json as command tools, zip import/export), dev/models overlays with profiles applied by Control, Dev models in the model menu, DeepSeek expert profile kept out of the shared pack; all only with STRATA_DEV=1 - [`efeeab9`](https://github.com/Niko1221/Strata/commit/efeeab9fb72c9b2809b4ce5a5b70c940cc05eee9) Dev build: llama.cpp runner starts the person's llama-server for a .gguf the Strata engine is not tuned for, saves it as an API connection, marks it "läuft über llama.cpp" in the model menu and stops it with the host; only with STRATA_DEV=1 - [`c5e9800`](https://github.com/Niko1221/Strata/commit/c5e980040155d80f094284967ae3f4387eddf658) Dev: check, promote and rollback scripts; chat rescue tools - [`fdd0e4e`](https://github.com/Niko1221/Strata/commit/fdd0e4eb1dd33bf5dac7c91d71af458d51331e04) Dev: plain name placeholder in the dev-promote command description - [`7a5c265`](https://github.com/Niko1221/Strata/commit/7a5c26588c08da9060fbe752fdbf4fe7d3479487) Dev: dev-check names known failures as hardware or flaky ### 📊 Changes **142 files changed** (+8208 additions, -154 deletions) <details> <summary>View changed files</summary> 📝 `apps/desktop/src-tauri/Cargo.toml` (+4 -0) 📝 `apps/desktop/src-tauri/nsis/installer.nsi` (+16 -0) ➕ `apps/desktop/src-tauri/src/devbuild.rs` (+105 -0) 📝 `apps/desktop/src-tauri/src/main.rs` (+16 -1) 📝 `apps/desktop/src-tauri/src/updater.rs` (+5 -0) ➕ `apps/desktop/src-tauri/tauri.dev-build.conf.json` (+10 -0) ➕ `apps/host/scripts/dev-validate.mjs` (+95 -0) 📝 `apps/host/scripts/dev.mjs` (+3 -2) ➕ `apps/host/scripts/plan-bench.mjs` (+112 -0) 📝 `apps/host/server/agent/agent-bridge.mjs` (+83 -16) 📝 `apps/host/server/agent/context-fit.mjs` (+19 -0) 📝 `apps/host/server/agent/events.mjs` (+17 -1) 📝 `apps/host/server/agent/harness-runtime.mjs` (+3 -1) 📝 `apps/host/server/agent/plan.mjs` (+77 -12) ➕ `apps/host/server/agent/plugins/strata-dev-hooks.mjs` (+39 -0) 📝 `apps/host/server/agent/profile.mjs` (+26 -7) 📝 `apps/host/server/agent/tools-settings.mjs` (+4 -2) 📝 `apps/host/server/catalog.mjs` (+2 -1) ➕ `apps/host/server/chat-overflow.mjs` (+62 -0) ➕ `apps/host/server/dev-api.mjs` (+136 -0) _...and 80 more files_ </details> ### 📄 Description ## Problem and result Adds a Dev build ("Strata Dev") that runs next to Live with its own name, ports and data folders. Everything is off unless STRATA_DEV=1 is set; Live starts as before. On top of that: plan guidance, earlier chat summaries (contextGuard), plan resume after a stopped step, shorter step messages. ## Related discussion none. Not agreed with a maintainer in an issue first. The scope is large; I can split it if you prefer. ## Approach Dev-only modules sit in separate files (dev-*.mjs, src/dev/). Core files only have small hooks that check STRATA_DEV. The engine (src, include, serve, sycl, metal) is not touched. ## Validation **Passed:** - npx tsc --noEmit in apps/host: clean - npm test in apps/host: 1339 passed, 0 failed, 5 skipped - npm run build (vite build): built **Failed:** - python -m pytest tests/terminal: 98 failed, 26 errors at collection, 1593 passed. The same numbers appear on the branch before this change. At least part of it is a missing Python package (jinja2) on my machine. I did not look at the rest one by one. **Not run:** - That Live without STRATA_DEV is byte-identical in the running app: only covered by the tests above, I did not start Live. - CUDA, HIP, SYCL, Metal builds: not touched, not built. ## Limits Large change (35 commits, 142 files). Dev features were tested on Windows only. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:34:23 +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#5329
No description provided.