[GH-ISSUE #2131] [Issue]: Conversation @mentions use full busy delay instead of legacy short delay #1043

Closed
opened 2026-10-21 05:25:30 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Promansis on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2131

Originally assigned to: @cha1latte on GitHub.

Summary

Conversation-mode @mentions and manual character targets no longer use the shorter legacy schedule delay path. The refactor availability path applies the generic busy delay for idle/DND characters, so directly addressed characters can wait the full normal delay instead of the quick mention delay legacy used.

Expected behavior

When a conversation user explicitly @mentions or manually targets a character, idle and DND schedules should use the short mention delay behavior from legacy:

  • idle: roughly 5-15 seconds
  • DND: roughly 30-90 seconds
  • offline: no response until available

Normal non-mentioned conversation replies can keep the configured/generic busy delay.

Actual behavior

The refactor startGeneration path accepts mentionedCharacterNames, but resolveConversationAvailability does not receive or inspect mention/manual-target context. It computes delayMs with getBusyDelay(...) for every responding character, so @mentioned/manual-targeted idle or DND characters use the normal configured/generic delay.

Steps to reproduce

  1. In a conversation chat with schedules enabled, set a character's current schedule status to idle or dnd.
  2. Send a message that explicitly @mentions that character, or manually trigger that character's response from the conversation input.
  3. Observe the delayed response timing before generation starts.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: refactor static trace on 2026-06-04
  • Run mode: not runtime-proven; static parity trace only
  • OS + version: not relevant
  • Node + pnpm versions: not relevant
  • Rust version, if relevant: not relevant
  • Remote Runtime URL configured? not relevant
  • Provider, model, or integration, if relevant: not relevant

Logs, screenshots, or video

Static evidence:

  • Refactor accepts mention metadata on generation input: src/engine/generation/start-generation.ts, StartGenerationInput.mentionedCharacterNames.
  • Refactor resolveConversationAvailability(...) computes delay from getBusyDelay(character.status, character.schedule) and is called without mention context before yielding delayed events.
  • Legacy packages/server/src/routes/generate.routes.ts selected getMentionDelay(...) when requested mention names or a manual target were present.
  • Legacy packages/server/src/services/conversation/schedule.service.ts used 5-15 seconds for idle mentions and 30-90 seconds for DND mentions.

Regression notes

Legacy main treated @mentions/manual targets as urgent pings and used a shorter delay helper. The refactor keeps offline skip and generic busy delays, but the mention-specific delay branch was not carried over.

Additional context

Found during Target 5 Characters parityscan slice: Runtime/Mode Consumers.

Related tracker: #2124.

Suggested repair shape: carry an explicit isMentionedOrManualTarget/urgent flag into resolveConversationAvailability, add a chat-owned getMentionDelay helper beside getBusyDelay, and use it only for mentioned/manual-targeted conversation replies while preserving offline skip and regenerate/impersonate exclusions.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Jun 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2131 Originally assigned to: @cha1latte on GitHub. ## Summary Conversation-mode @mentions and manual character targets no longer use the shorter legacy schedule delay path. The refactor availability path applies the generic busy delay for idle/DND characters, so directly addressed characters can wait the full normal delay instead of the quick mention delay legacy used. ## Expected behavior When a conversation user explicitly @mentions or manually targets a character, idle and DND schedules should use the short mention delay behavior from legacy: - idle: roughly 5-15 seconds - DND: roughly 30-90 seconds - offline: no response until available Normal non-mentioned conversation replies can keep the configured/generic busy delay. ## Actual behavior The refactor `startGeneration` path accepts `mentionedCharacterNames`, but `resolveConversationAvailability` does not receive or inspect mention/manual-target context. It computes `delayMs` with `getBusyDelay(...)` for every responding character, so @mentioned/manual-targeted idle or DND characters use the normal configured/generic delay. ## Steps to reproduce 1. In a conversation chat with schedules enabled, set a character's current schedule status to `idle` or `dnd`. 2. Send a message that explicitly @mentions that character, or manually trigger that character's response from the conversation input. 3. Observe the delayed response timing before generation starts. ## Impact area - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources - [x] Chat mode - [ ] Roleplay mode - [ ] Game mode - [ ] Shared mode UI - [x] Runtime systems: generation, world-state, visuals, tracker, or haptics - [x] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: `refactor` static trace on 2026-06-04 - Run mode: not runtime-proven; static parity trace only - OS + version: not relevant - Node + pnpm versions: not relevant - Rust version, if relevant: not relevant - Remote Runtime URL configured? not relevant - Provider, model, or integration, if relevant: not relevant ## Logs, screenshots, or video Static evidence: - Refactor accepts mention metadata on generation input: `src/engine/generation/start-generation.ts`, `StartGenerationInput.mentionedCharacterNames`. - Refactor `resolveConversationAvailability(...)` computes delay from `getBusyDelay(character.status, character.schedule)` and is called without mention context before yielding `delayed` events. - Legacy `packages/server/src/routes/generate.routes.ts` selected `getMentionDelay(...)` when requested mention names or a manual target were present. - Legacy `packages/server/src/services/conversation/schedule.service.ts` used 5-15 seconds for idle mentions and 30-90 seconds for DND mentions. ## Regression notes Legacy `main` treated @mentions/manual targets as urgent pings and used a shorter delay helper. The refactor keeps offline skip and generic busy delays, but the mention-specific delay branch was not carried over. ## Additional context Found during Target 5 Characters parityscan slice: Runtime/Mode Consumers. Related tracker: #2124. Suggested repair shape: carry an explicit `isMentionedOrManualTarget`/urgent flag into `resolveConversationAvailability`, add a chat-owned `getMentionDelay` helper beside `getBusyDelay`, and use it only for mentioned/manual-targeted conversation replies while preserving offline skip and regenerate/impersonate exclusions. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:25:30 +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#1043
No description provided.