Skip to content

docs(persistent-ptys): the role summaries say what the daemon does - #973

Merged
Blind-Striker merged 1 commit into
masterfrom
docs/887-persistent-pty-role
Nov 22, 2026
Merged

Blind-Striker merged 1 commit into
masterfrom
docs/887-persistent-pty-role

Conversation

@Blind-Striker

Copy link
Copy Markdown
Collaborator

📝 Description

What does this PR do?

It corrects the last two statements #887 lists. One is the PersistentPtyRole XML documentation, which ships in the package. The other is one getting-started sentence. No behaviour changes.

PersistentPtyRole:

  • The type summary said a connection that asked to control "can still be attached as an observer".
  • The Observer summary said an observer's "input is ignored".

At the pinned upstream, both are wrong:

  • Controller attach: a Controller attach without takeover fails while another attachment controls the terminal. The process daemon bails with "terminal already has controller" (packages/process-daemon/src/service.rs:1461). It is never downgraded.
  • Observer input: input from an attachment is sent as a control request (packages/process-daemon/src/daemon/server.rs:674, service.rs:494-512). A control request makes that attachment the controller and demotes the previous one (service.rs:1322-1345). So observer input is accepted and promotes the attachment.

I checked these at both v2.3.0 and v2.3.2. They now match the canon, the terminals guide and PersistentPtySession (corrected earlier).

docs/guide/getting-started.md: "the server exposes no activation barrier" contradicted the next point in the same list. The model and provider endpoints do wait for plugins (packages/server/src/handlers/model.ts:13,21), but for a bounded time. The sentence now says exactly that.

The other places #887 lists (client-runtime.md, docs/guide/terminals.md) were already corrected earlier. A repository grep finds no other statement of the downgrade or dropped-input assumption, and no SDK behaviour, test or sample relies on it.

Related Issue(s):

Closes #887

🔄 Type of Change

  • 📚 Documentation update

🎯 Protocol & API Surface

  • No public API change (XML documentation only; the API snapshots are unchanged)
  • No generated output changed
  • The pinned snapshot (spec/) is untouched
  • Nothing under external/ was hand-edited

✅ Completion Gate

  • The local check in quality-gates.md passes on the head rebased onto master: whitespace, format/style, clones, slopwatch, the release build, all test projects, the API snapshots, generate --verify, the fixed point, Extensions and Native AOT.

📚 Documentation

  • XML documentation comments updated
  • The consumer guide (docs/guide/getting-started.md) updated
  • CHANGELOG.md: no entry. The behaviour doesn't change, only the wording that describes it.

✅ Code Quality Checklist

  • No new analyzer warnings, and no new suppressions
  • Branch is up to date with the target branch, no merge conflicts
  • Commit messages carry no AI-attribution trailers

🔍 Additional Notes

Breaking Changes: none. Dependencies: none.

- `packages/process-daemon/src/service.rs:1461`: a Controller attach without takeover, while another attachment controls the terminal, bails with "terminal already has controller".
- `packages/process-daemon/src/daemon/server.rs:674` and `service.rs:494-512`: attachment input is sent as a control request.
- `service.rs:1322-1345`: a control request makes that attachment the controller and demotes the previous one.
- `packages/server/src/handlers/model.ts:13,21`: the model endpoints wait for plugins (`awaitPlugins`).
@Blind-Striker Blind-Striker added this to the Next milestone Nov 22, 2026
@Blind-Striker
Blind-Striker added this pull request to the merge queue Nov 22, 2026
@Blind-Striker Blind-Striker mentioned this pull request Nov 22, 2026
Merged via the queue into master with commit 390afca Nov 22, 2026
17 checks passed
@Blind-Striker
Blind-Striker deleted the docs/887-persistent-pty-role branch November 22, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Persistent terminals: four docs describe observer input and second-controller attach differently from the daemon

1 participant