Space library retains pages deleted in another browser tab
I maintainer di solito rispondono entro 2 giorni
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 15/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- react, sqlite, typescript
- Ambito
- frontend
Direzione di ricerca
Start with mergePageSnapshot and the page-list polling path in the Space library client, alongside SpaceLibrary, SpaceWorkspace and PageDocument, and check how they use GET /api/spaces/:spaceId/pages. Done means a fresh complete list drops a row deleted in another tab while keeping newly created pages, newer saved revisions, local tombstones, and an open unsaved draft. Open PR #126 already targets this, so coordinate with it rather than starting a parallel fix.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
A Space library keeps showing a page after the same owner deletes it in another browser tab. Successful later polls already omit the deleted page, but mergePageSnapshot keeps every previously known row forever unless this particular component issued the deletion itself.
This is an ordinary single-owner, two-tab workflow, not a request for multi-user collaboration or a recycle bin.
Reproduction
- Open the same Space in tabs A and B, with a saved page visible in both.
- Keep A on the page library. In B, open the page and use Page actions → Delete page.
- Wait for A's regular page-list polling to complete successfully more than once.
- A still shows the deleted page even though
GET /api/spaces/:spaceId/pagesomits it and the page API returns 404.
Expected: a successful fresh complete list should remove the deleted library row. If that page is open for editing in A, keep its local draft available and explain the external deletion rather than silently unmounting the editor.
Actual: the deleted row remains until the Space component is remounted/reloaded; opening or saving it produces a not-found error.
Verification
- Upstream
mainat625452e, Node.js 24.16.0, Chrome on macOS. - Reproduced with two actual browser pages using the real
SpaceWorkspace,SpaceLibrary,PageDocument, ReactDOM StrictMode, repository CSS, and the project's real Hono page API / SQLite store with synthetic in-memory data. - After B deleted a parent, its child was correctly reparented on the server. A completed two further list polls, but still displayed one deleted-parent row.
- No Intelligence/model/Slack/voice credentials or live cloud services were needed.
Fix boundaries
The existing union merge protects a newly created page from a list request that started before creation. A fix should preserve that protection, newer saved revisions, and local-deletion tombstones. It also needs to avoid older overlapping list responses resurrecting deleted rows and preserve an already-open unsaved draft.
I am preparing a bounded client fix with regression tests and browser checks. This is separate from #114's version-history/trash/import-export proposal: its polling path still uses the same union merge.
- Lingua principale
- TypeScript
- Stelle
- 4.8k
- Fork
- 690
- Merge medio
- 1g 15h
- PR unite (30g)
- 43
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CopilotKit/OpenDots
-
Page conversation panel overflows horizontallyForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
CopilotKit/OpenDots#69 ·
I maintainer di solito rispondono entro 2 giorni
-
Long page titles are clipped in the page editorForse già presa @charan-rathore l’ha presa 7 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
CopilotKit/OpenDots#68 ·
I maintainer di solito rispondono entro 2 giorni
-
Approval-gated action interrupted before its result is saved can never be retriedForse già presa @DerekChia l’ha presa 2 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 68/100
CopilotKit/OpenDots#134 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 4/5 1-2 giorni Idoneità per principianti 25/100
CopilotKit/OpenDots#127 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 4/5 Più di una settimana Idoneità per principianti 8/100
CopilotKit/OpenDots#123 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di CopilotKit/OpenDots
Issue simili
-
area:tui enhancement platform:macos
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
anthropics/claude-code#101490 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
netlify/netlify-mcp#75 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
atlassian-labs/compiled#1960 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
pnp/cli-microsoft365#7639 ·
I maintainer di solito rispondono entro 2 giorni
-
nextjs-tracking
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
cloudflare/vinext#3887 ·
I maintainer di solito rispondono entro 1 giorno