Probe Hermes readiness by the flags omarchy-agent passes
Hermes v0.20 removed chat's --oneshot flag, which hermes_prompt_ready used as its capability marker. A fully bootstrapped Hermes Desktop install then read as not ready: --check failed forever, the default agent flow looped back into the installer, and --now dead-ended with "Launch Hermes Desktop once to finish installing it" on a machine where it already had. Probe for --tui and --query instead: the flags omarchy-agent actually passes to seed an interactive session, rather than one that merely shipped alongside them.
This commit is contained in:
2 files changed
+22
-5
No files matched your search
@@ -88,13 +88,16 @@ hermes_runs() {
|
||||
timeout 15 "$HOME/.local/bin/hermes" --version >/dev/null 2>&1
|
||||
}
|
||||
|
||||
# The chat subcommand's --oneshot opt-out arrived with native interactive -q,
|
||||
# so its presence is a stable capability check without relying on a version.
|
||||
# Probed for the flags omarchy-agent actually passes -- --query to seed the
|
||||
# session and --tui to keep it interactive -- rather than a flag that merely
|
||||
# shipped alongside them: the previous marker, --oneshot, was dropped in Hermes
|
||||
# v0.20 and left working installs stranded as "not ready".
|
||||
hermes_prompt_ready() {
|
||||
local help
|
||||
hermes_runs &&
|
||||
help=$(timeout 15 "$HOME/.local/bin/hermes" chat --help 2>/dev/null) &&
|
||||
grep -qF -- '--oneshot' <<<"$help"
|
||||
grep -qF -- '--tui' <<<"$help" &&
|
||||
grep -qF -- '--query' <<<"$help"
|
||||
}
|
||||
|
||||
# --owns answers whether the wrapper on PATH is the one this command wrote, so
|
||||
|
||||
Reference in new issue
Block a user