Compare commits

..
Author SHA1 Message Date
james.maesandClaude Fable 5.2 15f263676e fix(app): the claim on the data folder never stops a start, and is given up when no window came of it
windows / windows (push) Failing after 5s
build / windows (push) Failing after 5s
From the review of #217. This code runs at every start, before a window or
the log exists.

- The event that asks the open window to come to the front may be taken by
  something this process cannot use (a gclo that runs elevated made it) or
  that is no event. That ended the start with an unhandled exception. The
  claim now stands as the lock file says and only the request is not made;
  whatever else fails while the claim is made, the window opens without one.
- A window that could not be made gives the claim up: the process can live
  on without a window, and every later start would have ended at once with
  nothing to bring to the front.
- A request to come to the front that arrives while the window closes is
  dropped, and is queued on the dispatcher captured at start, not read from
  a window that may be gone.

Refs #216

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: James Maes <james@kof22.com>
2026-11-11 16:54:50 -06:00
james.maesandClaude Fable 5.2 96cf2fcabc feat(app): gclo opens one window per data folder, and a second start brings the open one to the front
Two windows on one data folder each kept their own copy of the settings and
accounts, and the one that saved last undid what the other had saved. The
owner's decision (#216): one window per data folder.

- WindowClaim (gclo.ViewModels): a window holds window.lock in its data
  folder while it is open, shared with nobody. Windows gives it up when the
  process ends, however it ends. A folder that cannot be written to holds no
  claim and stops no window from opening.
- A second start finds the claim, asks the open window to come to the front
  through an event named after the folder, and ends before any window or
  file of its own exists. The open window comes out of the taskbar and
  before the other windows.
- The claim is given up first thing when the window closes, so a start right
  after closing opens a window of its own.
- Another data folder is another claim: the dev channel beside the stable
  one, and GCLO_DATA_DIR. The command line makes no claim.
- README, threat model (review log), CLAUDE.md.

Closes #216

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: James Maes <james@kof22.com>
2026-11-11 16:51:19 -06:00

Diff Content Not Available