summaryrefslogtreecommitdiff
path: root/docs/macos.md
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 18:43:09 -0300
committerGabriel Schneider <[email protected]>2026-11-17 18:43:24 -0300
commit484841325bb35b0bb7c55f7980178388c4e39c71 (patch)
treeb1a674c1f310e9e2befae9a9b3f0a2294e8c8568 /docs/macos.md
parentb23665597fcfd486e8f15942da25ce5708b77226 (diff)
downloadpardes-484841325bb35b0bb7c55f7980178388c4e39c71.tar.gz
pardes-484841325bb35b0bb7c55f7980178388c4e39c71.zip
docs: the manual and the notes made true about how pardes runs: next-daemon.md's opening says what is built and points at the new page, and its design's lines that went otherwise (a supervisor, subreaper, spawner and 9P root; every session a child of the daemon; the stub passing its terminal, no fork; the join's fork child; one socket; /n/<host>) are marked so; the guide's closed terminal (only while the daemon keeps it) and closed window (it ends the session unless it has clients), and its daemon that kept all of it; the reference's /sessions (client lines), bare attach (as a client), another machine's attach (built: HOST:NAME), three clients not four; building.typ's replica paragraph (no ping-only session, no platform in the hash); macos.md's Attach word and src/detached/, both gone; next-daemon.md's window client font and touchpad, both built since
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'docs/macos.md')
-rw-r--r--docs/macos.md23
1 files changed, 11 insertions, 12 deletions
diff --git a/docs/macos.md b/docs/macos.md
index d767dce2..17294520 100644
--- a/docs/macos.md
+++ b/docs/macos.md
@@ -74,7 +74,7 @@ fourteen are filled in (`src/macos.zig:1761`).
The machine-local half of those methods is no longer this file's. `forkShell`,
`writeFileBytes` and `writeFd` live in `src/host_io.zig` and are shared with
-the tui shell, the SDL shell and the detached daemon; `src/macos.zig` calls
+the tui shell and the SDL shell; `src/macos.zig` calls
them (`:1807`, `:1823`, `:1848`, `:1863`) and its own copies, together with the
four `extern "c"` declarations they needed (`forkpty`, `execv`, `chdir`,
`_exit`), are gone. Two `extern "c"` declarations remain here: `setenv`, and
@@ -1097,17 +1097,16 @@ used for the table and is not folded into the direct-path claim.
- **The `pipe` effect.** Selection filters need `pipeRequest(id)` copied into a
job, a worker to run the command, and a `pipe_resp` event back. Same shape as
`lsp`, one more response type.
-- **Detached sessions.** `Attach` (`SPC s a`) and `Detach` (`SPC s D`) are
- the tui's and the window's alone (`Builtin.enabled` is `pardes.can_attach`);
- were they built here, neither would work. `Detach` emits `Effect.detach`, this
- host fills in no `detach`, and `Pardes.perform` therefore reports
- `error.NotAttached` on the pane's message row (`src/pardes.zig:6837`).
- `Attach` emits `Effect.attach`, which `perform` turns into an `attach_req`
- the shell is supposed to consume from OUTSIDE `pump` with `takeAttach` — and
- `src/macos.zig` never calls `takeAttach`, so the word does nothing at all and
- says nothing either. Wiring it up means a unix-socket frontend loop beside
- the AppKit one, which is `src/detached/client.zig`'s job in the tty and SDL
- shells; see `docs/typ/building.typ`.
+- **Detached sessions.** `Detach` (`SPC s D`), `Adopt` and `Upgrade` are
+ compiled into the tui's and the window's builds alone (`enabled` is
+ `pardes.can_attach`, `src/builtins.zig`), and there is no daemon on macOS
+ (`daemon.supported` is Linux and FreeBSD): this build's session is the one
+ process it started, and closing it ends it. The `Attach` word and
+ `src/detached/` it went through are gone (`docs/next-daemon.md`, "Phase 3
+ notes"); attaching is `pardes attach`, a process of its own. What it would
+ take here is a client: the window build already is one on a Mac
+ (`pardes-gui attach HOST:NAME`), with no daemon on this side; see
+ `docs/typ/running.typ`.
- **IME and marked text.** Only finished characters reach `pardes_key`, so a
dead key composes nothing and Option is Alt rather than a compose modifier.
Real composition means implementing `NSTextInputClient` *and* giving the core