Skip to content

Show Oh My Pi (omp) sessions - #49

Merged
nixfred merged 1 commit into
nixfred:masterfrom
brentkearney:omp-sessions
Nov 10, 2026
Merged

nixfred merged 1 commit into
nixfred:masterfrom
brentkearney:omp-sessions

Conversation

@brentkearney

@brentkearney brentkearney commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Infomarchy fails to show Oh My Pi (omp) sessions. This change makes Live AI Sessions show a card for each running omp session, with its topic, last-prompt time, and multiplexer host, and counts its prompts in activity and usage.

Cause

  • providerOf() matches the pi launcher only. Oh My Pi, a fork of Pi, runs as omp, so no card appears.
  • omp writes the same session format as Pi, but under ~/.omp/agent/sessions instead of ~/.pi/agent/sessions, so its prompts never reach Recent Tasks or the activity heatmap.

Changes

  • Add omp to PROVIDERS. Its helper processes (omp __omp_worker_*) run under the session process, so the existing child check skips them.
  • Read omp history with the Pi reader: piHistory(root, provider) now takes the session root and provider name, with Pi's values as defaults.
  • Match open omp session files in openSessionIds(), as for Pi.
  • Add omp to providers, the activity heatmap kinds, and the provider tags.
  • Add a color (magenta) and the label "Oh My Pi" in InfoModel.qml.
  • Resume omp sessions with omp --resume <id>.

Testing

  • New providerOf cases cover the bare omp launcher, a mise-installed omp path with a worker argument, cat /usr/bin/omp, and a non-matching romp.
  • New resumeAgentCommand case covers omp --resume.
  • bun test: 654 pass, 2 fail. Both failures also occur on master at 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 one
  • Live check on an aarch64 Omarchy VM with omp 18.18.3 running under Herdr: one collector pass reports an omp card with its session ID, working directory, topic, last-prompt time, and Herdr host, and providers.omp reports 16 prompts across 4 sessions.

omp is a fork of Pi with its own launcher and session root. Recognize the
omp launcher, read its sessions from ~/.omp/agent/sessions with the Pi
reader, give it a color and label, and resume it with omp --resume.
@nixfred
nixfred merged commit 71221b2 into nixfred:master Nov 10, 2026
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
@nixfred

nixfred commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Merged, thank you @brentkearney. I ran the real collector on a machine with Pi installed: no new stderr, and the runtime and snapshot size stay in the noise (about 0.7 s warm, 190 KB). The Pi and Oh My Pi legend renders in a Test Drive VM. I added the CHANGELOG entry and put Pi and Oh My Pi in the README agent list.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants