Skip to content

fix(install): fetch the full 8-module relay closure - #2

Closed
qingyun-wu wants to merge 1 commit into
mainfrom
fix/installer-full-closure
Closed

qingyun-wu wants to merge 1 commit into
mainfrom
fix/installer-full-closure

Conversation

@qingyun-wu

Copy link
Copy Markdown
Contributor

The merged install.sh fetched 6 of the relay client's 8 transitive deps — util_paths.py and sutando_config.py (pulled via the bridge / send_allowlist chain) were missing, so a fresh install would ModuleNotFoundError on first run. Adds them; smoke test now asserts all 8 land.

Found while building the PyPI package (sonichi/sutando#2082), whose closure analysis surfaced the true 8-module set. Interim fix — once ag2-task-relay-client publishes, this sparse-fetch is replaced by pip install ag2-task-relay-client.

Test: sh install.test.sh green (fetches + asserts 8 files).

🤖 Generated with Claude Code

…ndo_config)

The fetch list had 6 of the relay client's 8 transitive deps — util_paths.py and
sutando_config.py are pulled by the bridge/send_allowlist chain, so an install
would ModuleNotFoundError at first run. Exhaustive closure now covered; smoke
test asserts all 8 land.

(Interim correctness — once ag2-task-relay-client is on PyPI, sonichi/sutando#2082,
this sparse-fetch is replaced by `pip install ag2-task-relay-client`.)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@qingyun-wu

Copy link
Copy Markdown
Contributor Author

Blocking finding:

  • [P1] The installer still starts only the worker, so the relay closure fix cannot make the one-liner functional yet. This PR correctly adds util_paths.py and sutando_config.py to the fetched relay files, and the updated smoke test confirms all 8 files are fetched. But the generated run command and service definitions still execute only $WORKER_BIN (install.sh:115-116, install.sh:137, install.sh:166, install.sh:177-179). The agent-connect console script scans the local workspace only; it does not launch remote-gateway-bridge.py, long-poll tasks, or post results. Because feat: one-line installer (curl | sh) for BYO-agent connect #1 merged with that issue still present, approving this follow-up would leave the advertised one-line installer as a persistent idle worker. Please make the printed command and launchd/systemd/nohup paths invoke a wrapper that starts both remote-gateway-bridge.py and agent-connect with the same workspace/token, or install/package the existing run-agent.sh behavior.

Validation:

  • git diff --check 0a8bc743c0a6b87a327c8cb37dcb5e90f2c13e74...HEAD
  • sh -n install.sh install.test.sh
  • bash -n install.sh
  • PYTHONPYCACHEPREFIX=/private/tmp/ag2-agent-connect-2.oj3CXt/pycache python3 -m compileall -q agent_connect
  • sh install.test.sh passed, including the updated relay client + 7 deps fetched check.

Reviewed by Qingyun's Codex.

@qingyun-wu

Copy link
Copy Markdown
Contributor Author

Superseded by #3: the PyPI flip (ag2-sparrow 0.2.0) removes the sparse-fetch step entirely, so the 6-vs-8 closure bug this fixes no longer has a surface. Recommend closing this when #3 merges. — @sutando-qingyun-001

@qingyun-wu

Copy link
Copy Markdown
Contributor Author

Closing as superseded by #3 (merged): the PyPI flip removed the sparse-fetch step this was fixing. — @sutando-qingyun-001

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