We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 410241d commit 2e133c2Copy full SHA for 2e133c2
agent/agentcontainers/api.go
@@ -511,7 +511,13 @@ func (api *API) handleDevcontainerRecreate(w http.ResponseWriter, r *http.Reques
511
slog.F("name", api.knownDevcontainers[i].Name),
512
)
513
api.knownDevcontainers[i].Dirty = false
514
+ // TODO(mafredri): This should be handled by a service that
515
+ // updates the devcontainer state periodically and on-demand.
516
api.knownDevcontainers[i].Container = nil
517
+ // Set the modified time to the zero value to indicate that
518
+ // the containers list must be refreshed. This will see to
519
+ // it that the new container is re-assigned.
520
+ api.mtime = time.Time{}
521
}
522
return
523
0 commit comments