agent-ide --help starts a server instead of helping

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript, node.js
Domain
cli

Research direction

Read bin.js:25-27 to see how arguments are routed, then compare with the help handling in cli.js:204. Check how the executable behaves for --help and an unknown command such as threads3; done means help exits after printing usage and an unknown command reports an error without starting the server.

Written by the indexing model from the issue text.

Description

scout

Asking the one executable for help starts a server. The README sends people to --help for the CLI, and npx github:oskarrough/agent-ide --help is the obvious way to ask. Any word that isn't a CLI command does the same, so a typo like threads3 or --version boots a server too.

Right looks like: help prints help, and an unknown command says so instead of serving.

Evidence:

  • bin.js:25-27 sends everything that isn't runner or one of eight command names to server.js.
  • Ran node bin.js --help on a machine whose :3000 was already taken by a server. It started its own server and a runner that connected to the one on :3000, and it kept running until I killed it. ps showed node bin.js --help plus runner.js --server http://127.0.0.1:3000 --dir <cwd>.
  • node cli.js --help does print help (cli.js:204).
Dominant language
JavaScript
Stars
0
Forks
0
Avg merge
23m
Merged PRs (30d)
8

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.