[PR #1969] [MERGED] Fix schedule update extension persistence #5365

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

📋 Pull Request Information

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

Base: refactor ← Head: fix/1958-schedule-update-extensions


📝 Commits (1)

  • 191c0d4 Fix schedule update extension persistence

📊 Changes

1 file changed (+10 additions, -2 deletions)

View changed files

📝 src/engine/generation/connected-commands.ts (+10 -2)

📄 Description

Linked issue

Closes #1958

Why this change

  • The schedule_update connected command persisted conversationStatus and conversationActivity on the character storage row wrapper, while the conversation UI reads those values from the card data's extensions object.

What changed

  • Updated the schedule update command path to merge status/activity into data.extensions.
  • Preserved existing card data and existing extension fields during the update.
  • Avoided writing stray root-level conversation status fields.

Refactor impact

Primary owner:

  • Engine generation

Impact areas reviewed:

  • Chat mode schedule/status command handling
  • Shared chat UI and app sidebar status readers
  • Character card storage contract

Boundary notes:

  • The fix stays in React-free engine code and continues using the existing storage gateway.
  • No feature/UI/Rust/shared API boundary changes.

Pressure points touched:

  • src/engine/generation/connected-commands.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

  • pnpm vitest run tests/unit/issue-1958-schedule-update-repro.test.ts --config vitest.config.ts passed after the fix. Before the fix, the same repro failed because extensions.conversationStatus stayed undefined.
  • pnpm typecheck passed.
  • pnpm check:architecture passed.
  • pnpm check:rust passed.
  • pnpm check:docs passed.
  • pnpm check:discovery passed.
  • pnpm check:unused passed.
  • pnpm check is currently blocked before this change's gates by unrelated CRLF line-ending failures in .github/workflows/bunny-review-command.yml, DESIGN.md, and custom_components/marinara_engine/*.py.

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:

  • Bugfix only; no new discoverable feature.

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

  • Not applicable; this is a storage contract fix for the connected command path.

Summary by CodeRabbit

  • Refactor
    • Internal data structure reorganization for character conversation tracking. No user-visible changes.

🔄 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/1969 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 6/2/2026 **Status:** ✅ Merged **Merged:** 6/2/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/1958-schedule-update-extensions` --- ### 📝 Commits (1) - [`191c0d4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/191c0d4d9812bafbff07ef354ef685a83784e962) Fix schedule update extension persistence ### 📊 Changes **1 file changed** (+10 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/engine/generation/connected-commands.ts` (+10 -2) </details> ### 📄 Description ## Linked issue Closes #1958 ## Why this change - The `schedule_update` connected command persisted `conversationStatus` and `conversationActivity` on the character storage row wrapper, while the conversation UI reads those values from the card data's `extensions` object. ## What changed - Updated the schedule update command path to merge status/activity into `data.extensions`. - Preserved existing card data and existing extension fields during the update. - Avoided writing stray root-level conversation status fields. ## Refactor impact Primary owner: - Engine generation Impact areas reviewed: - Chat mode schedule/status command handling - Shared chat UI and app sidebar status readers - Character card storage contract Boundary notes: - The fix stays in React-free engine code and continues using the existing storage gateway. - No feature/UI/Rust/shared API boundary changes. Pressure points touched: - `src/engine/generation/connected-commands.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 - `pnpm vitest run tests/unit/issue-1958-schedule-update-repro.test.ts --config vitest.config.ts` passed after the fix. Before the fix, the same repro failed because `extensions.conversationStatus` stayed `undefined`. - `pnpm typecheck` passed. - `pnpm check:architecture` passed. - `pnpm check:rust` passed. - `pnpm check:docs` passed. - `pnpm check:discovery` passed. - `pnpm check:unused` passed. - `pnpm check` is currently blocked before this change's gates by unrelated CRLF line-ending failures in `.github/workflows/bunny-review-command.yml`, `DESIGN.md`, and `custom_components/marinara_engine/*.py`. ## 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: - Bugfix only; no new discoverable feature. ## 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 - Not applicable; this is a storage contract fix for the connected command path. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Internal data structure reorganization for character conversation tracking. No user-visible changes. <!-- 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-22 04:15:37 +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#5365
No description provided.