Conversations on macOS: desktop records, liveness without /proc #81

Open
opened 2026-10-02 22:01:29 +00:00 by jhgaylor · 1 comment
Owner

From: #72 (M33). Label: macos.

M33 was built and checked on geek (Linux) only. On the Mac (jake-mini):

  • The desktop app's records are assumed at ~/Library/Application Support/Claude/claude-code-sessions/<account>/<org>/local_<uuid>.json (S20 saw them under ~/.config/Claude on Linux). Check the path and the fields (cliSessionId, title, isArchived).
  • Liveness has no /proc: alive() falls back to the pid alone, so a reused pid counts as live, and scope_of finds no pane or block. Use procStart some other way (sysctl kern.proc.pid start time, or ps -o lstart), and the daemon's own record of which pids are its panes' and agents'.
  • Scratch workspaces of the desktop app: same deletion behaviour as Linux?
  • Done when: on jake-mini, a terminal session and a desktop Code tab session list with the right source, title and liveness, open, and continue (or fork while open).
**From:** #72 (M33). Label: macos. M33 was built and checked on geek (Linux) only. On the Mac (jake-mini): - **The desktop app's records** are assumed at `~/Library/Application Support/Claude/claude-code-sessions/<account>/<org>/local_<uuid>.json` (S20 saw them under `~/.config/Claude` on Linux). Check the path and the fields (`cliSessionId`, `title`, `isArchived`). - **Liveness** has no `/proc`: `alive()` falls back to the pid alone, so a reused pid counts as live, and `scope_of` finds no pane or block. Use `procStart` some other way (`sysctl kern.proc.pid` start time, or `ps -o lstart`), and the daemon's own record of which pids are its panes' and agents'. - **Scratch workspaces** of the desktop app: same deletion behaviour as Linux? - **Done when:** on jake-mini, a terminal session and a desktop Code tab session list with the right source, title and liveness, open, and continue (or fork while open).
Author
Owner

Merged into main (5f3d37a, from e73829b). CI passed on both runners.

  • Liveness on macOS: compares procStart the way Claude Code writes it there (LC_ALL=C TZ=UTC ps -o lstart=) with the process's start time from libproc. A reused pid no longer counts as live, on either OS.
  • Holders without scopes: a holder is placed in a pane or agent block by walking its parent processes up to the daemon's own pane and agent pids (new Block::pid()). The systemd scope is the fallback.
  • Tests: unit tests plus a daemon test, a_conversation_in_a_pane_says_which, pass on macOS.

Found on jake-mini, read-only: its desktop app (1.7196.0) has never run a Code tab session, so claude-code-sessions/ doesn't exist there yet and its path and fields are unconfirmed (they match the Linux records). Cowork sessions keep their transcripts inside their VM and aren't listed. jake-mini also has three illogicald processes running (started Oct 2 02:30, Oct 2 16:03 and Oct 3 10:17 UTC), which is worth a look.

Left open for Jake: on jake-mini, run one desktop Code tab session. Check it lists as desktop with its title and as live, forks while open, continues once closed, and whether its scratch workspace is deleted with it. Also check that a terminal claude in an illogical pane shows "open in pane %N".

Merged into main (5f3d37a, from e73829b). CI passed on both runners. - **Liveness on macOS:** compares `procStart` the way Claude Code writes it there (`LC_ALL=C TZ=UTC ps -o lstart=`) with the process's start time from libproc. A reused pid no longer counts as live, on either OS. - **Holders without scopes:** a holder is placed in a pane or agent block by walking its parent processes up to the daemon's own pane and agent pids (new `Block::pid()`). The systemd scope is the fallback. - **Tests:** unit tests plus a daemon test, `a_conversation_in_a_pane_says_which`, pass on macOS. Found on jake-mini, read-only: its desktop app (1.7196.0) has never run a Code tab session, so `claude-code-sessions/` doesn't exist there yet and its path and fields are unconfirmed (they match the Linux records). Cowork sessions keep their transcripts inside their VM and aren't listed. jake-mini also has three illogicald processes running (started Oct 2 02:30, Oct 2 16:03 and Oct 3 10:17 UTC), which is worth a look. **Left open for Jake:** on jake-mini, run one desktop Code tab session. Check it lists as *desktop* with its title and as live, forks while open, continues once closed, and whether its scratch workspace is deleted with it. Also check that a terminal `claude` in an illogical pane shows "open in pane %N".
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
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
jhgaylor/illogical#81
No description provided.