Skip to content

Select the Go pane I/O session cleanup in the setup guide - #370

Draft
tony wants to merge 3 commits into
mainfrom
fix-go-pane-io-excerpts
Draft

tony wants to merge 3 commits into
mainfrom
fix-go-pane-io-excerpts

Conversation

@tony

@tony tony commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Refs libtmux/libtmux-go#124 and libtmux/libtmux-go#266

The Go pane I/O guide used a deferred function to locate the session cleanup it quotes. The example now also defers cleanup of its private tmux server, so the selector matched both blocks and the docs build stopped. The guide now selects the session cleanup by its context and session.Kill. Its socket instructions cover both the earlier named socket and the newer private path. Failing Go docs job

The HTML and Markdown renderers selected the same nine Go excerpts on the Go parent and on the proposed example. Restoring the old selector reproduced the ambiguous match. The scoped site built with this Docs commit and the public #266 Go head. Copying the complete program out of the rendered page produced its expected output on tmux 3.7c and 3.8.

The guide's API backlink now points to tmux.ServerOptions.SocketPath. The first hosted run caught the stale backlink. With all 199 revision-bound guides staged, the committed index matched fresh generation on the Docs parent. Regeneration on this revision moved one backlink and preserved the other 3,121 entries. Original index check

The missing-source regression now changes only the file named by an excerpt. Its previous setup depended on the Go program’s first line and stopped before the checker ran. With a missing file, the checker names the guide and the source path. Disabling that check makes the regression fail. Original fixture failure

The final hosted publication audit passed the guide checks and assembled the site. Its output suite reported 13,118 tests passed and two timeouts. The Markdown footer scan took 5.747 seconds against a five-second limit. The synthetic Go MCP server passed earlier in the same job and then hit its fixture’s 200 ms discovery limit. Both deadlines predate this PR. Controlled runs reproduced each timeout on the Docs parent and this revision. The separate Go-scoped build with libtmux/libtmux-go#266 passed and matched all 12,412 files in the previous build manifest. This PR remains a draft. Hosted audit

Tool use: Codex traced the failing source selector and checked the corrected excerpts against both Go revisions.

why: The guide matched both the session and private server teardown.
The Go documentation build could no longer render the cleanup example.

what:
- Select the session cleanup by its context and Kill call.
- Explain how the Go example selects a named socket or an exact path.
- Describe who stops the private server and removes its directory.
tony added 2 commits December 2, 2026 22:32
why: The attach guide now explains the exact socket path. Its API
backlink still pointed at the general server options type.

what:
- Regenerate the guide index from the staged documentation sources.
- Move the attach guide backlink to ServerOptions.SocketPath.
why: The missing-file case stopped when a Go example changed its
setup line. The checker never saw the missing source file.

what:
- Change the file named by the first Go excerpt in the attach guide.
- Keep its live source anchors and require the missing-file error.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-preview Run CI without publishing a PR preview.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant