[PR #4847] [GUI] context compaction settings, and what a new chat starts with #5211

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/4847
Author: @vsp99h
Created: 10/31/2026
Status: 🔄 Open

Base: main ← Head: f-compaction-settings-and-chat-defaults


📝 Commits (4)

  • 5e2bb68 [GUI] make the compaction threshold configurable
  • 81ebf13 [GUI] stop the host growing memory for the life of the agent
  • 73bc887 [GUI] put the summarising point in Settings, not only in the environment
  • bee81e1 [GUI] let Settings say what a new chat starts with

📊 Changes

30 files changed (+706 additions, -31 deletions)

View changed files

📝 apps/host/server/agent/agent-bridge.mjs (+4 -3)
📝 apps/host/server/agent/harness-runtime.mjs (+13 -3)
📝 apps/host/server/agent/profile.mjs (+60 -5)
📝 apps/host/server/index.mjs (+53 -1)
📝 apps/host/server/store.mjs (+2 -0)
➕ apps/host/src/components/ChatDefaultsSetting.tsx (+21 -0)
➕ apps/host/src/components/CompactionSetting.tsx (+71 -0)
📝 apps/host/src/lib/store.ts (+51 -1)
📝 apps/host/src/locales/de.json (+6 -1)
📝 apps/host/src/locales/en.json (+6 -1)
📝 apps/host/src/locales/es.json (+6 -1)
📝 apps/host/src/locales/fix-de.json (+11 -1)
📝 apps/host/src/locales/fix-en.json (+11 -1)
📝 apps/host/src/locales/fix-es.json (+11 -1)
📝 apps/host/src/locales/fix-fr.json (+11 -1)
📝 apps/host/src/locales/fix-ja.json (+11 -1)
📝 apps/host/src/locales/fix-ko.json (+11 -1)
📝 apps/host/src/locales/fix-pt.json (+11 -1)
📝 apps/host/src/locales/fix-ru.json (+11 -1)
📝 apps/host/src/locales/fix-zh.json (+11 -1)

...and 10 more files

📄 Description

Four commits, two things a person can touch in Settings.

Summarize older messages (Settings -> General). The point where the assistant condenses the beginning of a chat was only an environment variable (STRATA_COMPACTION_...); now it is a choice in the UI, with the room kept free as an advanced line and the resulting token number spelled out for the model that is loaded. The threshold goes through the bridge and the profile instead of being fixed, and the host stops growing memory for the life of the agent.

New chats (Settings -> General). A new conversation used to take only the model from the previous one: its permission mode, its reasoning effort and its thinking limit fell back to whatever the composer happened to show. Now all three are set in one place and a new chat starts from them. The stored defaults are the very values a chat with no preference showed before, so nobody meets a behaviour change by accident; a stored value the composer cannot offer is dropped rather than left as a dead choice, and a conversation already started keeps its own.

Words: fx84-fx93 (compaction) and s9038-s9042 (new chats) in all nine catalogs, key order identical across them. fx83 keeps the wording main has now, since this branch was cut before it was reworded.

Checked on this machine (Windows, built Harness): typecheck clean; locale-gaps, languages-and-catalog, french-catalog, chat-defaults (4), agent-compaction-settings, agent-compaction-threshold and ui5-plan -- 30/30 green. The full suite was run on the branch this was split from: 1271 tests, 1263 pass, 3 failures all known Windows environment ones (two EPERM: symlink, one Get-Acl that cannot autoload here), 5 platform skips.

Deliberately NOT in this PR: the mid-turn comment (steering) that lives on the same working branch. It changes how a message typed while the assistant is working reaches the model, and it should be tried by hand in the app before it goes up for review.


🔄 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/4847 **Author:** [@vsp99h](https://github.com/vsp99h) **Created:** 10/31/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `f-compaction-settings-and-chat-defaults` --- ### 📝 Commits (4) - [`5e2bb68`](https://github.com/Niko1221/Strata/commit/5e2bb683a2884d404fd28c962a76d4481bae4223) [GUI] make the compaction threshold configurable - [`81ebf13`](https://github.com/Niko1221/Strata/commit/81ebf137f78b44bed42404b0cacd3a6a4189b21e) [GUI] stop the host growing memory for the life of the agent - [`73bc887`](https://github.com/Niko1221/Strata/commit/73bc8878b191d67dcf400c9359655c01db6729b8) [GUI] put the summarising point in Settings, not only in the environment - [`bee81e1`](https://github.com/Niko1221/Strata/commit/bee81e197138af3199227ad8175e3e03ab7fdad8) [GUI] let Settings say what a new chat starts with ### 📊 Changes **30 files changed** (+706 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `apps/host/server/agent/agent-bridge.mjs` (+4 -3) 📝 `apps/host/server/agent/harness-runtime.mjs` (+13 -3) 📝 `apps/host/server/agent/profile.mjs` (+60 -5) 📝 `apps/host/server/index.mjs` (+53 -1) 📝 `apps/host/server/store.mjs` (+2 -0) ➕ `apps/host/src/components/ChatDefaultsSetting.tsx` (+21 -0) ➕ `apps/host/src/components/CompactionSetting.tsx` (+71 -0) 📝 `apps/host/src/lib/store.ts` (+51 -1) 📝 `apps/host/src/locales/de.json` (+6 -1) 📝 `apps/host/src/locales/en.json` (+6 -1) 📝 `apps/host/src/locales/es.json` (+6 -1) 📝 `apps/host/src/locales/fix-de.json` (+11 -1) 📝 `apps/host/src/locales/fix-en.json` (+11 -1) 📝 `apps/host/src/locales/fix-es.json` (+11 -1) 📝 `apps/host/src/locales/fix-fr.json` (+11 -1) 📝 `apps/host/src/locales/fix-ja.json` (+11 -1) 📝 `apps/host/src/locales/fix-ko.json` (+11 -1) 📝 `apps/host/src/locales/fix-pt.json` (+11 -1) 📝 `apps/host/src/locales/fix-ru.json` (+11 -1) 📝 `apps/host/src/locales/fix-zh.json` (+11 -1) _...and 10 more files_ </details> ### 📄 Description Four commits, two things a person can touch in Settings. **Summarize older messages** (Settings -> General). The point where the assistant condenses the beginning of a chat was only an environment variable (STRATA_COMPACTION_...); now it is a choice in the UI, with the room kept free as an advanced line and the resulting token number spelled out for the model that is loaded. The threshold goes through the bridge and the profile instead of being fixed, and the host stops growing memory for the life of the agent. **New chats** (Settings -> General). A new conversation used to take only the model from the previous one: its permission mode, its reasoning effort and its thinking limit fell back to whatever the composer happened to show. Now all three are set in one place and a new chat starts from them. The stored defaults are the very values a chat with no preference showed before, so nobody meets a behaviour change by accident; a stored value the composer cannot offer is dropped rather than left as a dead choice, and a conversation already started keeps its own. Words: fx84-fx93 (compaction) and s9038-s9042 (new chats) in all nine catalogs, key order identical across them. fx83 keeps the wording main has now, since this branch was cut before it was reworded. Checked on this machine (Windows, built Harness): typecheck clean; locale-gaps, languages-and-catalog, french-catalog, chat-defaults (4), agent-compaction-settings, agent-compaction-threshold and ui5-plan -- 30/30 green. The full suite was run on the branch this was split from: 1271 tests, 1263 pass, 3 failures all known Windows environment ones (two EPERM: symlink, one Get-Acl that cannot autoload here), 5 platform skips. Deliberately NOT in this PR: the mid-turn comment (steering) that lives on the same working branch. It changes how a message typed while the assistant is working reaches the model, and it should be tried by hand in the app before it goes up for review. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#5211
No description provided.