Laufzeiten: die MCP-Bruecke ist auch ohne Starter in der Sandbox (#712)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard
2026-09-25 22:59:56 +02:00
co-authored by Claude Opus 5.5
parent a76983aa28
commit 7a8852fe6b
6 changed files with 26 additions and 4 deletions
@@ -101,7 +101,7 @@ public sealed class ClaudeCodeRuntime(Func<ClaudeCodeSettings> settings) : IFore
["CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC"] = "1"
};
var readOnly = new List<string>(config.ReadOnlyPaths);
var readOnly = new List<string>(config.ReadOnlyPaths.Concat(context.HelperPaths()));
var directory = Path.GetDirectoryName(executable)!;
if (!directory.StartsWith("/usr/", StringComparison.Ordinal))
readOnly.Add(directory);