status: show slot owner (reserving pid / lease name) #3

Closed
weiwen wants to merge 2 commits from issue-2 into main
Owner

Changes

tatami status now shows the reserving pid for in-use slots alongside the existing lease-holder display.

  • Added owner_pid: Option<i32> to SlotView (src/pool.rs:35), populated in list() via (slot.owner_pid != 0).then_some(...).
  • Added 👤 owner: pid {pid} line to text-mode output (src/cmd/status.rs:46-48).
  • Structured output (JSON/TOON) picks up the field automatically from SlotView's Serialize derive.

Before

🟡 1    feat         in-use      /tmp/pool/1/wt
     ⚙️  processes: 12345

After

🟡 1    feat         in-use      /tmp/pool/1/wt
     👤 owner: pid 12345
     ⚙️  processes: 12345

Closes #2

Closes #2

## Changes `tatami status` now shows the reserving pid for in-use slots alongside the existing lease-holder display. - Added `owner_pid: Option<i32>` to `SlotView` (`src/pool.rs:35`), populated in `list()` via `(slot.owner_pid != 0).then_some(...)`. - Added `👤 owner: pid {pid}` line to text-mode output (`src/cmd/status.rs:46-48`). - Structured output (JSON/TOON) picks up the field automatically from `SlotView`'s `Serialize` derive. ### Before ``` 🟡 1 feat in-use /tmp/pool/1/wt ⚙️ processes: 12345 ``` ### After ``` 🟡 1 feat in-use /tmp/pool/1/wt 👤 owner: pid 12345 ⚙️ processes: 12345 ``` Closes #2 Closes #2
weiwen closed this pull request 2026-07-10 03:41:33 +08:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
weiwen/tatami!3
No description provided.