[GH-ISSUE #1229] [Issue]: Canceling new conversation setup leaves ghost chats #602

Closed
opened 2026-10-20 17:30:37 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @cha1latte on GitHub.

Summary

Canceling the new Conversation setup flow persists a New Conversation chat even though the user closed setup before committing it. Repeated cancel/retry attempts leave ghost chats in the sidebar and storage, including rows with no connectionId.

Expected behavior

Closing or canceling the setup flow should either avoid creating a chat until setup is committed, or delete the draft chat when setup is dismissed.

Actual behavior

The setup flow creates a stored conversation immediately. Clicking the setup close button leaves the draft chat behind as a normal chat row. In the repro, stored chats increased from 8 to 9 and the new row had connectionId: null.

Steps to reproduce

  1. Run the refactor branch with a remote runtime configured and at least one language connection available.
  2. From the home empty state, click Conversation.
  3. Wait for the New Conversation setup flow to open.
  4. Click the setup close X instead of pressing Skip or Start Chatting.
  5. Inspect the chat list or storage.

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: upstream/refactor at 507e64ac
  • Run mode: web shell only + 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: local fake OpenAI-compatible custom connection used for QA setup

Logs, screenshots, or video

Repro storage probe:

{
  "beforeCount": 8,
  "afterCount": 9,
  "beforeGhosts": 2,
  "afterGhosts": 3,
  "addedGhosts": 1,
  "afterNewGhosts": [
    {
      "id": "8f985cce-c4e8-4a65-987b-46ace14556c8",
      "connectionId": null,
      "updatedAt": "2026-05-26T00:51:42.355358900+00:00"
    },
    {
      "id": "e15bcecf-62a7-4959-9987-90387e5f3a22",
      "connectionId": null,
      "updatedAt": "2026-05-26T00:56:03.730473400+00:00"
    },
    {
      "id": "33485310-eed5-496b-b74e-47ad431862da",
      "connectionId": null,
      "updatedAt": "2026-05-26T00:57:51.925866900+00:00"
    }
  ]
}

Local QA screenshots were captured during the hunt but are not attached here.

Regression notes

Not specified.

Additional context

The normal recovery path works if the user explicitly completes or skips setup; the bug is specifically the cancel/close path leaving committed storage behind. This is not immediate data loss, but it creates confusing partial chat state and can clutter real user data with abandoned setup attempts.

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 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1229 Originally assigned to: @cha1latte on GitHub. ## Summary Canceling the new Conversation setup flow persists a `New Conversation` chat even though the user closed setup before committing it. Repeated cancel/retry attempts leave ghost chats in the sidebar and storage, including rows with no `connectionId`. ## Expected behavior Closing or canceling the setup flow should either avoid creating a chat until setup is committed, or delete the draft chat when setup is dismissed. ## Actual behavior The setup flow creates a stored conversation immediately. Clicking the setup close button leaves the draft chat behind as a normal chat row. In the repro, stored chats increased from 8 to 9 and the new row had `connectionId: null`. ## Steps to reproduce 1. Run the refactor branch with a remote runtime configured and at least one language connection available. 2. From the home empty state, click `Conversation`. 3. Wait for the `New Conversation` setup flow to open. 4. Click the setup close `X` instead of pressing `Skip` or `Start Chatting`. 5. Inspect the chat list or storage. ## Impact area - [x] App shell, navigation, startup, or providers - [ ] Catalog resources - [x] Chat mode - [ ] Roleplay mode - [ ] Game mode - [x] 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 - [x] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: `upstream/refactor` at `507e64ac` - Run mode: web shell only + 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: local fake OpenAI-compatible `custom` connection used for QA setup ## Logs, screenshots, or video Repro storage probe: ```json { "beforeCount": 8, "afterCount": 9, "beforeGhosts": 2, "afterGhosts": 3, "addedGhosts": 1, "afterNewGhosts": [ { "id": "8f985cce-c4e8-4a65-987b-46ace14556c8", "connectionId": null, "updatedAt": "2026-05-26T00:51:42.355358900+00:00" }, { "id": "e15bcecf-62a7-4959-9987-90387e5f3a22", "connectionId": null, "updatedAt": "2026-05-26T00:56:03.730473400+00:00" }, { "id": "33485310-eed5-496b-b74e-47ad431862da", "connectionId": null, "updatedAt": "2026-05-26T00:57:51.925866900+00:00" } ] } ``` Local QA screenshots were captured during the hunt but are not attached here. ## Regression notes Not specified. ## Additional context The normal recovery path works if the user explicitly completes or skips setup; the bug is specifically the cancel/close path leaving committed storage behind. This is not immediate data loss, but it creates confusing partial chat state and can clutter real user data with abandoned setup attempts. ## 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:30:37 +07:00
  • closed this issue
  • added the
    bug
    label
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#602
No description provided.