omp packages

@clementprevot/pi-busy-session-guard0.1.3

Pi extension that confirms new, resumed, or forked sessions while work is still running

GitHub Actions Published 6 days ago MIT ~471 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

@clementprevot/pi-busy-session-guard

A Pi extension that asks before you abandon active work: before starting a new session, resuming, or forking, it checks whether anything is still running and asks for confirmation, so you never silently abandon an active run.

Install

pi install npm:@clementprevot/pi-busy-session-guard

Updates ship with pi update --extensions. The extension applies to your next session (quit and relaunch or issue a /reload command).

How it works

The extension tracks the main agent state (agent_start, agent_settled, session_start) and asks pi-subagents for its active background runs over its in-process RPC channel (subagents:rpc:v1:request / reply). Before a new session, a resume, or a fork, it shows what is still running and asks you to confirm:

New session while 3 run(s) are active?
- main agent is mid-turn
- research: scouting libraries
... and 1 more

pi-subagents is optional: if nothing replies within 500ms, the extension treats that as no active runs, so it never blocks on missing infrastructure. Headless sessions (no UI) are never blocked either.

Configuration

None.

Pairs well with

This guard protects the commands shipped by two sibling extensions from the same author: @clementprevot/pi-session-archive and @clementprevot/pi-session-search.

Local development

npm install
npm test
npm run typecheck

To try the extension in a live session without installing it:

pi -e /path/to/this/repo

License

MIT