feat(agent): one download per system, which asks to install itself or be used from where it is #149

Merged
HumanBean merged 1 commit from HumanBean/Beanstalk:feat/agent-one-download into main 2026-11-25 04:58:33 +00:00
Owner

Summary

The agent ships one download per system, as LongshotLauncher #273 does for the launcher: beanstalk-agent-<v>-windows-x64.exe and beanstalk-agent-<v>-linux-x64.AppImage. On its first start it asks: Install (Windows per user, Start menu and Apps & features; Linux under ~/.local/share/beanstalk-agent with a menu entry, now with --install and --uninstall) or Use it from here (portable).

  • Portable is a mark only. A Beanstalk folder beside the program with a .portable file in it. The agent's home (sign-in, registration) stays in its usual place, as Beanstalk's rule says, because it belongs to the user and the PC, not the folder. A bare Beanstalk folder isn't a mark. Reserved folders, temporary folders (a program run from inside a zip) and a folder already holding the volunteer's files are refused. The old portable file beside the exe still counts.
  • A newer installed agent is started instead of an older download. A Linux install leaves installed-once in the home, so a later download after an uninstall asks again.
  • Packaged builds update nothing themselves: -p:BeanstalkPackaged=true, BEANSTALK_NO_SELF_UPDATE=1, Flatpak or Snap.
  • The names of before stay published, for older agents' self-update and old links: -windows-x64-setup.exe (the same program), -windows-x64-portable.zip (the exe alone) and -x86_64.AppImage (the same file). Self-update reads the new name first and the old one second. release.py's ROLLING keeps all five in latest-<channel>.
  • Coordinator: web.py and how.html link the new names; the portable zip's link is gone.

Tested

  • dotnet build agent/Beanstalk.Agent.slnx -c Release: no warnings.
  • agent/tests/test_agent_core.py --strict: 2543 checks passed (installer 87, update 112), except the "bridge" section, which couldn't open its socket in the sandbox it ran in (unchanged code: CI runs it).
  • agent/tests/test_release.py: passes.
  • The coordinator's test_dashboard.py needs Postgres: left to CI.

Not run yet: a real install, portable start and update on Windows and Linux desktops.

Merge note: the coordinator's new links work only once a nightly built with this change has published the new names. Deploy the coordinator after that nightly, or links 404 meanwhile; the old names work throughout.

🤖 Generated with Claude Code

## Summary The agent ships one download per system, as LongshotLauncher [#273](https://git.magicbean.dev/MagicBeanDev/LongshotLauncher/pulls/273) does for the launcher: `beanstalk-agent-<v>-windows-x64.exe` and `beanstalk-agent-<v>-linux-x64.AppImage`. On its first start it asks: **Install** (Windows per user, Start menu and Apps & features; Linux under `~/.local/share/beanstalk-agent` with a menu entry, now with `--install` and `--uninstall`) or **Use it from here (portable)**. - **Portable is a mark only.** A `Beanstalk` folder beside the program with a `.portable` file in it. The agent's home (sign-in, registration) stays in its usual place, as Beanstalk's rule says, because it belongs to the user and the PC, not the folder. A bare `Beanstalk` folder isn't a mark. Reserved folders, temporary folders (a program run from inside a zip) and a folder already holding the volunteer's files are refused. The old `portable` file beside the exe still counts. - **A newer installed agent** is started instead of an older download. A Linux install leaves `installed-once` in the home, so a later download after an uninstall asks again. - **Packaged builds update nothing themselves:** `-p:BeanstalkPackaged=true`, `BEANSTALK_NO_SELF_UPDATE=1`, Flatpak or Snap. - **The names of before stay published**, for older agents' self-update and old links: `-windows-x64-setup.exe` (the same program), `-windows-x64-portable.zip` (the exe alone) and `-x86_64.AppImage` (the same file). Self-update reads the new name first and the old one second. `release.py`'s `ROLLING` keeps all five in `latest-<channel>`. - **Coordinator:** `web.py` and `how.html` link the new names; the portable zip's link is gone. ## Tested - `dotnet build agent/Beanstalk.Agent.slnx -c Release`: no warnings. - `agent/tests/test_agent_core.py --strict`: 2543 checks passed (installer 87, update 112), except the "bridge" section, which couldn't open its socket in the sandbox it ran in (unchanged code: CI runs it). - `agent/tests/test_release.py`: passes. - The coordinator's `test_dashboard.py` needs Postgres: left to CI. **Not run yet:** a real install, portable start and update on Windows and Linux desktops. **Merge note:** the coordinator's new links work only once a nightly built with this change has published the new names. Deploy the coordinator after that nightly, or links 404 meanwhile; the old names work throughout. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(agent): one download per system, which asks to install itself or be used from where it is
Some checks failed
CI / Conventional Commit title (pull_request) Successful in 4s
CI / Workflow lint (actionlint) (pull_request) Successful in 5s
CI / Coordinator image (pull_request) Successful in 14s
CI / Agent build and checks (pull_request) Successful in 1m23s
CI / Coordinator tests (pull_request) Failing after 1m41s
54d4a27a32
The agent ships one program per system, beanstalk-agent-<v>-windows-x64.exe and
beanstalk-agent-<v>-linux-x64.AppImage, as LongshotLauncher #273 does. Its first start asks
Install (Windows per user, Start menu and Apps & features; Linux ~/.local/share/beanstalk-agent
with a menu entry) or Use it from here (portable): a Beanstalk folder beside the program with a
.portable mark. A newer installed agent starts instead of an older download; an AppImage from
before carries on as it was. The names of before stay published for older agents and links,
self-update reads the new name first, and a packaged agent never updates itself.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member

Possibly related, for context:

  • PR #26 feat(agent): the Windows setup installs Beanstalk, or runs it portable, as the launcher's does — Earlier merged Windows install/portable flow; PR 149 expands this to a unified Windows/Linux download and Linux installer.
Possibly related, for context: - PR #26 feat(agent): the Windows setup installs Beanstalk, or runs it portable, as the launcher's does — Earlier merged Windows install/portable flow; PR 149 expands this to a unified Windows/Linux download and Linux installer.
HumanBean changed title from WIP: feat(agent): one download per system, which asks to install itself or be used from where it is to feat(agent): one download per system, which asks to install itself or be used from where it is 2026-11-25 04:58:28 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Beanstalk!149
No description provided.