Issue drawer shows stale status after dragging its card (and ignores SSE updates) #65

Open
opened 2026-10-01 15:59:35 +08:00 by Breadway · 0 comments
Owner

How found: reproduced in headless Chromium on a local server. Opened ROAD-1 in the drawer, dragged its card from Backlog to Todo. The card moved; the drawer's Status select still read "backlog".

Confidence: high (reproduced).

Explanation: IssueDrawer.svelte copies the issue into a local detail once when store.selectedKey changes and never re-reads the store. Moves from the board, and card.updated SSE events from other people or Forgejo, update store.issues but not detail. Saving another field afterwards then overwrites the newer value with stale data.

Fix: derive the drawer's fields from the store entry and only keep comments/activity in local state.

**How found:** reproduced in headless Chromium on a local server. Opened ROAD-1 in the drawer, dragged its card from Backlog to Todo. The card moved; the drawer's Status select still read "backlog". **Confidence:** high (reproduced). **Explanation:** IssueDrawer.svelte copies the issue into a local `detail` once when `store.selectedKey` changes and never re-reads the store. Moves from the board, and `card.updated` SSE events from other people or Forgejo, update `store.issues` but not `detail`. Saving another field afterwards then overwrites the newer value with stale data. **Fix:** derive the drawer's fields from the store entry and only keep comments/activity in local state.
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
Breadway/breadboard#65
No description provided.