Skip to content

docs(agent-device): say what the local profile needs when the worker listens on one network address - #1936

Draft
thymikee wants to merge 1 commit into
mainfrom
fix/agent-device-profile-loopback
Draft

thymikee wants to merge 1 commit into
mainfrom
fix/agent-device-profile-loopback

Conversation

@thymikee

Copy link
Copy Markdown
Member

Summary

agent-device is adopting a credential transport rule (its ADR 0041, for 0.22): a token goes only over https or loopback http. 0.22+ refuses anything else, 0.21.x warns, and AGENT_DEVICE_ALLOW_INSECURE_TRANSPORT=1 overrides it.

The same-Mac profile already uses loopback for a loopback or wildcard http.host. With one network address, HTTP listens only there, so a loopback URL would not reach it.

Choice: keep that address and document the two ways out. A second loopback listener would add a bind that can fail, open a socket the operator did not configure, and change ADR 0046 §2.

No behaviour change: user docs, one why: comment and a test for the kept address.

Validation

  • Socket probe, macOS 27.0: bound to one network IPv4, 127.0.0.1 and ::1 refuse. Bound to :: or 0.0.0.0, 127.0.0.1 connects.
  • vitest run --project unit src/agent-device/local-profile.test.ts: 7 passed. The new test fails when profileOrigin maps every IPv4 address to loopback.
  • Not run: website build, a real agent-device client. The warning and refusal were not yet in agent-device main or its 0.22 branch.
  • CI: pending.

🤖 Generated with Claude Code

Written by an agent.

…listens on one network address

agent-device 0.22 refuses to send a token over plain http off loopback, and
0.21.x warns. The profile already uses loopback wherever the listener is sure
to answer there; a worker bound to one network address answers nowhere else,
so the profile keeps naming it and the docs say what to do.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
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