[GH-ISSUE #5421] [GUI] a damaged chat file has no surface: the damaged list ships to the client and is dropped #3239

Open
opened 2026-11-07 14:39:06 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @TheHubUser4860938 on GitHub (Nov 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5421

Problem: a chat file the host cannot parse (a hand-edited file, a chat written by a future release with a higher v) disappears from the chat list with no trace the user can act on.

Environment: Strata 0.2.11 (app and Terminal 0.2.11, Control and engine 0.1.57) · Linux x86_64 · NVIDIA RTX 4090 24 GB, 125 GB RAM · Qwen3.8-Flash-Next family

Reproduce: with the 0.2.11 chat-files layout, write a chats/<id>.json whose JSON is truncated, start the host, open the app: the chat list shows the healthy chats; the damaged id appears nowhere in the UI.
Expected: the user can see which chat is unreadable and delete or replace it.
Actual: chat-store.mjs loadSync files the id under damaged and read() returns null for it; the API ships the list (index.mjs chatStore.list() → damaged), the client even types it (chat-sync.ts damaged?: string[]) - and no component consumes it. A {v:2} file from a future release reads as damaged today, so the list grows quietly across upgrades.
Evidence: probe on the release code - store folder with one healthy and one truncated chat; list() returns {chats:["s_ok"], damaged:["s_bad"]} over HTTP; the page renders only chats.
Reproduction status: reproduced locally (harness driving the 0.2.11 host module over its own API).

One line of design is enough: render the damaged ids in the sidebar (or the chat list's footer) with a delete action.

Originally created by @TheHubUser4860938 on GitHub (Nov 6, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5421 Problem: a chat file the host cannot parse (a hand-edited file, a chat written by a future release with a higher `v`) disappears from the chat list with no trace the user can act on. Environment: Strata 0.2.11 (app and Terminal 0.2.11, Control and engine 0.1.57) · Linux x86_64 · NVIDIA RTX 4090 24 GB, 125 GB RAM · Qwen3.8-Flash-Next family Reproduce: with the 0.2.11 chat-files layout, write a `chats/<id>.json` whose JSON is truncated, start the host, open the app: the chat list shows the healthy chats; the damaged id appears nowhere in the UI. Expected: the user can see which chat is unreadable and delete or replace it. Actual: `chat-store.mjs` `loadSync` files the id under `damaged` and `read()` returns null for it; the API ships the list (`index.mjs` `chatStore.list()` → `damaged`), the client even types it (`chat-sync.ts` `damaged?: string[]`) - and no component consumes it. A `{v:2}` file from a future release reads as damaged today, so the list grows quietly across upgrades. Evidence: probe on the release code - store folder with one healthy and one truncated chat; `list()` returns `{chats:["s_ok"], damaged:["s_bad"]}` over HTTP; the page renders only `chats`. Reproduction status: reproduced locally (harness driving the 0.2.11 host module over its own API). One line of design is enough: render the `damaged` ids in the sidebar (or the chat list's footer) with a delete action.
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
Niko1221/Strata#3239
No description provided.