Skip to content

Comments

fix(tools): verify port exposure URL is reachable before reporting success#200

Open
SeanWeldon wants to merge 1 commit intoConway-Research:mainfrom
SeanWeldon:sean/199-verify-port-exposure
Open

fix(tools): verify port exposure URL is reachable before reporting success#200
SeanWeldon wants to merge 1 commit intoConway-Research:mainfrom
SeanWeldon:sean/199-verify-port-exposure

Conversation

@SeanWeldon
Copy link

Summary

  • expose_port now probes the public URL after the Conway API returns success
  • 3 HEAD request retries with exponential backoff (2s, 4s, 6s) and 5s timeout
  • If URL returns 404 after all attempts, returns a warning instead of false success
  • Skips verification for localhost (local dev mode)
  • No new dependencies — uses native fetch (Node 18+)

Changes

  • src/agent/tools.ts: Added URL reachability check to expose_port execute function (32 lines)

Testing

  • tsc --noEmit passes with zero errors
  • Verification is best-effort: network failures are caught and retried, never block the tool

Closes #199
Related: #90, #167

…ccess

The expose_port tool now probes the public URL after the API returns
success. If the URL returns 404 after 3 retries (a known Conway reverse
proxy routing bug), the tool warns the agent instead of silently
reporting success.

Closes Conway-Research#199

Co-Authored-By: Claude Opus 4.6 <[email protected]>
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.

[Bug Report] Port exposure returns 404 - Sandbox ID: 0ed824d6bff359b663db0ac1e16caa76

1 participant