A clear and concise description of what the bug is. Include version by typing gh --version.
➜ 2415728 git:(main) ✗ gh cs ports -c ${c_space} forward 10:10 11:11 12:12 13:13 14:14
Forwarding ports: remote 14 <=> local 14
Forwarding ports: remote 10 <=> local 10
Forwarding ports: remote 11 <=> local 11
Forwarding ports: remote 12 <=> local 12
Forwarding ports: remote 13 <=> local 13
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x40 pc=0x10196c28c]
goroutine 8 [running]:
github.com/microsoft/dev-tunnels/go/tunnels/ssh.(SSHSession).SendSessionRequest(…) github.com/microsoft/dev-tunnels@v0.0.25/go/tunnels/ssh/session.go:169 github.com/microsoft/dev-tunnels/go/tunnels.(Client).RefreshPorts(0x140001ffb30?, {0x102e86230?, 0x140001ffb80?})
github.com/microsoft/dev-tunnels@v0.0.25/go/tunnels/client.go:210 +0x2c
github.com/cli/cli/v2/internal/codespaces/portforwarder.(CodespacesPortForwarder).ForwardPort(0x1400060d540, {0x102e86230, 0x140001ffb80}, {0x100e672f4?, 0x0, 0x0?, {0x0?, 0x140006d3df8?}}) github.com/cli/cli/v2/internal/codespaces/portforwarder/port_forwarder.go:160 +0x258 github.com/cli/cli/v2/internal/codespaces/portforwarder.(CodespacesPortForwarder).ForwardPortToListener(0x1400060d540, {0x102e86230?, 0x140001ffb80}, {0x140006d3f20?, 0x10?, 0x84?, {0x0?, 0x1400006bec8?}}, 0x14000591720)
github.com/cli/cli/v2/internal/codespaces/portforwarder/port_forwarder.go:64 +0x58
github.com/cli/cli/v2/pkg/cmd/codespace.(App).ForwardPorts.func1() github.com/cli/cli/v2/pkg/cmd/codespace/ports.go:344 +0x1dc golang.org/x/sync/errgroup.(Group).Go.func1()
golang.org/x/sync@v0.1.0/errgroup/errgroup.go:75 +0x58
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 1
golang.org/x/sync@v0.1.0/errgroup/errgroup.go:72 +0x98
Forward 4 ports or inform user the limit.
gh --version
gh version 2.38.0 (2023-11-01)
https://github.com/cli/cli/releases/tag/v2.38.0
Paste the activity from your command line. Redact if needed.
Describe the bug
A clear and concise description of what the bug is. Include version by typing
gh --version.Steps to reproduce the behavior
gh cs ports -c ${c_space} forward 10:10 11:11 12:12 13:13 14:14 # SIGSEGVExpected vs actual behavior
Forward 4 ports or inform user the limit.
Logs
Paste the activity from your command line. Redact if needed.