Bump dev-tunnels SDK 0.1.13 to 0.1.19 by sam-byng · Pull Request #12285 · cli/cli

Devtunnels (/@williammartin) have released a patch to their ListTunnelPorts function so that the github cli portforwarder logic will now fetch all the ports for the codespace, not just the last item in the list repeatedely.

I've tested this by building a new CLI version, adding port 3000 to a codespace and running the gh codespace ports commands. Previously, no ports list was returned.

make clean && make build
go build -o bin/gh ./cmd/gh
./bin/gh --version
./bin/gh codespace ports
@sam-byng ➜ /workspaces/cli (sb/codespaces-22585-ports-list) $ ./bin/gh codespace ports
? Choose codespace: cli/cli [sb/codespaces-22585-ports-list*]: supreme engine
Fetching ports ⣾
LABEL  PORT  VISIBILITY  BROWSE URL                                                 
       3000  public      https://supreme-engine-jqjpxj9gv46fqqrq-3000.app.github.dev

I ran with debug logs and they show port forwarder successfully getting the ports list now:

DEBUG PORTFORWARDER: ListTunnelPorts returned 4 ports
DEBUG PORTFORWARDER: Port 0 - Number: 3000, Labels: [UserForwardedPort], Protocol: http
DEBUG PORTFORWARDER: Port 1 - Number: 16634, Labels: [InternalPort], Protocol: https
DEBUG PORTFORWARDER: Port 2 - Number: 16635, Labels: [InternalPort], Protocol: https
DEBUG PORTFORWARDER: Port 3 - Number: 45323, Labels: [InternalPort], Protocol: https

✅ The CLI built successfully with the new dev-tunnels v0.1.19
✅ The TunnelManager.ListTunnelPorts call succeeded
✅ It returned 4 ports (internal ports were correctly filtered out)