[PR #7303] [MERGED] feat(chat): Trackers Control section, Agent menus under Enable agents, Manual Trackers removed #7676

Closed
opened 2026-10-24 04:06:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7303
Author: @SpicyMarinara
Created: 10/8/2026
Status: ✅ Merged
Merged: 10/8/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/trackers-control


📝 Commits (5)

  • 7419bc8 feat(chat-settings): group Roleplay tracker settings in Trackers Control
  • 6702497 fix(chat-settings): keep hidden trackers manual when leaving the old Manual Trackers flag
  • ace910d docs(agents): point Trackers Control's Review Agent Outputs item at its own entry
  • 2e4240d fix(chat-settings): save tracker schedule changes in order and keep installed trackers manual
  • f70c4c0 Merge origin/staging into feat/trackers-control

📊 Changes

8 files changed (+325 additions, -149 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 docs/agents/agents-overview.md (+7 -3)
📝 docs/agents/approvals-and-agent-suite.md (+2 -1)
📝 docs/roleplay/hud-and-trackers.md (+1 -1)
📝 e2e/chat-sweep.e2e.ts (+7 -1)
➕ e2e/trackers-control.e2e.ts (+148 -0)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+157 -138)
📝 packages/client/src/localization/locales/en.json (+2 -5)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #7298

Why this change

In a Roleplay chat, Chat Settings → Agents spent a lot of space on settings most people rarely change: Attach chat summaries, Review agent outputs, Manual Trackers, Attach lorebooks to trackers and the Individual tracker schedule list. Manual Trackers also duplicated Individual tracker schedule, where each tracker can already be set to manual. Agent menus, the shortcuts to each agent's settings, sat near the bottom where they were hard to reach. Mari asked for the drawer to be tidied.

What changed

  • Manual Trackers switch removed from Chat Settings → Agents, along with its 5 unused strings.
  • Old chats with manualTrackers: true show every Individual tracker schedule switch on and clickable, so nothing is locked any more. The first change saves manualTrackerAgentTypes and manualTrackers: false in one update. The map keeps manual every tracker the old switch covered except the one switched off: active trackers (including ones the list can't show, such as an uninstalled package or an unknown id) and installed trackers not added yet. Extra entries for non-trackers are ignored by the server and the HUD. The server's reading of the old flag is unchanged, so old chats, settings profiles and imports behave as before until someone changes a switch.
  • Tracker schedule saves are serialized (useUpdateChatMetadata({ serialize: true })): each switch saves the whole map, so two quick clicks can't reach the server out of order and undo one another.
  • Trackers Control card (Roleplay only): Radar icon (unused elsewhere in Chat Settings), closed by default, open state kept per chat. Description: "Choose what trackers can see, when they run, and whether you review agent changes." Contents in order: Attach chat summaries, Attach Lorebooks to Trackers, Review Agent Outputs, Individual tracker schedule. Each item keeps its old show/hide rule. Game keeps Review Agent Outputs where it was, drawn by the same render function.
  • Agent Menus now sits directly under Enable Agents.
  • The card stays inside ChatSettingsDrawer.tsx instead of its own file. scripts/regressions/prompt.regression.ts checks the drawer's source for the Attach Lorebooks toggle and its surrounding comment, and that check was left unchanged.
  • Tests: new e2e/trackers-control.e2e.ts covers the missing switch, the section order, the closed card and its item order, the old flag showing switches on and enabled, and the saved map after the first change. e2e/chat-sweep.e2e.ts only pre-opens the new card (navigation only; assertions unchanged).
  • Docs: docs/agents/agents-overview.md, docs/roleplay/hud-and-trackers.md, docs/agents/approvals-and-agent-suite.md. CHANGELOG entry under [Unreleased].

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Agent-run checks (not a substitute for the boxes above):

  • pnpm check on the final head: exit 0.
  • Regressions prompt.regression (5/5, including "roleplay tracker lorebook context is opt-in"), chat-window-icons, tracker-manual-edit-base, tracker-sections, capability-prompt-preview, floating-window, capability-package-chat-controls, tracker-gallery-ui, chat-settings-hint: all pass.
  • e2e/trackers-control.e2e.ts on desktop-chromium and mobile-webkit: pass on the final head. One mobile-webkit run during verification failed and its output was lost; every later run passed (1/1, 3/3 repeated, 2/2, and the final head).
  • e2e/trackers-control, chat-sweep, tracker-manual-edit-base, illustrator-manual-cadence, expression-active-sprites on both projects: 34 passed. e2e/roleplay-commands.e2e.ts on desktop-chromium: 20 passed.
  • An independent reviewer and a separate verifier traced every client reader of the old flag (ChatArea, use-agent-activity, RoleplayHUD, RoleplayTrackerWindow, ChatRoleplaySurface) and the server filter. Both agree the behaviour stays consistent.
  • Local CodeRabbit: 2 trivial findings. The ambiguous docs wording is fixed. The other, skipping ids that look custom during the conversion, was rejected: an uninstalled tracker's leftover config row looks custom, so skipping it would let that tracker run automatically after a reinstall. GitHub CodeRabbit's 3 threads are fixed (schedule save order, installed trackers kept manual) or answered (translations: #7306).

Manual verification notes

  • Manually verify in a browser: in a Roleplay chat with agents enabled and a tracker agent added, Chat Settings → Agents shows Enable agents, then Agent menus, then a closed Trackers Control section, and no Manual Trackers switch.
  • Manually verify that opening Trackers Control shows Attach chat summaries, Attach lorebooks to trackers, Review agent outputs and Individual tracker schedule, in that order, and that each switch still saves.
  • Manually verify that a chat which had Manual Trackers on before this update shows every tracker under Individual tracker schedule as on, that turning one off leaves the others on, and that the HUD / Trackers window refresh button still runs the manual trackers.
  • Manually verify a Game chat's Agents drawer still shows Review agent outputs as before.
  • Manually verify that Trackers Control stays open or closed per chat after you close and reopen Chat Settings.
  • Manually verify that switching two tracker schedules quickly saves both (reopen the chat and check).
  • Manually verify at phone width and in light and dark mode.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)

Translation follow-up: #7306.

  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

None yet.

Summary by CodeRabbit

  • New Features
    • Roleplay chat settings now include a collapsed Trackers Control section for tracker scheduling, summary and lorebook attachments, and agent-output review.
    • Manage manual runs for each tracker under Individual tracker schedule instead of using the global Manual Trackers switch. Existing chats with that switch enabled now have all trackers set to manual.
    • Agent Menus now appear directly below Enable Agents in Roleplay Chat Settings.
  • Documentation
    • Updated guides to explain tracker scheduling, review controls, and running manual trackers from the HUD.

🔄 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/Pasta-Devs/Marinara-Engine/pull/7303 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/8/2026 **Status:** ✅ Merged **Merged:** 10/8/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/trackers-control` --- ### 📝 Commits (5) - [`7419bc8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7419bc888ee32d4c9a56a026232c9ca077b57990) feat(chat-settings): group Roleplay tracker settings in Trackers Control - [`6702497`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6702497df47239334952f4c35e7757f7475cca6e) fix(chat-settings): keep hidden trackers manual when leaving the old Manual Trackers flag - [`ace910d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ace910d7d124503f90cb7e7de293c0608faff3ed) docs(agents): point Trackers Control's Review Agent Outputs item at its own entry - [`2e4240d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2e4240dbcb1b0cebfcd88bbf553eb1e52ed4ad6b) fix(chat-settings): save tracker schedule changes in order and keep installed trackers manual - [`f70c4c0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f70c4c0979fe6b52f4ad8d90c0b6c39fd16af797) Merge origin/staging into feat/trackers-control ### 📊 Changes **8 files changed** (+325 additions, -149 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `docs/agents/agents-overview.md` (+7 -3) 📝 `docs/agents/approvals-and-agent-suite.md` (+2 -1) 📝 `docs/roleplay/hud-and-trackers.md` (+1 -1) 📝 `e2e/chat-sweep.e2e.ts` (+7 -1) ➕ `e2e/trackers-control.e2e.ts` (+148 -0) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+157 -138) 📝 `packages/client/src/localization/locales/en.json` (+2 -5) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #7298 ## Why this change In a Roleplay chat, Chat Settings → Agents spent a lot of space on settings most people rarely change: Attach chat summaries, Review agent outputs, Manual Trackers, Attach lorebooks to trackers and the Individual tracker schedule list. Manual Trackers also duplicated Individual tracker schedule, where each tracker can already be set to manual. Agent menus, the shortcuts to each agent's settings, sat near the bottom where they were hard to reach. Mari asked for the drawer to be tidied. ## What changed - **Manual Trackers switch removed** from Chat Settings → Agents, along with its 5 unused strings. - **Old chats with `manualTrackers: true`** show every **Individual tracker schedule** switch on and clickable, so nothing is locked any more. The first change saves `manualTrackerAgentTypes` and `manualTrackers: false` in one update. The map keeps manual every tracker the old switch covered except the one switched off: active trackers (including ones the list can't show, such as an uninstalled package or an unknown id) and installed trackers not added yet. Extra entries for non-trackers are ignored by the server and the HUD. **The server's reading of the old flag is unchanged**, so old chats, settings profiles and imports behave as before until someone changes a switch. - **Tracker schedule saves are serialized** (`useUpdateChatMetadata({ serialize: true })`): each switch saves the whole map, so two quick clicks can't reach the server out of order and undo one another. - **Trackers Control card** (Roleplay only): Radar icon (unused elsewhere in Chat Settings), closed by default, open state kept per chat. Description: "Choose what trackers can see, when they run, and whether you review agent changes." Contents in order: **Attach chat summaries**, **Attach Lorebooks to Trackers**, **Review Agent Outputs**, **Individual tracker schedule**. Each item keeps its old show/hide rule. Game keeps **Review Agent Outputs** where it was, drawn by the same render function. - **Agent Menus** now sits directly under **Enable Agents**. - The card stays inside `ChatSettingsDrawer.tsx` instead of its own file. `scripts/regressions/prompt.regression.ts` checks the drawer's source for the Attach Lorebooks toggle and its surrounding comment, and that check was left unchanged. - **Tests:** new `e2e/trackers-control.e2e.ts` covers the missing switch, the section order, the closed card and its item order, the old flag showing switches on and enabled, and the saved map after the first change. `e2e/chat-sweep.e2e.ts` only pre-opens the new card (navigation only; assertions unchanged). - Docs: `docs/agents/agents-overview.md`, `docs/roleplay/hud-and-trackers.md`, `docs/agents/approvals-and-agent-suite.md`. CHANGELOG entry under `[Unreleased]`. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Agent-run checks (not a substitute for the boxes above): - `pnpm check` on the final head: exit 0. - Regressions `prompt.regression` (5/5, including "roleplay tracker lorebook context is opt-in"), `chat-window-icons`, `tracker-manual-edit-base`, `tracker-sections`, `capability-prompt-preview`, `floating-window`, `capability-package-chat-controls`, `tracker-gallery-ui`, `chat-settings-hint`: all pass. - `e2e/trackers-control.e2e.ts` on desktop-chromium and mobile-webkit: pass on the final head. One mobile-webkit run during verification failed and its output was lost; every later run passed (1/1, 3/3 repeated, 2/2, and the final head). - `e2e/trackers-control`, `chat-sweep`, `tracker-manual-edit-base`, `illustrator-manual-cadence`, `expression-active-sprites` on both projects: 34 passed. `e2e/roleplay-commands.e2e.ts` on desktop-chromium: 20 passed. - An independent reviewer and a separate verifier traced every client reader of the old flag (ChatArea, use-agent-activity, RoleplayHUD, RoleplayTrackerWindow, ChatRoleplaySurface) and the server filter. Both agree the behaviour stays consistent. - Local CodeRabbit: 2 trivial findings. The ambiguous docs wording is fixed. The other, skipping ids that look custom during the conversion, was rejected: an uninstalled tracker's leftover config row looks custom, so skipping it would let that tracker run automatically after a reinstall. GitHub CodeRabbit's 3 threads are fixed (schedule save order, installed trackers kept manual) or answered (translations: #7306). ### Manual verification notes - Manually verify in a browser: in a Roleplay chat with agents enabled and a tracker agent added, Chat Settings → Agents shows **Enable agents**, then **Agent menus**, then a closed **Trackers Control** section, and no **Manual Trackers** switch. - Manually verify that opening **Trackers Control** shows Attach chat summaries, Attach lorebooks to trackers, Review agent outputs and Individual tracker schedule, in that order, and that each switch still saves. - Manually verify that a chat which had **Manual Trackers** on before this update shows every tracker under Individual tracker schedule as on, that turning one off leaves the others on, and that the HUD / Trackers window refresh button still runs the manual trackers. - Manually verify a Game chat's Agents drawer still shows **Review agent outputs** as before. - Manually verify that Trackers Control stays open or closed per chat after you close and reopen Chat Settings. - Manually verify that switching two tracker schedules quickly saves both (reopen the chat and check). - Manually verify at phone width and in light and dark mode. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) Translation follow-up: #7306. - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) None yet. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Roleplay chat settings now include a collapsed **Trackers Control** section for tracker scheduling, summary and lorebook attachments, and agent-output review. * Manage manual runs for each tracker under **Individual tracker schedule** instead of using the global **Manual Trackers** switch. Existing chats with that switch enabled now have all trackers set to manual. * **Agent Menus** now appear directly below **Enable Agents** in Roleplay Chat Settings. * **Documentation** * Updated guides to explain tracker scheduling, review controls, and running manual trackers from the HUD. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:06:25 +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
Pasta-Devs/Marinara-Engine#7676
No description provided.