You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
server run --host fails on a host with IPv6 disabled #8
server run --host NAME records the dual-stack wildcard :: as the bind and selects the dual-stack server class, whose address family is AF_INET6. On a host with IPv6 disabled the socket constructor raises an unsupported-address-family error and the server exits without serving.
The recorded :: persists in access.json, so a later bare server run fails the same way until that file is deleted.
Expected: --host binds every interface, which is what it asks for, in whatever family the kernel has.
Smallest repro: on a Linux host with IPv6 disabled, run server run --host with any name.
This matters more than an ordinary platform gap, because --host is the only remedy the skill documents for a derived address the reader cannot reach — and the case that most needs it is a headless host, where the derived address is loopback and no browser is local. So the one escape hatch fails exactly where it is wanted.
A fallback to the IPv4 wildcard 0.0.0.0 when AF_INET6 is unavailable would say the same thing — every interface — in the family that is left. The record could keep ::, since what a restart has to reproduce is the URL, and that states the host and the port rather than the bind.
The exit is one step earlier than a bind failure: DualStackHTTPServer sets address_family = AF_INET6, and socketserver opens the socket in __init__, so EAFNOSUPPORT arrives before server_bind runs. The except OSError in cmd_serve only continues on EADDRINUSE, so the error surfaces as the recorded-address message — whose two remedies are deleting access.json and re-running with --host, which is exactly what the reader just did.
The fix takes the shape you described: server_at restates the wildcard as 0.0.0.0 when AF_INET6 is refused, and the record keeps ::. Only the wildcard is restated — a literal v6 address keeps its refusal, since answering it with every interface would widen the exposure that record chose.
Verification
test_the_stated_host_wildcard_binds_what_a_kernel_without_ipv6_has fakes the kernel rather than the product: socket.socket raises EAFNOSUPPORT for AF_INET6, and the test then asserts the wildcard comes up on an AF_INET socket bound to 0.0.0.0 and answers a real request. With the fallback deleted it fails with OSError: [Errno 97] Address family not supported by protocol — this issue's own error.
The two suite tests that need a real IPv6 stack are unchanged and still need one: their fixture asks for the dual-stack socket on purpose and asserts [::1] reachability, so the note in CLAUDE.md about the cloud container still stands.
Activity
leaf-agent commentedon Aug 19, 2026
Reproduced and fixed in #9.
The exit is one step earlier than a bind failure:
DualStackHTTPServersetsaddress_family = AF_INET6, andsocketserveropens the socket in__init__, soEAFNOSUPPORTarrives beforeserver_bindruns. Theexcept OSErrorincmd_serveonly continues onEADDRINUSE, so the error surfaces as the recorded-address message — whose two remedies are deletingaccess.jsonand re-running with--host, which is exactly what the reader just did.The fix takes the shape you described:
server_atrestates the wildcard as0.0.0.0whenAF_INET6is refused, and the record keeps::. Only the wildcard is restated — a literal v6 address keeps its refusal, since answering it with every interface would widen the exposure that record chose.Verification
test_the_stated_host_wildcard_binds_what_a_kernel_without_ipv6_hasfakes the kernel rather than the product:socket.socketraisesEAFNOSUPPORTforAF_INET6, and the test then asserts the wildcard comes up on anAF_INETsocket bound to0.0.0.0and answers a real request. With the fallback deleted it fails withOSError: [Errno 97] Address family not supported by protocol— this issue's own error.The two suite tests that need a real IPv6 stack are unchanged and still need one: their fixture asks for the dual-stack socket on purpose and asserts
[::1]reachability, so the note inCLAUDE.mdabout the cloud container still stands.fix: serve the stated-host wildcard where the kernel has no IPv6
Complete the notification authoring workflow (#481)
Re-measure the architecture list against the code it describes
Remove the completed briefs from the workspace follow-up note (#786)
Let each feature owner declare its own keys at boot (#815)
Keep TODO.md's #8 deleted, as main deleted it
Read a thread's word, name and id from one owner on every surface (#3075
One hit for press and preview; passages read segment by segment; prev…
Every read of placement settles first; ids reach placement; the file …
Refuse a message the HTML parser repairs for the repair alone, before…
Keep a session's hooks, follower and commands on the Leaf copy it loa…