The page's connect-a-machine command points the other machine at localhost

Open Beginner friendly
#49 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript

Research direction

Read server.js:490 to trace how the page builds the address, then inspect the “Connect another machine” section in apps/client/client.html and the command in apps/client/runner.js:290. Check how the server’s bind address affects that command and compare the page’s instructions with the README. Done when following the page alone gives a command that can reach the server, or tells the user what to change.

Written by the indexing model from the issue text.

Description

scout

Open the page the way the README tells you (npx github:oskarrough/agent-ide, then the printed URL) and "Add runner" gives curl http://localhost:3917/connect-runner | AGENT_IDE_KEY=… sh …, "Run it on laptop". On laptop, localhost is laptop. The server also only listens on 127.0.0.1 unless started with HOST=0.0.0.0, which the page never mentions; only the README does.

Right: following the page alone, a newcomer ends up with a command that can reach the server, or is told what to change so it can.

Evidence:

$ node server.js          # prints: agent-ide  http://127.0.0.1:3917
$ node cli.js key laptop2
  curl -fsSL http://localhost:3917/connect-runner | AGENT_IDE_KEY=air_… sh -s -- --name laptop2 --dir .

The address comes from the Host header of whatever opened the page (server.js:490). The line under the command (apps/client/runner.js:290) says only "Run it on laptop, in the folder agents should work in." The section's copy (apps/client/client.html, "Connect another machine") says "It has to reach the server: same network, or Tailscale."

Dominant language
JavaScript
Stars
1
Forks
1
Avg merge
14m
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from oskarrough/agent-ide

All issues in oskarrough/agent-ide

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.