skip auto-mount when running with -tcp
This commit is contained in:
parent
80c3f20609
commit
32e8b4fc10
1
main.go
1
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 {
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
}
|
||||
|
|
|
|||
Reference in New Issue