[GH-ISSUE #1426] [Issue]: Conversation reload does not restore the active chat transcript #710

Closed
opened 2026-10-20 17:32:10 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @cha1latte on GitHub (May 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1426

Originally assigned to: @cha1latte, @SpicyMarinara on GitHub.

Summary

Conversation mode does not restore the active chat transcript after a browser reload. The chat and messages still exist in storage, but the UI returns to the mode home screen instead of reopening the active conversation.

Expected behavior

Reloading the web shell while a Conversation chat is active should return to that same active chat and show the stored transcript.

Actual behavior

After reload, the sidebar still lists the chat and recent chat chips are visible, but the center pane shows the Marinara Engine mode home screen. The stored user and assistant messages are not visible until the chat is manually selected again.

Steps to reproduce

  1. On refactor commit 02eb5841, run the web shell with a valid remote runtime URL and at least one valid text-generation connection.
  2. Open Conversation mode and select an existing conversation chat.
  3. Send a message and wait for the assistant reply to render.
  4. Reload the browser tab.
  5. Observe the center pane.

Impact area

  • App shell, navigation, startup, or providers
  • Chat mode
  • Shared mode UI
  • Roleplay mode
  • Game mode
  • Catalog resources
  • 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 / 02eb5841
  • Run mode: web shell + remote runtime
  • OS + version: Windows
  • Node + pnpm versions: Node v24.13.0, pnpm 10.33.2
  • Rust version, if relevant: rustc 1.95.0
  • Remote Runtime URL configured? yes, http://127.0.0.1:8787
  • Provider, model, or integration, if relevant: scratch fake OpenAI-compatible provider, marinara-fake-ok

Logs, screenshots, or video

QA evidence was captured locally under:

scratch/conversation-qa-2026-05-27T18-34-03-825Z/

Relevant files:

  • reload-did-not-show-persisted-message.png
  • after-reload-missing-visible-message-storage.json
  • ledger.json

The storage snapshot confirms the active test chat still had both persisted messages:

  • user: hello from the QA harness
  • assistant: fake provider reply: hello from the QA harness

The screenshot shows the app back on the mode home screen with the conversation still listed in the sidebar.

Regression notes

Not specified.

Additional context

The chat store writes marinara-active-chat-id when selecting a chat, but this QA pass observed reload returning to the home surface instead of restoring the active transcript.

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 @cha1latte on GitHub (May 27, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1426 Originally assigned to: @cha1latte, @SpicyMarinara on GitHub. ## Summary Conversation mode does not restore the active chat transcript after a browser reload. The chat and messages still exist in storage, but the UI returns to the mode home screen instead of reopening the active conversation. ## Expected behavior Reloading the web shell while a Conversation chat is active should return to that same active chat and show the stored transcript. ## Actual behavior After reload, the sidebar still lists the chat and recent chat chips are visible, but the center pane shows the Marinara Engine mode home screen. The stored user and assistant messages are not visible until the chat is manually selected again. ## Steps to reproduce 1. On `refactor` commit `02eb5841`, run the web shell with a valid remote runtime URL and at least one valid text-generation connection. 2. Open Conversation mode and select an existing conversation chat. 3. Send a message and wait for the assistant reply to render. 4. Reload the browser tab. 5. Observe the center pane. ## Impact area - [x] App shell, navigation, startup, or providers - [x] Chat mode - [x] Shared mode UI - [ ] Roleplay mode - [ ] Game mode - [ ] Catalog resources - [ ] 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` / `02eb5841` - Run mode: web shell + remote runtime - OS + version: Windows - Node + pnpm versions: Node `v24.13.0`, pnpm `10.33.2` - Rust version, if relevant: `rustc 1.95.0` - Remote Runtime URL configured? yes, `http://127.0.0.1:8787` - Provider, model, or integration, if relevant: scratch fake OpenAI-compatible provider, `marinara-fake-ok` ## Logs, screenshots, or video QA evidence was captured locally under: `scratch/conversation-qa-2026-05-27T18-34-03-825Z/` Relevant files: - `reload-did-not-show-persisted-message.png` - `after-reload-missing-visible-message-storage.json` - `ledger.json` The storage snapshot confirms the active test chat still had both persisted messages: - user: `hello from the QA harness` - assistant: `fake provider reply: hello from the QA harness` The screenshot shows the app back on the mode home screen with the conversation still listed in the sidebar. ## Regression notes Not specified. ## Additional context The chat store writes `marinara-active-chat-id` when selecting a chat, but this QA pass observed reload returning to the home surface instead of restoring the active transcript. ## 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-20 17:32:10 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (May 27, 2026):

On it.

<!-- gh-comment-id:4557632395 --> @SpicyMarinara commented on GitHub (May 27, 2026): On it.
Author
Owner

@SpicyMarinara commented on GitHub (May 27, 2026):

Implemented on refactor.

What changed:

  • The chat store now hydrates marinara-active-chat-id from localStorage during initialization.
  • Reloading with an active chat now reopens the selected conversation/roleplay/game surface instead of dropping to the mode home screen.
  • The existing 404 guard still clears stale active ids if the stored chat was deleted.

Verification:

  • git diff --check
  • pnpm typecheck
  • pnpm lint
  • pnpm check:architecture
  • pnpm build
  • graphify update .
<!-- gh-comment-id:4557653714 --> @SpicyMarinara commented on GitHub (May 27, 2026): Implemented on `refactor`. What changed: - The chat store now hydrates `marinara-active-chat-id` from localStorage during initialization. - Reloading with an active chat now reopens the selected conversation/roleplay/game surface instead of dropping to the mode home screen. - The existing 404 guard still clears stale active ids if the stored chat was deleted. Verification: - `git diff --check` - `pnpm typecheck` - `pnpm lint` - `pnpm check:architecture` - `pnpm build` - `graphify update .`
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#710
No description provided.