Skip to content

feat: the Agent reports the ports its work listens on - #138

Merged
ado11231 merged 2 commits into
masterfrom
feat/agent-ports
Oct 18, 2026
Merged

ado11231 merged 2 commits into
masterfrom
feat/agent-ports

Conversation

@ado11231

Copy link
Copy Markdown
Owner

Step 2 of #9.

  • New Request::Ports: each TCP port an active job listens on, with its address, program, and job, plus ports Docker containers publish.
  • Wraps ss on Linux and lsof on macOS. Only processes of an active job count, matched by PID and start time.
  • Raises the control protocol to 15, so both machines must update together.

Tests pass on the Mac and on archbox, including one that runs the real ss or lsof. No Client calls it yet, so the end to end test comes with ally ports.

Port forwarding needs to know which ports to forward. The Agent wraps ss on Linux and lsof on macOS, keeps only sockets held by an active job's processes, and adds the ports Docker containers publish. Raises the control protocol to 15.
@ado11231
ado11231 merged commit 67d418c into master Oct 18, 2026
2 checks passed
@ado11231
ado11231 deleted the feat/agent-ports branch October 18, 2026 04:13
@ado11231 ado11231 mentioned this pull request Oct 18, 2026
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