From 2daec83d60062229e58ca3705fda98226b6f00b9 Mon Sep 17 00:00:00 2001 From: henry Date: Sun, 5 Oct 2025 22:09:25 +0800 Subject: [PATCH] fix: do not error out of shellIn if OS detection fails, and default platform on linux (#3600) --- internal/view/pod.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/view/pod.go b/internal/view/pod.go index 9b3417bf..76a9aa95 100644 --- a/internal/view/pod.go +++ b/internal/view/pod.go @@ -410,7 +410,8 @@ func resumeShellIn(a *App, c model.Component, path, co string) { func shellIn(a *App, fqn, co string) error { platform, err := getPodOS(a.factory, fqn) if err != nil { - return err + slog.Warn("OS detection failed (assuming linux)", slogs.Error, err) + platform = "linux" } args := computeShellArgs(fqn, co, a.Conn().Config().Flags(), platform)