[PR #2204] [MERGED] Fix conversation mention schedule delays #5466

Closed
opened 2026-10-22 04:16:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2204
Author: @cha1latte
Created: 6/4/2026
Status: ✅ Merged
Merged: 6/4/2026
Merged by: @cha1latte

Base: refactor ← Head: fix/issue-2131-mention-delays


📝 Commits (3)

  • b8d579a Fix conversation mention schedule delays
  • e369f99 Handle multi-character mention delays
  • 02f2267 Preserve explicit manual targets for delays

📊 Changes

3 files changed (+260 additions, -6 deletions)

View changed files

➕ src/engine/generation/start-generation.test.ts (+222 -0)
📝 src/engine/generation/start-generation.ts (+26 -6)
📝 src/engine/modes/chat/schedules/schedule.service.ts (+12 -0)

📄 Description

Linked issue

Closes #2131

Why this change

  • Conversation @mentions and manual character targets should preserve the legacy short schedule delay path instead of waiting on the normal configured busy delay.

What changed

  • Added a legacy-compatible mention delay helper for idle and DND schedule statuses.
  • Passed explicit mention/manual-target context into conversation availability resolution.
  • Added regression coverage for mentioned idle/DND, manual idle, multi-character mention aggregation, normal auto-selected group targets, normal idle/DND, offline, and regenerate paths.

Refactor impact

Primary owner:

  • Engine generation

Impact areas reviewed:

  • Conversation-mode schedule availability
  • Mention/manual target generation input
  • Normal non-mentioned busy delay behavior
  • Normal auto-selected group target delay behavior
  • Multi-character conversation mention delay aggregation
  • Offline and regenerate exclusions

Boundary notes:

  • Engine-only change. No React, shared API, Tauri/Rust, storage schema, prompt assembly, or remote-runtime boundary changes.

Pressure points touched:

  • src/engine/generation/start-generation.ts
  • src/engine/modes/chat/schedules/schedule.service.ts

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • Codex proof: pre-fix focused Vitest repro failed with mentioned idle delay 120000 ms instead of 5000 ms.
  • Codex proof after fix: pnpm test -- src/engine/generation/start-generation.test.ts passed.
  • Codex proof after Bunny repair: pnpm check passed.
  • Codex proof gate: local proof ledger passed Marinara proof-gate validation.
  • Bunny review: initial medium finding on multi-character mention aggregation was repaired; local Bunny/proof checks passed after repair.
  • CodeRabbit review: initial finding on auto-selected group targets being treated as manual was repaired; focused Vitest and pnpm check passed after repair.
  • Manual verification needed: none for the core engine timing contract.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • Compatibility bugfix only; no new user-discoverable surface.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence (if applicable)

  • Not applicable: this is a non-UI engine timing contract fix. The affected behavior is proven with the focused generation harness and full repo checks above.

🔄 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/2204 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 6/4/2026 **Status:** ✅ Merged **Merged:** 6/4/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/issue-2131-mention-delays` --- ### 📝 Commits (3) - [`b8d579a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b8d579a5465f2a890d0d8c543ab5b4c8953b612c) Fix conversation mention schedule delays - [`e369f99`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e369f99da0abe5280c1b48322735bdcbe802cab9) Handle multi-character mention delays - [`02f2267`](https://github.com/Pasta-Devs/Marinara-Engine/commit/02f22671878043469dcd2f14e948f859ec46f969) Preserve explicit manual targets for delays ### 📊 Changes **3 files changed** (+260 additions, -6 deletions) <details> <summary>View changed files</summary> ➕ `src/engine/generation/start-generation.test.ts` (+222 -0) 📝 `src/engine/generation/start-generation.ts` (+26 -6) 📝 `src/engine/modes/chat/schedules/schedule.service.ts` (+12 -0) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue Closes #2131 ## Why this change - Conversation @mentions and manual character targets should preserve the legacy short schedule delay path instead of waiting on the normal configured busy delay. ## What changed - Added a legacy-compatible mention delay helper for idle and DND schedule statuses. - Passed explicit mention/manual-target context into conversation availability resolution. - Added regression coverage for mentioned idle/DND, manual idle, multi-character mention aggregation, normal auto-selected group targets, normal idle/DND, offline, and regenerate paths. ## Refactor impact Primary owner: - Engine generation Impact areas reviewed: - Conversation-mode schedule availability - Mention/manual target generation input - Normal non-mentioned busy delay behavior - Normal auto-selected group target delay behavior - Multi-character conversation mention delay aggregation - Offline and regenerate exclusions Boundary notes: - Engine-only change. No React, shared API, Tauri/Rust, storage schema, prompt assembly, or remote-runtime boundary changes. Pressure points touched: - `src/engine/generation/start-generation.ts` - `src/engine/modes/chat/schedules/schedule.service.ts` ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> <!-- Do not submit *.test.ts or *.test.tsx files as PR proof; cite existing checks, command output, app/browser/Tauri verification, or manual notes instead. --> - [ ] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [ ] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - Codex proof: pre-fix focused Vitest repro failed with mentioned idle delay `120000` ms instead of `5000` ms. - Codex proof after fix: `pnpm test -- src/engine/generation/start-generation.test.ts` passed. - Codex proof after Bunny repair: `pnpm check` passed. - Codex proof gate: local proof ledger passed Marinara proof-gate validation. - Bunny review: initial medium finding on multi-character mention aggregation was repaired; local Bunny/proof checks passed after repair. - CodeRabbit review: initial finding on auto-selected group targets being treated as manual was repaired; focused Vitest and `pnpm check` passed after repair. - Manual verification needed: none for the core engine timing contract. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [ ] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - Compatibility bugfix only; no new user-discoverable surface. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence (if applicable) - Not applicable: this is a non-UI engine timing contract fix. The affected behavior is proven with the focused generation harness and full repo checks above. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:16:35 +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#5466
No description provided.