Repository navigation
Conversation
|
A brief clarification on scope and relationship to the companion PRs: this is the focused AFK integration. It wires AFK into the existing default-agent setup, migration, launcher, icon, and browser handoff paths without introducing the general third-party harness extension point. PR #10171 is the broader, follow-on harness architecture; this PR can be reviewed independently as the concrete AFK integration, or considered alongside #10171 if the preferred direction is to land the generalization first. Focused validation is listed above, including the default-agent, menu, CLI, migration, and launcher coverage. |
218db3e to
c7771eb
Compare
b9af340 to
95437ef
Compare
14ee9da to
64731f0
Compare
[Medium impact] The PR appears safe to merge; no new actionable issues were found. SummaryAdds AFK as a selectable browser-first coding agent.
Reviews (21) · Last reviewed commit: "Stage each AFK install under its own nam..." · Reviewed by Greptile |
bc8f5a6 to
b46bd50
Compare
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
31c29dc to
a16d810
Compare
a16d810 to
30c26e1
Compare
567b125 to
06790dc
Compare
8c04e5b to
3f33c0e
Compare
AFK ships from its own Forgejo release rather than one of Omarchy's curated packages, so it installs the way Hermes and OpenClaw do: an installer of its own with the same --check/--now contract. It reads the current release from the project's API, verifies the published checksum before unpacking, and replaces the command in a rename. A symlink or directory at the command's path is the user's, and is refused rather than overwritten. It opens the session itself, so the project and a prompt go on its command line and it runs inline instead of in a terminal that would only wrap a command opening a browser tab. Generated with AFK Co-Authored-By: AFK <[email protected]> using deepseek-flash
--check looked only at ~/.local/bin, but omarchy-agent runs whichever afk comes first on PATH, so an AFK the user installed elsewhere - /usr/local/bin, or one a mise config puts earlier - was reported missing. A second copy written over it would not have been the one the agent started. Both answer from the command PATH resolves, and --now now says so when the copy it wrote is not that command. Generated with AFK Co-Authored-By: AFK <[email protected]> using deepseek-flash
AFK has no row in the agents panel, which lists subscriptions, and no hotkey of its own, as no harness does. Without a launcher it would be reachable only by someone who already knew to run omarchy default agent afk, so choosing it now puts it in the dock and the app grid beside every other harness. The wordmark is drawn the way each icon set draws its app icons: AFK in a 16 by 14 grid of pixels for arcade, and the same letters in rounded blocks over a hard shadow for papercraft, with a 512 pixel plate beside them. Generated with AFK Co-Authored-By: AFK <[email protected]> using deepseek-flash
The harnesses with a launcher are checked in one place: selecting one installs its entry and every icon set carries its icon. Asserting the same for AFK restated that file's own contents without checking anything new, which is the test the repository asks not to write for a declarative addition. Generated with AFK Co-Authored-By: AFK <[email protected]> using deepseek-flash
129a6cd to
55be3c6
Compare
The asset URL appended the download route to the API base, which answers 404: the API reads a release, and the file is served from the repository's own download route. Nothing could install until this was right. A missing AFK could not come back either. AFK is not one of Omarchy's packages, so a saved default whose command had gone asked omarchy-install-ai-cli for a package it does not have, and the launch was refused. It reinstalls through omarchy-install-afk-cli, which is the installer that put it there. The binary was staged in the temporary directory and moved into place, which is only a rename while both are on one filesystem; across two, mv copies, and a launch during the copy can start a half-written command. It is staged beside its destination so the replace stays one rename, and a run that ends early takes the staging copy with it. Generated with AFK Co-Authored-By: AFK <[email protected]> using deepseek-flash
Two launches while the command is missing start two installers, and both staged the new binary at the same name beside it: one could rename the file the other was still writing, and either run's cleanup could delete the other's staging copy and fail it. Each run stages under a name of its own, so the rename it makes is of the file it wrote. Generated with AFK Co-Authored-By: AFK <[email protected]> using deepseek-flash
Summary
Testing
bash -n bin/omarchy-agent bin/omarchy-default-agent bin/omarchy-mise-install bin/omarchy-remove-preinstalls migrations/1787709254.sh test/shell.d/default-agent-test.sh test/shell.d/menu-test.sh./test/shell.d/default-agent-test.shbash test/shell.d/menu-test.sh./test/cliafk open --helpand the configured Forgejo package source withmise ls-remoteThe full shell suite was also run; five pre-existing environment-dependent tests failed (bar geometry, config, Snapper package checkout, theme install guard, and unowned-system-paths checkout).
Generated with AFK