Skip to content

fix(acp): use http_bind config field when autostarting HTTP server#3291

Merged
bug-ops merged 3 commits intomainfrom
fix/3290-acp-http-bind-ignored
Apr 23, 2026
Merged

fix(acp): use http_bind config field when autostarting HTTP server#3291
bug-ops merged 3 commits intomainfrom
fix/3290-acp-http-bind-ignored

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Apr 23, 2026

Summary

  • run_acp_http_server now falls back to app.config().acp.http_bind instead of the hardcoded literal "127.0.0.1:9800" when no CLI bind_override is provided
  • The autostart path (AcpTransport::Http / AcpTransport::Both) now respects [acp] http_bind from config
  • Existing behaviour is preserved: the serde default for http_bind is "127.0.0.1:9800", so configs without the field continue to work unchanged

Test plan

  • All 8235 unit tests pass (cargo nextest run --workspace --lib --bins)
  • Set [acp] transport = "http" + http_bind = "127.0.0.1:9811" in config, run agent, verify curl http://127.0.0.1:9811/health → 200 OK
  • Verify CLI --acp-http-bind override still takes precedence over config field

Closes #3290

@github-actions github-actions Bot added bug Something isn't working size/XS Extra small PR (1-10 lines) labels Apr 23, 2026
@bug-ops bug-ops enabled auto-merge (squash) April 23, 2026 23:15
bug-ops added 3 commits April 24, 2026 01:22
Previously run_acp_http_server always fell back to the hardcoded
default 127.0.0.1:9800 when bind_override was None. The autostart
path (AcpTransport::Http / Both) never passed the CLI override, so
acp.http_bind from config was silently ignored.

Now falls back to app.config().acp.http_bind, which carries the
serde default (127.0.0.1:9800) when not set in config, preserving
existing behaviour.

Closes #3290
@bug-ops bug-ops force-pushed the fix/3290-acp-http-bind-ignored branch from 5727747 to 8354bc6 Compare April 23, 2026 23:22
@bug-ops bug-ops merged commit 66b600d into main Apr 23, 2026
32 checks passed
@bug-ops bug-ops deleted the fix/3290-acp-http-bind-ignored branch April 23, 2026 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size/XS Extra small PR (1-10 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

acp: http_bind config field ignored, server always binds to default port

1 participant