[PR #4606] [CLOSED] [GUI] Helper 64K window, chat layout, and the fork's 0.2.7 GUI work #5109

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/4606
Author: @xvcezrqpbxtpzblrt
Created: 10/29/2026
Status: ❌ Closed

Base: main ← Head: rb/027


📝 Commits (10+)

  • 9a4654e wip: rebase onto v0.2.7 (conflicts resolved; one #4218 row-seal test still failing)
  • c543025 fix: seal helper rows when a turn ends (#4218); rebase on v0.2.7 is green
  • 20935a0 fix: 0.2.7 rebase — engine loan release, subagent panel, proxy, durability, i18n
  • 21dd344 [Other] A tool call written as text did not run, and edits copied from memory failed
  • f4009f4 [GUI] Open the window maximized (or as it was left), and never reserve an empty preview column
  • f55ccd1 [GUI] The installer speaks the nine languages of the app
  • d4b536c [GUI] Show the models this computer already has, not a false setup screen
  • 41cbc85 [GUI] The thinking row shows live time and tokens, and counts only the thinking
  • e3ea0da [GUI] Report the engine's reasoning tokens and show them exactly when they arrive
  • 432af9a [GUI] The helper conversation: scroll by intent, a task card, tool lines, pinned modes, saved history

📊 Changes

113 files changed (+9956 additions, -1264 deletions)

View changed files

📝 apps/desktop/src-tauri/nsis/installer.nsi (+212 -15)
📝 apps/desktop/src-tauri/nsis/sidebar.bmp (+0 -0)
📝 apps/desktop/src-tauri/src/desktoplog.rs (+2 -1)
📝 apps/desktop/src-tauri/src/main.rs (+200 -7)
📝 apps/desktop/src-tauri/tauri.conf.json (+32 -6)
📝 apps/host/scripts/audit-ui.mjs (+110 -83)
📝 apps/host/server/agent/agent-bridge.mjs (+448 -15)
➕ apps/host/server/agent/agent-rows.mjs (+338 -0)
📝 apps/host/server/agent/children.mjs (+830 -24)
📝 apps/host/server/agent/events.mjs (+139 -7)
📝 apps/host/server/agent/harness-runtime.mjs (+10 -1)
📝 apps/host/server/agent/plugins/strata-context.mjs (+39 -9)
📝 apps/host/server/agent/plugins/strata-gate.mjs (+131 -17)
📝 apps/host/server/agent/preset.mjs (+5 -1)
📝 apps/host/server/agent/profile.mjs (+16 -1)
📝 apps/host/server/agent/turn-guard.mjs (+3 -0)
➕ apps/host/server/atomic-file.mjs (+174 -0)
📝 apps/host/server/chat-uploads.mjs (+5 -2)
📝 apps/host/server/cloudflared-install.mjs (+4 -1)
📝 apps/host/server/control-runtime.mjs (+4 -1)

...and 80 more files

📄 Description

This is the consolidated submission for the fork's 0.2.7 work. The 18 separate PRs are closed and point here, so the review has one place instead of nineteen overlapping branches. The branch is based on 5e8a4cca and carries:

  • Helper agents: a 64K working window measured through the existing context meter (strata-context). The session keeps its model route, because a route added later is rejected by every chat created before it (child LLM route ... is not allowed for this Session); the measured prompt is scaled by realWindow / 65536, so the Harness's 80% threshold is reached at 64K real tokens. Answers are capped at 19,660 tokens and the parent session is never scaled. The helper sheet has a task card, tool lines, pinned modes, queue and approval states, and opens a finished helper at the top.
  • Chat layout: answers are a document on the full 864px column (prose at 56ch, code/tables/pictures/file cards at the full width, the person's bubble right-aligned at 66ch). The composer's left edge lands on the answer column at 2560, 1440, 1024 and 800px. Metadata is on the 12px scale with 42px primary controls, hover and 2px focus rings.
  • Chat surface: the window opens maximized and restores where it was left; no white first frame; the preview column exists only when it holds something; reasoning tokens and time are shown; the models screen opens on what this computer already has; the installer speaks the app's nine languages.
  • Host and agent: the system proxy is followed and state survives a crash; an edit copies the exact text and says when it does not match; a tool call written as text is shown as not run; time-skip stop; helper rows are sealed when a turn ends (#4218).
  • Engine: the prompt loan is given back to the K/V for a 512K context, and the conversation cache is sized for one snapshot of the configured context.

Validation

Passed:

  • npm test in apps/host with the real Harness: 1317 tests, 1310 passed, 4 skipped.
  • npm run typecheck, npm run build, node scripts/audit-ui.mjs (clean).
  • Real Harness, 512K model, 6 rounds of ~35K characters: the helper compacted, its pressure after compaction was below 80K, and the next message was answered.
  • Manual, a 315,028-byte file read by a helper in 7 reads: it still returned the last line after the context compacted; the main chat re-read the file and confirmed it.
  • Manual, installed 0.2.7 build on Windows 11 (RTX 3080 Ti Laptop, 16GB, Swift IQ3_XXS, 512K): the window opens maximized at 2576x1408; a new chat answers; the helper sheet measured 844px for composer/task/messages and the person's bubble ended at 1695, the column's right edge.

Failed (known, not caused by this change):

  • agent-context.test.mjs: the Harness compaction case that still fails upstream.
  • chat-shell.test.mjs and model-directory.test.mjs: the tests cannot create a symlink on this Windows account (EPERM), so those two safety tests do not run here.

Not run:

  • macOS. The helper sheet's 18px right inset assumes the 14px scrollbar Chromium uses on Windows; overlay scrollbars would differ.

Limits

  • Hairline borders are 1.27:1 against the page, below the 3:1 non-text guideline. This is the app's existing line style and was not changed in one sheet only.
  • The upstream Harness compaction failure above remains.
  • A 64K helper keeps the last ~10K tokens verbatim and replaces older turns with a summary; the visible transcript stays, but the helper may forget early details.
  • The diff is large because this is the combined branch. If you would rather review it in pieces, say which area and I will split it; the closed PRs were those pieces.

🔄 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/4606 **Author:** [@xvcezrqpbxtpzblrt](https://github.com/xvcezrqpbxtpzblrt) **Created:** 10/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `rb/027` --- ### 📝 Commits (10+) - [`9a4654e`](https://github.com/Niko1221/Strata/commit/9a4654e73bc76c263a53dd7aeb4b34841fcadaa6) wip: rebase onto v0.2.7 (conflicts resolved; one #4218 row-seal test still failing) - [`c543025`](https://github.com/Niko1221/Strata/commit/c54302564a732b634a7735387ab03996f391b961) fix: seal helper rows when a turn ends (#4218); rebase on v0.2.7 is green - [`20935a0`](https://github.com/Niko1221/Strata/commit/20935a094dbdd613b5b0ace732539174d9cfa119) fix: 0.2.7 rebase — engine loan release, subagent panel, proxy, durability, i18n - [`21dd344`](https://github.com/Niko1221/Strata/commit/21dd344db1835d815fa4f2fa4e57e51768cb9603) [Other] A tool call written as text did not run, and edits copied from memory failed - [`f4009f4`](https://github.com/Niko1221/Strata/commit/f4009f4d90fd1fdf7460409faf03161e6e19c4c0) [GUI] Open the window maximized (or as it was left), and never reserve an empty preview column - [`f55ccd1`](https://github.com/Niko1221/Strata/commit/f55ccd137d2ffdedcd391a205e878c011b345a33) [GUI] The installer speaks the nine languages of the app - [`d4b536c`](https://github.com/Niko1221/Strata/commit/d4b536c963754657abc851419ddb5dc8a5f1aaba) [GUI] Show the models this computer already has, not a false setup screen - [`41cbc85`](https://github.com/Niko1221/Strata/commit/41cbc85fca89520e84376eeca9c6d5aeee23ed59) [GUI] The thinking row shows live time and tokens, and counts only the thinking - [`e3ea0da`](https://github.com/Niko1221/Strata/commit/e3ea0da51b3f7dd57ecddfd166fe580ad86d8379) [GUI] Report the engine's reasoning tokens and show them exactly when they arrive - [`432af9a`](https://github.com/Niko1221/Strata/commit/432af9a8a4def4c8c4c0feaf05d3a497780892b7) [GUI] The helper conversation: scroll by intent, a task card, tool lines, pinned modes, saved history ### 📊 Changes **113 files changed** (+9956 additions, -1264 deletions) <details> <summary>View changed files</summary> 📝 `apps/desktop/src-tauri/nsis/installer.nsi` (+212 -15) 📝 `apps/desktop/src-tauri/nsis/sidebar.bmp` (+0 -0) 📝 `apps/desktop/src-tauri/src/desktoplog.rs` (+2 -1) 📝 `apps/desktop/src-tauri/src/main.rs` (+200 -7) 📝 `apps/desktop/src-tauri/tauri.conf.json` (+32 -6) 📝 `apps/host/scripts/audit-ui.mjs` (+110 -83) 📝 `apps/host/server/agent/agent-bridge.mjs` (+448 -15) ➕ `apps/host/server/agent/agent-rows.mjs` (+338 -0) 📝 `apps/host/server/agent/children.mjs` (+830 -24) 📝 `apps/host/server/agent/events.mjs` (+139 -7) 📝 `apps/host/server/agent/harness-runtime.mjs` (+10 -1) 📝 `apps/host/server/agent/plugins/strata-context.mjs` (+39 -9) 📝 `apps/host/server/agent/plugins/strata-gate.mjs` (+131 -17) 📝 `apps/host/server/agent/preset.mjs` (+5 -1) 📝 `apps/host/server/agent/profile.mjs` (+16 -1) 📝 `apps/host/server/agent/turn-guard.mjs` (+3 -0) ➕ `apps/host/server/atomic-file.mjs` (+174 -0) 📝 `apps/host/server/chat-uploads.mjs` (+5 -2) 📝 `apps/host/server/cloudflared-install.mjs` (+4 -1) 📝 `apps/host/server/control-runtime.mjs` (+4 -1) _...and 80 more files_ </details> ### 📄 Description This is the consolidated submission for the fork's 0.2.7 work. The 18 separate PRs are closed and point here, so the review has one place instead of nineteen overlapping branches. The branch is based on `5e8a4cca` and carries: - **Helper agents**: a 64K working window measured through the existing context meter (`strata-context`). The session keeps its model route, because a route added later is rejected by every chat created before it (`child LLM route ... is not allowed for this Session`); the measured prompt is scaled by `realWindow / 65536`, so the Harness's 80% threshold is reached at 64K real tokens. Answers are capped at 19,660 tokens and the parent session is never scaled. The helper sheet has a task card, tool lines, pinned modes, queue and approval states, and opens a finished helper at the top. - **Chat layout**: answers are a document on the full 864px column (prose at 56ch, code/tables/pictures/file cards at the full width, the person's bubble right-aligned at 66ch). The composer's left edge lands on the answer column at 2560, 1440, 1024 and 800px. Metadata is on the 12px scale with 42px primary controls, hover and 2px focus rings. - **Chat surface**: the window opens maximized and restores where it was left; no white first frame; the preview column exists only when it holds something; reasoning tokens and time are shown; the models screen opens on what this computer already has; the installer speaks the app's nine languages. - **Host and agent**: the system proxy is followed and state survives a crash; an edit copies the exact text and says when it does not match; a tool call written as text is shown as not run; time-skip stop; helper rows are sealed when a turn ends (#4218). - **Engine**: the prompt loan is given back to the K/V for a 512K context, and the conversation cache is sized for one snapshot of the configured context. ## Validation Passed: - `npm test` in `apps/host` with the real Harness: 1317 tests, 1310 passed, 4 skipped. - `npm run typecheck`, `npm run build`, `node scripts/audit-ui.mjs` (clean). - Real Harness, 512K model, 6 rounds of ~35K characters: the helper compacted, its pressure after compaction was below 80K, and the next message was answered. - Manual, a 315,028-byte file read by a helper in 7 reads: it still returned the last line after the context compacted; the main chat re-read the file and confirmed it. - Manual, installed 0.2.7 build on Windows 11 (RTX 3080 Ti Laptop, 16GB, Swift IQ3_XXS, 512K): the window opens maximized at 2576x1408; a new chat answers; the helper sheet measured 844px for composer/task/messages and the person's bubble ended at 1695, the column's right edge. Failed (known, not caused by this change): - `agent-context.test.mjs`: the Harness compaction case that still fails upstream. - `chat-shell.test.mjs` and `model-directory.test.mjs`: the tests cannot create a symlink on this Windows account (`EPERM`), so those two safety tests do not run here. Not run: - macOS. The helper sheet's 18px right inset assumes the 14px scrollbar Chromium uses on Windows; overlay scrollbars would differ. ## Limits - Hairline borders are 1.27:1 against the page, below the 3:1 non-text guideline. This is the app's existing line style and was not changed in one sheet only. - The upstream Harness compaction failure above remains. - A 64K helper keeps the last ~10K tokens verbatim and replaces older turns with a summary; the visible transcript stays, but the helper may forget early details. - The diff is large because this is the combined branch. If you would rather review it in pieces, say which area and I will split it; the closed PRs were those pieces. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:32:46 +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#5109
No description provided.