Skip to content

server(docs): Explain inherited socket selection - #200

Merged
tony merged 2 commits into
checkout-setupfrom
inherited-socket-guide
Dec 6, 2026
Merged

tony merged 2 commits into
checkout-setupfrom
inherited-socket-guide

Conversation

@tony

@tony tony commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Closes #187.

What changed, and why

Inside tmux, the inherited TMUX selector can send an implicit connection to the surrounding server. The first-task guide and Server.new/1 reference now describe how explicit selectors, library environment variables and native selection determine the socket.

Checks run

The socket selection suites ran against real private servers on Linux. The example-source check, ExDoc build and rendered link check passed.

  • Socket selection passed in 4.70 s.
  • Rendered links passed in 0.77 s.

Review evidence

Server.new/1 owns socket selection. Its reference and first-task guide describe explicit selectors, library environment variables and the surrounding tmux server.

This is a reference and guide correction. The selector precedence suite used private real servers. ExDoc and the rendered-link check exercised the reader-facing reference.

Merge stack

This PR follows #199 in the tested merge order. The comparison shows this PR’s own changes. Stack #206 · Changes in this PR

All six required Linux jobs passed on 37cdeec15. GitHub records the stack merge at 15b285de9. CI run · Merged commit

Tool use

Codex extracted this change from #169 and ran the checks above on the topic branch. A separate Codex reviewer checked the component boundaries and the two corrected test fixtures.

tony added 2 commits December 5, 2026 19:05
why: A reader running inside tmux could expect the default server
while the descriptor still carries the surrounding server's TMUX.

what:
- Describe inherited socket selection in the first task.
- Align the constructor and descriptor type with the module contract.
@tony
tony changed the base branch from main to checkout-setup December 6, 2026 01:08
@tony
tony force-pushed the inherited-socket-guide branch from 0b4eada to 37cdeec Compare December 6, 2026 01:08
@tony
tony added this pull request to stack #206 December 6, 2026 01:08
@tony
tony merged commit 15b285d into main Dec 6, 2026
6 of 10 checks passed
tony added a commit that referenced this pull request Dec 6, 2026
why: A tmux hook could add output to a pane or option read. A large
MCP reply could hide an operation outcome or advance a cursor before
the client received the page.

what:
- Fit the Program listener to the server socket path, wake waiters on
  exit, and retry pane removal after a lost reply (#191, #192, #193).
- Keep MCP operation outcomes readable and size pages before advancing
  their cursors. Show the STDIO client reading a result (#194, #195).
- Keep hook output out of pane captures and option reads. Use
  `Pane.wait_for_text/4` in the notebook (#196, #197).
- Check root exit separately from trace delivery in cold-start tests
  (#198).
- Document checkout dependencies, inherited sockets and capability
  APIs (#199, #200, #201).
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.

The first-task guide gives the wrong socket inside tmux

1 participant