Files
ruflo/plugins/ruflo-console/tests
Mathew BeaneandRuFlo b1fb1666e0 fix(ruflo-console): adopt pre-#4237 missions one at a time, keep offers and prune only after a save (#4254)
Review of #4276:
- The offer listed every mission behind one "adopt them here" button, and
  the old key mixes missions from several projects, so the natural click
  took other projects' missions and removed their offers. Each offered
  mission now has its own adopt / not here; "none of these" dismisses all.
  Dismissals are saved per mission id (`legacyDismissed: string[]`; the
  earlier `true` still covers what was offered then).
- A failed project-key write still pruned the shared key. writeLedger now
  returns the ids it saved (null on failure), and loadLedger's claim and
  adoptLegacy prune only ids that were saved.
- An offer held only in the project's own key (a 0.44.3 copy) vanished on
  the next save. Such offers are written back under `offered` until adopted.
- Adopting a mission older than the 20 the project keeps now returns
  'full' instead of pruning it from the shared key and dropping it.
- Moving to another directory also clears goal, plan, guidance and screen.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-10-19 12:55:40 -04:00
..
2026-10-07 18:10:29 -04:00