[PR #5179] [MERGED] feat(echo-chamber): expose message delay #6662

Closed
opened 2026-10-23 04:12:31 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: agent/echo-chamber-delay


📝 Commits (3)

  • e645a62 feat(echo-chamber): configure message delay
  • ee37add fix(echo-chamber): validate delay controls
  • 01b0079 Merge remote-tracking branch 'origin/staging' into agent/echo-chamber-delay

📊 Changes

6 files changed (+99 additions, -24 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/client/src/components/agents/AgentEditor.tsx (+46 -0)
📝 packages/client/src/components/chat/EchoChamberPanel.tsx (+14 -3)
📝 packages/client/src/lib/echo-chamber-queue.ts (+18 -13)
📝 packages/client/src/localization/locales/en.json (+4 -0)
📝 scripts/regressions/roleplay-streaming.regression.ts (+16 -8)

📄 Description

Why

Echo Chamber reveal timing was hardcoded in the client, so users and extensions could not control how quickly a queued batch appeared.

What changed

  • Adds a Message Delay field to the Echo Chamber editor.
  • Stores the value as messageDelaySeconds in ordinary Agent settings, making the same value available to extensions.
  • Uses the live saved value for each queued reveal, clamped to 1–300 seconds with a 30-second default.
  • Adds localized UI copy and regression coverage for defaulting and bounds.

Closes #5177

Validation

  • pnpm check
  • node ./scripts/run-regressions.mjs --filter scripts/regressions/roleplay-streaming.regression.ts
  • pnpm localization:check

Manual verification

  • Change Echo Chamber Message Delay in Agents, save, and verify queued messages use the new interval.
  • Update messageDelaySeconds through an extension/API client and verify the open Roleplay uses it without a restart.

Summary by CodeRabbit

  • New Features
    • Added configurable Echo Chamber message delays in the agent editor.
    • Delay settings are preserved when saving or exporting agents.
    • Echo Chamber messages now appear using the configured wait time.
  • Bug Fixes
    • Delay values are validated and constrained to supported limits, with sensible defaults for invalid or missing entries.
  • Documentation
    • Added changelog and interface text describing the new message-delay setting.

🔄 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/5179 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/17/2026 **Status:** ✅ Merged **Merged:** 8/17/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/echo-chamber-delay` --- ### 📝 Commits (3) - [`e645a62`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e645a62b0b251d692390e4d3ed5ffe8f0502988c) feat(echo-chamber): configure message delay - [`ee37add`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ee37addbaddedba158ad3ce34666bbb56f4c54e1) fix(echo-chamber): validate delay controls - [`01b0079`](https://github.com/Pasta-Devs/Marinara-Engine/commit/01b00792e9ba39eee7d87066b5bdd6c926b8b3a6) Merge remote-tracking branch 'origin/staging' into agent/echo-chamber-delay ### 📊 Changes **6 files changed** (+99 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+46 -0) 📝 `packages/client/src/components/chat/EchoChamberPanel.tsx` (+14 -3) 📝 `packages/client/src/lib/echo-chamber-queue.ts` (+18 -13) 📝 `packages/client/src/localization/locales/en.json` (+4 -0) 📝 `scripts/regressions/roleplay-streaming.regression.ts` (+16 -8) </details> ### 📄 Description ## Why Echo Chamber reveal timing was hardcoded in the client, so users and extensions could not control how quickly a queued batch appeared. ## What changed - Adds a Message Delay field to the Echo Chamber editor. - Stores the value as `messageDelaySeconds` in ordinary Agent settings, making the same value available to extensions. - Uses the live saved value for each queued reveal, clamped to 1–300 seconds with a 30-second default. - Adds localized UI copy and regression coverage for defaulting and bounds. Closes #5177 ## Validation - `pnpm check` - `node ./scripts/run-regressions.mjs --filter scripts/regressions/roleplay-streaming.regression.ts` - `pnpm localization:check` ## Manual verification - [ ] Change Echo Chamber Message Delay in Agents, save, and verify queued messages use the new interval. - [ ] Update `messageDelaySeconds` through an extension/API client and verify the open Roleplay uses it without a restart. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added configurable Echo Chamber message delays in the agent editor. * Delay settings are preserved when saving or exporting agents. * Echo Chamber messages now appear using the configured wait time. * **Bug Fixes** * Delay values are validated and constrained to supported limits, with sensible defaults for invalid or missing entries. * **Documentation** * Added changelog and interface text describing the new message-delay setting. <!-- 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-23 04:12:31 +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#6662
No description provided.