The token a failed start checked was kept for its retries, but also
across a settings change: after a taken port, agents off and on again
reused it without reading the token file, so a file changed in between
left the server on a token clients no longer find there. Only a retry
with the same settings reuses it now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PreferencesLayout::Classic draws the paged body as a desktop preferences dialog does:
the page list in a frame as tall as the page (SectionList::framed) with room before the
page, no heading over the page, and each titled group a GroupBox. The window puts OK,
Cancel, Prev and Next in a column at the end edge (ButtonPlace::Side) and opens at
1030 x 660; Prev and Next step through the listed pages and wrap. Paged and Cards are
unchanged. PreferencesPageOutput::pages lists the page ids the search keeps.
For storytold/photocraft#17014.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An older PhotoCraft wrote the agent token file on Windows without
restricting it, so it kept its folder's access list (SYSTEM,
Administrators, the user). The current check refuses such a file and the
link only ever read it, so agents could never connect until someone
deleted the file by hand.
The link's token file is its own and the token is only its secret: a
regular file the check refuses (open to others, a damaged token) is now
replaced with a new token, once. A folder or link in its place is still
reported and left alone. A token file passed with --control-token-file
is unchanged: server_token itself still never replaces a file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows the token file check starts whoami and PowerShell, about
300 ms on the UI thread. A token file that is open to others (or can't
be read) failed that check and was retried every RETRY, forever, so the
app froze for ~300 ms every ~5 s while agents were switched on.
- A TokenFile problem schedules no retry: it lasts until someone changes
the file. Changing the settings tries again.
- Retries of a taken port reuse the token the failed start already
checked, so they only bind again; a start that succeeded reads the
file afresh next time.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A layer opened in a palette window shows in a popup window of its own. Its host asked in the opener's viewport whether the layer appears in this pass, and only the popup's pass recorded that it had, so the layer appeared in every pass and forgot everything in between. The arrow keys never left a menu's first row, a menu hung at the pointer jumped while the pointer was over it, and a scrolled flyout went back to its top. The host now records the appearance in the opener's viewport too (`overlay::note_appeared`, split out of `begin_layer`), so both viewports agree.
With its memory kept, such a layer takes the two rules an in-window layer has: a right-click on its context opener hangs it at the new pointer (`recall_shown`, shared by both hosts), and the press that opened it from another window does not close it when the opener runs a second pass of the opening frame.
The window kit's `send` gives events to one child window, such as a popup's.
A blocked window drops the keys, so a modal opened from a focused float by a key or a command (a save prompt in the main window) got none of them until the user clicked. The modal's window now gets one focus request 0.2 s after it becomes the app's modal, if a window it blocks still has the focus; an OS dialog that opens with the modal takes the focus in that time, and then nothing is sent. The modal's own popup windows keep the keyboard. It covers framework modals and FrameInput::app_modal alike (the docking of the former crate::ui did it for its floats, #306).
Every pass's end hook dropped the per-viewport records of viewports its input did not list. That list dates from the
frame's start, so the root's end hook dropped the records of a window the frame had opened. A palette that opened
hidden under an open menu lost the note that it was hidden, and stayed hidden once the menu was gone: Float in a docked
tab's menu left no window to see when the opening frame ran a second pass. The root's begin hook now drops the records
of closed viewports in a frame's first pass, where the list names every window opened before.
ArtCraft Launcher's development builds install from a mirror on this computer (its `local-mirror` feature, `cargo xtask local serve`). With the feature, `check_download_link` accepts loopback links and `Http::new` leaves the agents for remote hosts off HTTPS-only.
Without it nothing changes: a build refuses a loopback download link and the remote agents refuse plain HTTP before they connect. `default`, `ui`, `screen-testing`, `suite` and `oci_migration` do not turn it on; the facade forwards it only as its own `update-local-mirror`, which no other facade feature turns on.
The OS gives an OS window no press that went down in another window, so DockArea::continue_move had no effect
on a window the dock opens as one. The window shows in the app window while the press moves it: it follows the
pointer, marks where it would land and docks on release, as a tab drag does.