skip auto-mount when running with -tcp

This commit is contained in:
Levi Neely 2026-06-16 06:59:10 +02:00
parent 80c3f20609
commit 32e8b4fc10
2 changed files with 6 additions and 1 deletions

View File

@ -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 {

View File

@ -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())
}