[GH-ISSUE #1958] [Issue]: Schedule update stores character status outside card extensions #961

Closed
opened 2026-10-21 05:24:08 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @cha1latte on GitHub.

Summary

The connected [schedule_update] command writes conversationStatus and conversationActivity at the top level of the character storage row. Current conversation UI reads those values from data.extensions, so schedule/status updates can be persisted but not displayed.

Expected behavior

A schedule update for a character should update data.extensions.conversationStatus and data.extensions.conversationActivity, preserve the rest of data.extensions, and avoid stray root-level status fields.

Actual behavior

src/engine/generation/connected-commands.ts updates characters with { conversationStatus, conversationActivity }. src/features/modes/shared/chat-ui/hooks/use-chat-surface-data.ts and src/app/shell/ChatSidebar.tsx read conversationStatus and conversationActivity from data.extensions.

Steps to reproduce

  1. Use a character with generation tools enabled.
  2. Execute a schedule/status update command for that character, or call the schedule_update connected-command handler with characterId, status, and activity.
  3. Inspect the saved character row and then reload the conversation surface.

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
  • Professor Mari or shell tools
  • 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 at 7801a73a
  • Run mode: Tauri desktop / storage-backed refactor path
  • OS + version: Not OS-specific
  • Node + pnpm versions: Not checked; static parityscan
  • Rust version, if relevant: Not relevant
  • Remote Runtime URL configured? not relevant
  • Provider, model, or integration, if relevant: not relevant

Logs, screenshots, or video

No runtime log captured. Static evidence is the write/read contract mismatch across connected-commands.ts, use-chat-surface-data.ts, and ChatSidebar.tsx.

Regression notes

Legacy packages/server/src/routes/conversation.routes.ts merged these values into charData.extensions before saving. Legacy chat UI read the same values from parsed.extensions.

Additional context

Found during target 5 Characters parityscan for #1904.

Suggested fix: read the current character data, merge conversationStatus and conversationActivity into data.extensions, and call the character update path with the updated data object. Add focused proof that unrelated extension fields survive and root-level status fields are not written.

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 @Xelvanis on GitHub (Jun 2, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1958 Originally assigned to: @cha1latte on GitHub. ## Summary The connected `[schedule_update]` command writes `conversationStatus` and `conversationActivity` at the top level of the character storage row. Current conversation UI reads those values from `data.extensions`, so schedule/status updates can be persisted but not displayed. ## Expected behavior A schedule update for a character should update `data.extensions.conversationStatus` and `data.extensions.conversationActivity`, preserve the rest of `data.extensions`, and avoid stray root-level status fields. ## Actual behavior `src/engine/generation/connected-commands.ts` updates `characters` with `{ conversationStatus, conversationActivity }`. `src/features/modes/shared/chat-ui/hooks/use-chat-surface-data.ts` and `src/app/shell/ChatSidebar.tsx` read `conversationStatus` and `conversationActivity` from `data.extensions`. ## Steps to reproduce 1. Use a character with generation tools enabled. 2. Execute a schedule/status update command for that character, or call the `schedule_update` connected-command handler with `characterId`, `status`, and `activity`. 3. Inspect the saved character row and then reload the conversation surface. ## Impact area - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources - [x] Chat mode - [ ] Roleplay mode - [ ] Game mode - [x] Shared mode UI - [x] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [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` at `7801a73a` - Run mode: Tauri desktop / storage-backed refactor path - OS + version: Not OS-specific - Node + pnpm versions: Not checked; static parityscan - Rust version, if relevant: Not relevant - Remote Runtime URL configured? not relevant - Provider, model, or integration, if relevant: not relevant ## Logs, screenshots, or video No runtime log captured. Static evidence is the write/read contract mismatch across `connected-commands.ts`, `use-chat-surface-data.ts`, and `ChatSidebar.tsx`. ## Regression notes Legacy `packages/server/src/routes/conversation.routes.ts` merged these values into `charData.extensions` before saving. Legacy chat UI read the same values from `parsed.extensions`. ## Additional context Found during target 5 Characters parityscan for #1904. Suggested fix: read the current character data, merge `conversationStatus` and `conversationActivity` into `data.extensions`, and call the character update path with the updated `data` object. Add focused proof that unrelated extension fields survive and root-level status fields are not written. ## 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:24:08 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@cha1latte commented on GitHub (Jun 2, 2026):

fixed in #1969

<!-- gh-comment-id:4605133572 --> @cha1latte commented on GitHub (Jun 2, 2026): fixed in #1969
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#961
No description provided.