Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ type SandboxConfig struct {
User string `json:"user,omitempty"` // container user (e.g. "1000:1000", "nobody")
TmpfsSizeMB int `json:"tmpfs_size_mb,omitempty"` // default tmpfs size in MB (0 = Docker default)
MaxOutputBytes int `json:"max_output_bytes,omitempty"` // limit exec output capture (default 1MB)
Workdir string `json:"workdir,omitempty"` // container workdir + workspace mount target (default "/workspace")

// Pruning (matching TS SandboxPruneSettings)
IdleHours int `json:"idle_hours,omitempty"` // prune containers idle > N hours (default 24)
Expand Down Expand Up @@ -297,6 +298,9 @@ func (sc *SandboxConfig) ToSandboxConfig() sandbox.Config {
if sc.MaxOutputBytes > 0 {
cfg.MaxOutputBytes = sc.MaxOutputBytes
}
if sc.Workdir != "" {
cfg.Workdir = sc.Workdir
}

// Pruning
if sc.IdleHours > 0 {
Expand Down
Loading