mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-26 03:17:28 -06:00
The active ribbon tab was saved to ui.json and restored verbatim at startup, so relaunching resumed whichever tab was last used (Review, Help, Draw). Word always opens on Home. apply_prefs now forces DEFAULT_TAB on load. Going File and back to the editor still returns to the tab that was showing, contextual tabs included; tab is still written to ui.json, so the UiState JSON contract (MCP/control) is unchanged. resolve_tab uses the same DEFAULT_TAB so the startup default and the contextual-tab fallback can't drift. Co-authored-by: Brandon Thomas <echelon@gmail.com>