1fc74f629e
refactor(agent): update agentcontainers api initialization ( #17600 )
...
There were too many ways to configure the agentcontainers API resulting
in inconsistent behavior or features not being enabled. This refactor
introduces a control flag for enabling or disabling the containers API.
When disabled, all implementations are no-op and explicit endpoint
behaviors are defined. When enabled, concrete implementations are used
by default but can be overridden by passing options.
2025-04-29 17:53:10 +03:00
3bd32a2e2a
chore(cli): wait for agent to connect before dialing it in TestExpRpty ( #17026 )
...
Fixes flake seen here:
https://github.com/coder/coder/actions/runs/13970861685/job/39113344525
2025-03-20 14:44:30 +00:00
68624092a4
feat(agent/reconnectingpty): allow selecting backend type ( #17011 )
...
agent/reconnectingpty: allow specifying backend type
cli: exp rpty: automatically select backend based on command
2025-03-20 13:45:31 +00:00
ec44f06f5c
feat(cli): allow SSH command to connect to running container ( #16726 )
...
Fixes https://github.com/coder/coder/issues/16709 and
https://github.com/coder/coder/issues/16420
Adds the capability to`coder ssh` into a running container if `CODER_AGENT_DEVCONTAINERS_ENABLE=true`.
Notes:
* SFTP is currently not supported
* Haven't tested X11 container forwarding
* Haven't tested agent forwarding
2025-02-28 09:38:45 +00:00
2aa749a7f0
chore(cli): fix test flake caused by agent connect race ( #16725 )
...
Fixes test flake seen here:
https://github.com/coder/coder/actions/runs/13552012547/job/37877778883
```
exp_rpty_test.go:96:
Error Trace: /home/runner/work/coder/coder/cli/exp_rpty_test.go:96
/home/runner/work/coder/coder/cli/ssh_test.go:1963
/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.9.linux-amd64/src/runtime/asm_amd64.s:1695
Error: Received unexpected error:
running command "coder exp rpty": GET http://localhost:37991/api/v2/workspaceagents/3785b98f-0589-47d2-a3c8-33a55a6c5b29/containers : unexpected status code 400: Agent state is "connecting", it must be in the "connected" state.
Test: TestExpRpty/Container
```
2025-02-26 21:10:39 +00:00
c5a265fbc3
feat(cli): add experimental rpty command ( #16700 )
...
Relates to https://github.com/coder/coder/issues/16419
Builds upon https://github.com/coder/coder/pull/16638 and adds a command
`exp rpty` that allows you to open a ReconnectingPTY session to an
agent.
This ultimately allows us to add an integration-style CLI test to verify
the functionality added in #16638 .
2025-02-26 12:32:57 +00:00