omp packages

@mblarsen/pi-workmux-rename0.1.1

Rename the current workmux worktree and move its Pi session.

GitHub Actions Published 9 days ago MIT ~242 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

workmux-rename

Rename the current workmux worktree without leaving the active Pi conversation behind.

Usage

Command Description
/workmux-rename <new-name> Rename the current worktree and move this Pi session into its new directory
/workmux-rename --branch <new-name> Also rename the underlying git branch
/workmux-rename -b <new-name> Short form of --branch

The extension intentionally supports only workmux's current-worktree form. Renaming another worktree cannot meaningfully move the current Pi session with it.

How it works

  1. Captures the linked worktree's stable Git admin directory.
  2. Runs workmux rename [--branch] <new-name> with argument-safe process execution.
  3. Resolves the renamed directory from Git's updated gitdir pointer, avoiding stale process cwd values.
  4. Writes a complete live-session snapshot into Pi's session bucket for the renamed directory, including fresh sessions Pi has not flushed to disk yet.
  5. Relaunches Pi in the renamed directory and trashes the old session after the replacement starts.

This follows the lifecycle used by pi-move-session. If the current /tree selection is not the persisted branch tip, the command warns before renaming because the replacement reopens at the persisted tip.

Requirements

  • workmux available on PATH
  • A persisted Pi session
  • A non-main workmux worktree
  • trash is recommended; without it, the original session file is retained rather than permanently deleted

Install

pi install npm:@mblarsen/pi-workmux-rename

Then run /reload or restart Pi.