Phase 1 / A3 — EnsureSharedSymlinks après flipSymlink dans switcher #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/phase1-A3-switcher-symlinks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Résumé
Phase 1 / Chantier A3 — dernière pièce de A. Après chaque flip du symlink
~/.claudevers le compte cible, le switcher appelle maintenantsymlinks.EnsureForAccount(target.Home, RequiredShared)pour garantir que les 3 liens partagés (session-env,file-history,projects) pointent vers les targets canoniques.Base :
feat/phase1-A-failover-robust(PR A à merger d'abord).Commit
8eaf0bbfeat(switcher): ensure shared symlinks on target home after flip (A3)Design
EnsureForAccountloggée en WARN mais n'abort PAS le swap (best-effort post-flip). Raison : abort laisserait le symlink principal flippé maisSetActiveAccountjamais appelé → état incohérent. Mieux vaut logger et continuer.AccountSwitcher.sharedSymlinks(default =symlinks.RequiredShared) pour scoper les tests danst.TempDir().Tests
TestFlipReconcilesSharedSymlinksOnTargetHome: target home vide → 3 liens créés avec bons targets après flipTestFlipEnsureSymlinksFailureDoesNotAbortSwap: lien divergent planté → erreur refusing to auto-correct, swap complète quand même, ActiveAccount == "compte2"TestDedicatedRelaunchAfterSwap+TestKillAndRecreatePoolSessionsvers tempdir pour éviter fuites filesystemgo test ./...PASS +-raceclean +go vetcleanVoir
VERSION.md0.3.7.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.