launch: remove warning for default policy (#14830)

This commit is contained in:
Parth Sareen 2026-03-13 15:01:38 -07:00 committed by GitHub
parent abf8e8e9c8
commit 870599f5da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -313,9 +313,9 @@ func LaunchIntegration(ctx context.Context, req IntegrationLaunchRequest) error
}
var policy LaunchPolicy
// TUI does not set a policy, whereas ollama launch <app> does as it can have flags which change the behavior
if req.Policy == nil {
policy = defaultLaunchPolicy(isInteractiveSession(), false)
fmt.Fprintln(os.Stderr, "Launch policy not found from request, using default")
} else {
policy = *req.Policy
}