From 32e8b4fc10765a77f1aeb3878666d08f6db7b853 Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Tue, 16 Jun 2026 06:59:10 +0200 Subject: [PATCH] skip auto-mount when running with -tcp --- main.go | 1 + session/session.go | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 216ebab..c6359dc 100644 --- a/main.go +++ b/main.go @@ -241,6 +241,7 @@ func runServer(sockPath, pidPath string) { Sink: sink, Strict: *strict, Yolo: *yolo, + NoMount: *tcpAddr != "", ToolTree: toolTree, InvalidateModels: modelCache.Invalidate, SaveTranscript: func(data []byte) error { diff --git a/session/session.go b/session/session.go index b3cce9a..3fb6daf 100644 --- a/session/session.go +++ b/session/session.go @@ -139,6 +139,8 @@ type ManagerConfig struct { Strict bool // Yolo skips the landrun sandbox. Yolo bool + // NoMount disables the per-session FUSE mount (e.g. when listening on TCP). + NoMount bool // InvalidateModels clears the model cache, forcing a refresh. InvalidateModels func() } @@ -616,7 +618,9 @@ func (s *Manager) createSession(args []string) error { } var execOpts []execute.Option - execOpts = append(execOpts, execute.WithMount()) + if !s.cfg.NoMount { + execOpts = append(execOpts, execute.WithMount()) + } if s.cfg.Strict { execOpts = append(execOpts, execute.WithStrict()) }