CORE · INPUT
Many devices can view; input still has one owner.
An input lease makes PTY write access a short-lived, server-verified right and fences old connections, late keys, and competing resize operations.
Controller and Viewer
| Role | Input | PTY resize |
|---|---|---|
| Controller | Allowed | Sole owner |
| Viewer | Read-only | Rejected |
TTL and renewal
A writable Attachment uses a 15-second TTL and renews at roughly one-third of that interval. If the connection disappears, the right expires within a bounded time instead of locking the Terminal forever.
Takeover and fencing
Takeover creates a new lease ID. The server uses it to reject late input, resize, and cleanup from an older Attachment, so the most recent controller is the only valid writer.
Terminal size
Only the current Controller publishes PTY geometry. Viewers can render within their local windows but do not change the rows and columns seen by the remote application.