openclaw/docs/reference
Peter Steinberger 8095d778b0
fix(test): Gateway e2e connect fails with 1006 when another fixture takes the instance port (#163003)
gateway-cold-agent-abort intermittently failed with `gateway closed during connect (1006)` about 260 ms into the test, too early for its own cold Gateway child to have answered readiness.

OpenClawTestInstance claims its port block and releases its reservation listener right before spawning the child. In-process Gateway fixtures picked ports with getGatewayE2ePortBlock(), a probe that released its claim before returning, and then started a Gateway whose listener retries EADDRINUSE every 500 ms. A fixture that probed the same candidate just before the instance claimed it won the port at the handoff, and the instance's /readyz was answered by that foreign Gateway (1006 while it closed, token mismatch while alive).

getGatewayE2ePortBlock is removed. acquireGatewayE2ePortBlock (beside startClaimedGateway) returns a held claim, and every caller keeps it until the Gateway or server bound to that port has closed, including same-port restarts, unstarted-claim guards, and listener-specific release in the MCP App conformance fixture. Kernel-assigned port-0 binders stay out of scope (the Linux pool excludes the ephemeral range). The test instance gains bounded post-start diagnostics (diagnose(), responder uptime vs child age, Linux listener owners, handshake stage in the close error).

Regression: an instance whose first candidate is an in-process Gateway E2E port must allocate a different port (fails on the probe-only helper).
2026-10-01 23:04:05 -07:00
..
database-schemas fix(sessions): preserve details after background writes (#163030) 2026-10-01 23:31:59 -05:00
full-release-validation feat(release): let a release lead record an exact-job flake instead of blocking publication (#161515) 2026-09-30 04:31:07 +00:00
session-management-compaction feat(sessions): snooze sessions from the sidebar menu (#161960) 2026-09-30 14:32:33 -07:00
templates improve(agents): stop agents refusing or arguing over requested work (#157447) 2026-09-24 16:16:21 -05:00
test fix(test): Gateway e2e connect fails with 1006 when another fixture takes the instance port (#163003) 2026-10-01 23:04:05 -07:00
AGENTS.default.md improve(agents): stop agents refusing or arguing over requested work (#157447) 2026-09-24 16:16:21 -05:00
api-usage-costs.md docs: fix verified accuracy findings in channels, cli, nodes, and reference (#143950) 2026-09-10 18:58:15 +08:00
credits.md docs: fix and reciprocate cross-page links across install, help, reference, start, and web (#143773) 2026-09-10 15:35:25 +09:00
database-schemas.md perf(state): retire periodic runtime integrity scans (#162015) 2026-09-30 19:44:01 +00:00
device-models.md feat(ios): render Mermaid diagrams in native chat (#135470) 2026-09-01 17:42:01 -07:00
full-release-validation.md fix(ci): preserve first failures through release validation 2026-09-23 18:27:19 -07:00
memory-config.md fix(memory): restore embeddings with Codex OAuth (#160878) 2026-10-01 17:53:09 -07:00
openclaw-ai.md docs: fix 12 concrete defects from the ux audit remainder (#144128) 2026-09-25 17:28:14 +08:00
prompt-caching.md fix(active-memory): recalls on claude-cli never reuse the prompt cache (#160768) 2026-09-29 04:52:53 +05:30
pull-request-review-flow.md fix(scripts): prevent host tooling drift from blocking PR workflows (#152078) 2026-09-18 14:34:18 -07:00
release-performance-sweep.md build(deps): remove npm shrinkwrap; mirror pnpm lock into transient package locks (#114006) 2026-07-26 01:29:55 -04:00
RELEASING.md fix(release): require signed publication tags (#162323) 2026-09-30 21:27:24 -07:00
rich-output-protocol.md fix: resend inbound attachments referenced from chat history (#158720) 2026-09-26 21:02:02 +05:30
rpc.md feat(channels): add channel-owned setup contracts (#112176) 2026-07-22 19:57:42 -04:00
secret-placeholder-conventions.md docs: fix 12 concrete defects from the ux audit remainder (#144128) 2026-09-25 17:28:14 +08:00
secretref-credential-surface.md refactor: retire the TaskFlow Webhooks plugin (#158225) 2026-09-25 20:29:15 -07:00
secretref-user-supplied-credentials-matrix.json refactor: retire the TaskFlow Webhooks plugin (#158225) 2026-09-25 20:29:15 -07:00
session-management-compaction.md docs(reference): split the session management deep dive by reader job (#143082) 2026-09-09 21:03:41 +09:00
test.md docs(reference): split the testing reference by reader job (#141221) 2026-09-09 02:15:05 +08:00
token-use.md fix(models): apply downloaded catalogs without a Gateway restart (#158000) 2026-10-01 13:27:55 +08:00
transcript-hygiene.md improve: sessions_send delivers a peer's reply once instead of running automatic agent ping-pong (#162227) 2026-10-01 17:28:00 +00:00