Skip to content

docs: exit stdio tutorials cleanly on EOF - #57

Merged
jmgilman merged 1 commit into
masterfrom
docs/tutorial-stdio-exit
Sep 11, 2026
Merged

docs: exit stdio tutorials cleanly on EOF#57
jmgilman merged 1 commit into
masterfrom
docs/tutorial-stdio-exit

Conversation

@jmgilman

Copy link
Copy Markdown
Contributor

The README and first-server tutorial passed srv.Run directly to log.Fatal, which exits 1 even when Run returns nil after normal stdin EOF. Handle only non-nil errors.

Verified the tutorial verbatim in a disposable module pinned to published CodeMode v0.2.0 and SDK v1.7.0. Discovery and execution succeeded before the fix, but normal EOF exited 1. The corrected tutorial returns the documented lookup result and exits 0 on EOF. No runtime API or behavior changes.

@jmgilman
jmgilman merged commit 19972a6 into master Sep 11, 2026
7 checks passed
@jmgilman
jmgilman deleted the docs/tutorial-stdio-exit branch September 11, 2026 06:19
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.

1 participant