summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-29 10:48:56 -0300
committerGabriel Schneider <[email protected]>2026-10-29 12:13:25 -0300
commit9be47b76e4edf4ddb56e4d572c14b54bf45fdd39 (patch)
tree602d0943dc1c48bb4e90a7f9d9de16e541cdb981 /src
parent5c23bd8b1bbdbbacd99b11e75d38f7ce1801cd8a (diff)
downloadpardes-9be47b76e4edf4ddb56e4d572c14b54bf45fdd39.tar.gz
pardes-9be47b76e4edf4ddb56e4d572c14b54bf45fdd39.zip
docs: the daemon, Detach, --attach and Adopt; phase 3 notes in docs/next-daemon.md
building.typ's detached sessions are the daemon and its sessions; the guide, cheatsheet and reference say what Detach, a closing terminal, --attach of each kind and Adopt do, and that attaching from another machine waits for phase 5. docs/next-daemon.md records the forks taken (sessions register and are not the daemon's children, and why; how it starts; masters; Adopt as a word; the stub's signals and job control; --detach; the Attach word; the harness switch), the known gaps, and the termios trap. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/CHANGELOG.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md
index 4466ad26..10cc451d 100644
--- a/src/CHANGELOG.md
+++ b/src/CHANGELOG.md
@@ -2,6 +2,29 @@
## Unreleased
+- One `pardes --daemon` per user keeps sessions, started by the first
+ session and gone once it keeps nothing. `pardes` in a terminal forks
+ its session off and stays as its stub: `Detach` (`SPC s D`), or a
+ terminal that closes, puts the terminal back and leaves the session
+ running in place (no fork of the core, no dump), and the stub ends.
+ `pardes --attach[=name]` in any terminal takes it back there. A
+ window's Detach closes the window and keeps the process;
+ `pardes-gui --attach[=name]` opens it again. A terminal session takes a
+ terminal and a window session a window, and the other is refused in
+ words. The daemon holds a dup of every shell's pty: a session killed
+ outright leaves its shells running, and `Adopt` in another session
+ takes them in as terminal panes (what they showed is gone; a resize
+ makes them redraw). A hangup never ends a session the daemon keeps (it
+ is the terminal's end); TERM and INT do, its shells with it.
+ `PARDES_DAEMON=off` runs a session as before.
+- The frame wire goes: `src/detached/server.zig`, `client.zig` and the
+ cell frames of `wire.zig`, the frontends that drew a session's screen
+ from them, the smallest-common-grid rule, and the `Attach` word that
+ switched a session's own terminal to another. A `--detach` session is
+ now a terminal (or window) session with none attached yet. Attaching
+ from another machine is gone until the replicated clients
+ (docs/next-daemon.md, phase 5); `wire.zig` keeps the framing, the hello
+ and the input events for them.
- One PNG and one JPEG decoder in a binary: images decode through wuffs,
the decoders ghostty uses (ghostty-vt already links them), and stb_image
keeps only the other formats. stb's own inflate and image writer go, as