Skip to content

feat: improve coder connect tunnel handling on reconnect #17598

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Prev Previous commit
Next Next commit
fix lint; wrong receiver name
  • Loading branch information
ibetitsmike committed May 5, 2025
commit 101702d0f4cec4bb6fb56852e66c8be9db8eb5bb
12 changes: 6 additions & 6 deletions tailnet/controllers.go
Original file line number Diff line number Diff line change
Expand Up @@ -897,17 +897,17 @@
agents map[uuid.UUID]*Agent
}

func (a *Workspace) Clone() Workspace {
func (w *Workspace) Clone() Workspace {
agents := make(map[uuid.UUID]*Agent, len(a.agents))

Check failure on line 901 in tailnet/controllers.go

View workflow job for this annotation

GitHub Actions / test-cli (macos-latest)

undefined: a

Check failure on line 901 in tailnet/controllers.go

View workflow job for this annotation

GitHub Actions / test-cli (macos-latest)

undefined: a

Check failure on line 901 in tailnet/controllers.go

View workflow job for this annotation

GitHub Actions / lint

undefined: a) (typecheck)

Check failure on line 901 in tailnet/controllers.go

View workflow job for this annotation

GitHub Actions / lint

undefined: a) (typecheck)

Check failure on line 901 in tailnet/controllers.go

View workflow job for this annotation

GitHub Actions / lint

undefined: a) (typecheck)

Check failure on line 901 in tailnet/controllers.go

View workflow job for this annotation

GitHub Actions / lint

undefined: a) (typecheck)

Check failure on line 901 in tailnet/controllers.go

View workflow job for this annotation

GitHub Actions / test-go (ubuntu-latest)

undefined: a

Check failure on line 901 in tailnet/controllers.go

View workflow job for this annotation

GitHub Actions / test-go-pg-16

undefined: a

Check failure on line 901 in tailnet/controllers.go

View workflow job for this annotation

GitHub Actions / test-go (macos-latest)

undefined: a

Check failure on line 901 in tailnet/controllers.go

View workflow job for this annotation

GitHub Actions / test-e2e

undefined: a

Check failure on line 901 in tailnet/controllers.go

View workflow job for this annotation

GitHub Actions / test-go (windows-2022)

undefined: a

Check failure on line 901 in tailnet/controllers.go

View workflow job for this annotation

GitHub Actions / test-go-pg (ubuntu-latest)

undefined: a

Check failure on line 901 in tailnet/controllers.go

View workflow job for this annotation

GitHub Actions / test-go-race

undefined: a

Check failure on line 901 in tailnet/controllers.go

View workflow job for this annotation

GitHub Actions / test-go-race-pg

undefined: a

Check failure on line 901 in tailnet/controllers.go

View workflow job for this annotation

GitHub Actions / test-go-tailnet-integration

undefined: a

Check failure on line 901 in tailnet/controllers.go

View workflow job for this annotation

GitHub Actions / build-dylib

undefined: a
for k, v := range a.agents {
for k, v := range w.agents {
clone := v.Clone()
agents[k] = &clone
}
return Workspace{
ID: a.ID,
Name: a.Name,
Status: a.Status,
ownerUsername: a.ownerUsername,
ID: w.ID,
Name: w.Name,
Status: w.Status,
ownerUsername: w.ownerUsername,
agents: agents,
}
}
Expand Down
Loading