Rollback replays prior settings into sibling overlays even when the record restore is skipped
Les mainteneurs répondent en général sous 3 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 28/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- typescript
- Domaine
- backend
Piste de recherche
Start in src/extension/api.ts at the setConfiguration compensation: record restore guarded by recordStillOurs (797/810/814), unconditional shared mode/pin restore (833-836), and unconditional sibling overlay replay using previousSettings ?? {} (849-853). Read that compensation path and issue #2488 step 2 before changing code; the minimal interim is to gate the overlay replay on recordStillOurs. Done means a skipped record restore no longer writes prior settings onto sibling overlays, covered by a test for the later-write-wins scenario.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Found while answering review thread 4609481469 on PR #1560, and verified in the file before agreeing to it.
Amendment, provenance and a sibling-site note only: one authored change applied in two writes, 06:34:35Z and 06:34:45Z, the second adding only the blank line between the lead-in sentence and its three bullets that the first collapsed. The claim, the three bullets and the interim option paragraph below are byte-for-byte unchanged.
The line numbers below were read on branch vps2/f3-mode-profile-writes at head 57b766b2f4977b6988b263efd81963680b050b9b. src/extension/api.ts is byte-identical between b75156dcd0, the head this issue was filed against, and that head - the diff for that file between the two is empty - so the anchors are valid for both. The same numbers in the sibling lane name unrelated code, which is why the head is named.
The setConfiguration compensation decides three things separately:
- the profile record restore is conditional: api.ts line 797 runs it only while recordStillOurs holds, line 810 logs leaving the record alone when the store could not be re-read, and line 814 logs skipping the restore when the store no longer holds this call's write.
- the shared mode and pin restore at lines 833 to 836 is unconditional.
- the sibling overlay replay at lines 849 to 853 is unconditional and passes previousSettings ?? {}.
So when the record restore is skipped because a later write owns the record, the overlays pinned to that profile are still set to the prior settings while the record keeps the newer content that caused the skip. The overlays then describe a snapshot the record has moved past, and the next postStateToWebview or task creation on those views pairs a current name with superseded settings.
This is the same weakness as step 2 of issue #2488 seen from the overlay side: a comparison on values cannot tell this compensation's write from a later identical one, so it cannot tell whether the replay still owns the overlay it is writing. The durable close is the record-level write revision, not an extra comparison here.
Not changed on PR #1560: this head's production change is the mode-vs-settings supersession in loadViewState, and adding a second production change here would reopen the compare-and-set contract answers that PR has already published. A minimal interim option, if one is wanted before step 2, is to gate the overlay replay on recordStillOurs so a skipped restore does not overwrite sibling overlays with a stale snapshot.
Counterpart in the sibling branch, recorded here so a maintainer does not have to rediscover it: in wt-fix1562 at 7c7556b18b the same unconditional sibling replay sits at src/extension/api.ts lines 1011 to 1015, and its record restore is guarded differently - inside manager.runExclusiveAcrossInstances at 900, comparing the stored record against savedSettings at 907 to 909, with the rollback replay filtered to writtenKeys at 960 to 962 under the comment that begins at 955 - so the weakness is one class with two shapes, and the durable close is still step 2 of issue #2488. recordStillOurs does not occur in that file at that head; it occurs twice in this lane's file.
- Langage dominant
- TypeScript
- Étoiles
- 2k
- Forks
- 301
- Merge moyen
- 3 j 14 h
- PR mergées (30 j)
- 103
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Zoo-Code-Org/Zoo-Code
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
Zoo-Code-Org/Zoo-Code#2773 · 1 commentaire ·
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Zoo-Code-Org/Zoo-Code#2717 · 1 commentaire ·
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
Zoo-Code-Org/Zoo-Code#2515 ·
Les mainteneurs répondent en général sous 3 jours
-
fix(scripts): stryker-diff.mjs spawns the extensionless .bin shim and cannot run on WindowsPeut-être pris @easonLiangWorldedtech l’a pris il y a 15 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Zoo-Code-Org/Zoo-Code#2514 ·
Les mainteneurs répondent en général sous 3 jours
-
[BUG] search_files hides matching text on long linesPeut-être pris @DananjayaNadun l’a pris il y a 9 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
Zoo-Code-Org/Zoo-Code#2496 · 1 commentaire · 1 personne assignée ·
Les mainteneurs répondent en général sous 3 jours
Toutes les issues de Zoo-Code-Org/Zoo-Code
Issues similaires
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
ci
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
ClickHouse/clickhouse-js#1248 ·
Les mainteneurs répondent en général sous 1 jour
-
E2E: Darlehen-Test wartet auf die gebuchte Auszahlung, bevor er zur Liquiditätsvorschau wechseltOuvertetechnik
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
SR5-FoundryVTT/SR5-FoundryVTT#2162 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
AhmedNAgy25/analysor#25 ·
Les mainteneurs répondent en général sous 1 jour