Repository navigation
Show Hermes CLI and Desktop sessions - #47
Merged
Merged
Conversation
Hermes's installer shim execs `python3 -I -c '<bootstrap>' [args]`, so no argv token names the program and providerOf never matched it. Recognise the bootstrap by its `from hermes_cli.main import main` entry point and apply the existing service-subcommand exclusions to the args after it. Hermes Desktop conversations run inside a `hermes serve` backend, which is excluded as a service. Treat any Hermes process holding a live lease in runtime/active_sessions.json as a session regardless of subcommand, with an argv check so a stale lease on a reused pid cannot produce a card.
Gateway chats lease their session under a route-shaped id (agent:main:local:dm:local-<64 hex>) that cleanSessionId rejects, so the gateway never became a card. Read Hermes lease ids with their own bounded pattern, and mark a gateway pid busy while it holds a lease: the gateway holds one only for the length of a turn.
A gateway chat's lease lasts one turn, but the chat stays open in state.db (ended_at NULL) until it ends. Show the gateway while it has an open chat active within the last day, and give the card the chat's state.db ids so its own prompts set the topic and last-activity time. The view's quiet rule then hides it after the usual idle window, like any other card.
Recent Tasks leaves out hidden sessions, and Hermes Desktop's Bot Chat is one, so its card had no last-prompt time and the quiet rule hid it as idle since the backend started. Read only the time of each live Hermes card's last prompt, never its text, from state.db.
nixfred
added a commit
that referenced
this pull request
Nov 10, 2026
… where Omarchy ships it @brentkearney found the load failure: Omarchy removed ScreenMoveRemap from qs.Ui when Hyprland 0.57 began moving layer surfaces with their monitor (omacom/omarchy#17229), and QML refuses a file that names an unknown type, so the service plugin died with "ScreenMoveRemap is not a type" and neither the desk nor the SUPER+D overlay loaded. This merge keeps what the PR removes from the host files, the type name and the qs.Ui import, but not the guard itself. Omarchy 4.5.0-3 here still ships the type and uses it for its own bar, and its comment says Hyprland 0.56 and older can leave a mapped layer at its old origin when a monitor moves (undock). The guard moves behind a Loader by URL, the pattern BackgroundMedia already uses for the same kind of version gap: RemapGuard.qml the host-facing type; remapping is false if the Omarchy type is absent OmarchyScreenMoveRemap.qml the only file that names the Omarchy type Verified in a Test Drive VM (Hyprland 0.56.2, Omarchy 4.0.2, 1280x800): - type present: the plugin loads and a monitor move remaps the desk surface (its layer address changes, and it lands at the new origin); - type unresolvable (wrapper edited in the VM copy): the plugin still loads, one warning per surface, the guard is off, IPC answers. What I could NOT show: that 0.56.2 places the surface wrongly without the guard. An undock sequence with virtual outputs (auto layout, one output disabled) left the surface correctly placed with the guard off. So keeping it is the no-risk default on the versions in use, not a proven need. The lint gate whitelists the one version-dependent finding for the file that names the type, so qml-resolve no longer depends on which Omarchy runs it (it failed on a 0.57 Omarchy before this). info-ui.test.ts pins that the service and overlay never name the type again. CHANGELOG gains the entries for #47, #48 and #49, and the README agent list names Pi and Oh My Pi. bun test: 687 pass, 0 fail, 44 files (661 before the five PRs). Thanks @brentkearney. LR-T: infomarchy, pr-merge, hyprland-0.57, screen-move-remap, loader, compat LR-D: infomarchy, qml, hyprland LR-K: ScreenMoveRemap, RemapGuard, Loader-by-URL, undock, pr-48 LR-L: law-9 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BXN1v41qZzqJGeH19PB8HC
Owner
|
Merged, thank you @brentkearney. I checked the columns your queries use (session_key, archived, hidden, source, last_activity_at, ended_at) against a real Hermes state.db and they all exist, and it is opened read-only with only timestamps read. The extra state.db read on each tick costs nothing measurable (0.66 to 0.82 s per collector pass against 0.64 to 0.67 s before). CHANGELOG entry added. |
nixfred
added a commit
that referenced
this pull request
Nov 15, 2026
…ople since the 2026-10-04 update) WHAT: Adds docs/announce/2026-11-14-thanks.txt (the X post text), 2026-11-14-thanks.html (the graphic source, same house style as the 2026-10-04 update) and 2026-11-14-thanks.png (3200x1800 render). Docs only. No code, no manifest, no CHANGELOG change. WHY: Fred asked for a post thanking every contributor since the last contributor post (the 2026-10-04 update thread, commit 3fbc9c2). The post and graphic were drafted outside the repo, so this stores them next to the previous one for the next thank you cutoff. WHO IS THANKED, all landed after 2026-10-04: Brent (brentkearney) PRs #47 Hermes sessions, #48 Hyprland 0.57 load failure root cause, #49 Oh My Pi (omp) sessions. afoxybouquet issue #43 and PRs #44 wallpaperPassthrough and #45 SUPER+D overlay respects the bar. Reverb (reverb256) PR #50 module strip modes, their 3rd PR. Martin (maku) issue #46, the request behind #50. Eric Stegemann (TRIBUSeric, @EricStegemann) issue #26 Muse, history and heatmap and resume plus a USAGE and LIMITS row he tested. Maurice (@KI_Vater) requested the HERMES HOSTS card on X, shipped in 1.5.0. NUMBERS pulled live 2026-11-14, none estimated: 137 stars and 25 forks (121 and 23 on 10-04), 45 merged PRs (39), 16 people with a merged PR (14), 737 tests passing and 0 failing across 44 files (603), measured with bun test on a detached worktree of the v1.5.2 tag in 68 s, version 1.5.2 with 3 releases since the last post. HANDLES: only @EricStegemann and @KI_Vater are verified and tagged. afoxybouquet, reverb256 and maku have no X account found. @brentkearney exists on X but nothing ties it to the GitHub user, so Brent is named, not tagged. The post asks untagged people to send a handle. NOTE: the post text here is the draft as written. Fred reported it posted; his posted wording may differ. SAFETY: public repo. gitleaks found no leaks. The PNG was viewed before commit and contains no desktop capture, token or private name. Built from a detached worktree off origin/master (6788810) so the local only commit 097abe7 stays unpublished. TAGS: docs, announce, x-post, contributors, thank-you, infomarchy, 1.5.2, graphic, credits LR-T: infomarchy, x-post, contributors, announce, thank-you LR-D: docs, social LR-K: contributor-thanks-2026-11-14, cutoff-for-next-thank-you-is-2026-11-14 LR-L: law-11, law-9, law-10 LR-R: 3fbc9c2 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BXN1v4nMyfXzRixoqKtPin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Infomarchy fails to show Hermes sessions. This change makes Live AI Sessions show a card for each console
hermessession, each Hermes Desktop backend, and the Hermes gateway while it has an open chat, when Hermes was set up by its own installer.Cause
hermes: the installer's shim (~/.local/bin/hermes→~/.hermes/hermes-agent/.hermes/bin/hermes) runsexec python3 -I -c '<bootstrap>' "$@".providerOf()inspects only argv[0..2] (python3,-I,-c), so neither the/hermeslauncher match nor thepython -m hermes_cli.mainform from fix: recognize Hermes launched via python -m hermes_cli.main #11 matches.hermes serve --isolated …backend.serveis correctly on the service exclusion list, but Hermes records that same pid with"surface": "desktop"leases in~/.hermes/runtime/active_sessions.json.hermes gateway runhold a"surface": "gateway:<platform>"lease only for the length of each turn. Their session ID is route-shaped, such asagent:main:local:dm:local-<64 hex>, andcleanSessionId()rejects it for the colons and the length. Between turns, the chat is visible only as an open row in~/.hermes/state.db.Changes
hermesBootstrapArgs(cmd): recognizes thepython -cbootstrap by itsfrom hermes_cli.main import mainentry point and returns the user's args.-mform, now shared asHERMES_SERVICE_COMMANDS(this also removes a duplicatecron).gateway runand other services stay off the desk unless they hold a lease or, for the gateway, an open chat.hermesLeaseProvider(cmd, pid, leases): a Hermes process holding a live lease inactive_sessions.jsoncounts as a session whatever its subcommand. The argv must still look like Hermes, so a stale lease on a reused pid produces no card.hermesSessionId(value): reads lease session IDs with a Hermes-specific bounded pattern that allows colons and up to 256 characters.cleanSessionId()is unchanged for every other provider.hermesTurnPids(raw): a gateway pid holding a lease is marked busy, because the gateway holds a lease only while a turn runs.hermesOpenGatewayChats(rows): reads open gateway chats (ended_at IS NULL, with asession_key, not cron) active within the last 24 hours fromstate.db. While any exist, the gateway is a session, and its card carries theirstate.dbIDs, newest first, so the chat's own prompts set the card's topic and last-activity time.attachHermesPromptTimes(sessions, lastPromptAt): a Hermes card with no topic takes its last prompt time fromstate.db, including hidden chats. Only the timestamp is read, never the prompt text, and hidden chats stay out of Recent Tasks.providerOf().One
servebackend that hosts several Desktop conversations shows as one card with the newest session ID, matching the existing one-card-per-pid model. The gateway card follows the same idle rule as other cards: it stays visible until its last prompt is older than the quiet window (sessionQuietMinutes, 60 by default), then moves to the hidden idle count.Testing
gatewayandservesubcommands, which stay excluded without a leasepython -cprocess, which is ignoredgateway:*leases only, notcliordesktopsession_key, and invalid IDsbun test: 663 pass, 2 fail. Both failures also occur onmasterat a4d105e without this change:QML resolves against its real imports › Overlay.qml introduces no new unresolved names(fixed by Fix load failure on Hyprland 0.57 #48)a supervisor-run agent is named, not silently unclickable › only an owner that ships an attach gets onesurface: cli) and the gateway (surface: gateway:local, busy) ashermescards, and the desk shows the gateway card.servebackend (surface: desktop) running a hidden Bot Chat reports as ahermescard with its last prompt time, so the quiet rule keeps it visible.