summaryrefslogtreecommitdiff
path: root/src/tape.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-01 15:50:00 -0300
committerGabriel Schneider <[email protected]>2026-11-01 15:57:25 -0300
commitd79c5de9dbf77c06fb2174782093051786be2153 (patch)
tree8887d7e6dfea6023b9c7a05124eab56037198868 /src/tape.zig
parent15bd47670102ceae36565ee299fd8a40625c3b21 (diff)
downloadpardes-d79c5de9dbf77c06fb2174782093051786be2153.tar.gz
pardes-d79c5de9dbf77c06fb2174782093051786be2153.zip
fs: /sessions, the pardes daemon's registry in every session's tree, as pardes --ps lists it and a record a line, as the daemon says it (daemon <pid>; session <pid> tty|gui attached|detached <name>, a shell <pid> line for each shell it holds; orphan <pid>): a snapshot frozen at the open as /listeners is, its read the daemon's `list` asked out of the turn as a tape site (`sessions`), so a replica reads the authority's answer; none in a build with no daemon (web, esp32), and `no pardes daemon answers` with none running or one too old to list; README, the reference and Scripting's ls say it; test/daemon.py --manage reads it beside --ps
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/tape.zig')
-rw-r--r--src/tape.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tape.zig b/src/tape.zig
index 74576eed..c0f33f21 100644
--- a/src/tape.zig
+++ b/src/tape.zig
@@ -98,6 +98,8 @@ pub const Site = enum(u16) {
preview,
/// A search run on the loop (Stream.runHere: a 9P write's Grep or Find).
search,
+ /// The daemon's registry, as /sessions reads it (daemon.ask "list").
+ sessions,
// Read in place (`value`).
clock,
budget,