Running apps take each release's hook: the injector loads it by version folder (FP-6) #13

Merged
nelson merged 1 commit from fp-6-hook-by-version-path into main 2026-11-07 14:35:42 -08:00
Owner

PR 1 of 1: running apps take each new release's hook without restarting (https://openproject.romaine.life/wp/FP-6).

The injector starts through the current junction and loaded the hook through it, so every release's hook had one name and a running app was handed its old copy again. On nelsonpc, 43 of 52 hooked processes still run v0.1.81 or v0.1.82, so the File > Open fix never reached them. The injector now loads the hook from its real version folder. The old copy then unloads once its injector exits, and the new one takes over on the app's next window event, as the existing takeover code intends. Nothing changes in the hook itself.

Also adds swap_test.py, a release swap under a running app on a hidden desktop, and hook_versions.py, which reads which release each running process holds. test-trigger gains --repeat and --gap-ms so it can act as a long-running app, and CI runs the injector's tests.

Tested before merge: unit tests, and the swap test. With this injector, v1 answers the first dialog and v2 every one after the swap, three runs out of three. With main's injector, every dialog is answered by the copy loaded as current. After the release I'll check with hook_versions.py that the running apps on nelsonpc move to the new version.

PR 1 of 1: running apps take each new release's hook without restarting (https://openproject.romaine.life/wp/FP-6). The injector starts through the `current` junction and loaded the hook through it, so every release's hook had one name and a running app was handed its old copy again. On nelsonpc, 43 of 52 hooked processes still run v0.1.81 or v0.1.82, so the File > Open fix never reached them. The injector now loads the hook from its real version folder. The old copy then unloads once its injector exits, and the new one takes over on the app's next window event, as the existing takeover code intends. Nothing changes in the hook itself. Also adds `swap_test.py`, a release swap under a running app on a hidden desktop, and `hook_versions.py`, which reads which release each running process holds. `test-trigger` gains `--repeat` and `--gap-ms` so it can act as a long-running app, and CI runs the injector's tests. Tested before merge: unit tests, and the swap test. With this injector, v1 answers the first dialog and v2 every one after the swap, three runs out of three. With main's injector, every dialog is answered by the copy loaded as `current`. After the release I'll check with `hook_versions.py` that the running apps on nelsonpc move to the new version.
Running apps take each release's hook: the injector loads it by version folder (FP-6)
All checks were successful
Build / windows (pull_request) Successful in 1m17s
Build / macos (pull_request) Successful in 1m30s
Build / pcs (pull_request) Has been skipped
Build / home-sync (pull_request) Successful in 0s
5590bccedc
nelson merged commit c249618fb0 into main 2026-11-07 14:35:42 -08:00
nelson deleted branch fp-6-hook-by-version-path 2026-11-07 14:35:44 -08:00
Sign in to join this conversation.
No description provided.