agent report: install and update follow-up

This commit is contained in:
alex committed 2026-11-24 17:18:25 +00:00
1 parent 97e762642c
commit 7a147ec4c6
1 file changed
+20
+20
View File
@@ -42,3 +42,23 @@ Full report with every check: [docs/WAYLAND_REPORT.md](../WAYLAND_REPORT.md) (fi
- One focus change in one native run is not understood.
**Left on the desktop**: `~/summit-test` (8.9 GB). KDE's permission for X11 input injection (the owner granted it). The desktop file, the shortcut component and the ScreenCast permission that the tests created were removed. Nothing was pushed.
## Follow-up: install and update (asked by the owner)
- `install.sh` now updates an existing install:
- it records the installed commit in `share/summit/installed-version` and rebuilds only when that changed (`--force` rebuilds anyway);
- an update replaces the engine's files but keeps its venv and models, and reuses the venv (uv 0.13 refuses `uv venv` on an existing one, so a second run used to fail).
- Other fixes:
- prompts are read from `/dev/tty`, so `curl | sh` no longer reads the script as the answer;
- Arch installs only missing packages, without `pacman -Sy`;
- sudo is used only when the prefix isn't writable;
- `umask 022`;
- from ssh or a console, the session type comes from `loginctl`.
- Checked on the owner's desktop:
- into a scratch prefix: a fresh install (101 s), a run with nothing new (1 s), two updates to new commits (an added and a removed engine file);
- the `curl | sh` prompt answered `n` on a real terminal.
- Then installed for real with the README's `curl ... | sh` into `/usr/local`, with his sudo password given through a one-off askpass that was deleted afterwards:
- **the first run went wrong because of my umask 077**: root-only folders, so the venv went into the source cache. Fixed in the installer; the folders were made readable again (only Summit's own were affected) and the misplaced venv removed;
- the second run updated `41986c9 -> 97e7626` and put the venv in the right place;
- `summit doctor` is all ok and the portal accepts the app id.
- Pushed to `main` and `ap/wayland-capture` on git.molberg.cloud (asked by the owner).