From 5cf923eb6d20e71f0352c095fe78d8172ef7070e Mon Sep 17 00:00:00 2001 From: Mads Hvelplund Date: Fri, 19 Jun 2026 07:34:13 +0200 Subject: [PATCH] Update strix/interface/main.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- strix/interface/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/strix/interface/main.py b/strix/interface/main.py index 3843dd29..a928ee30 100644 --- a/strix/interface/main.py +++ b/strix/interface/main.py @@ -516,7 +516,8 @@ Examples: assign_workspace_subdirs(args.targets_info) rewrite_localhost_targets(args.targets_info, HOST_GATEWAY_HOSTNAME) - max_copy_bytes = load_settings().runtime.max_local_copy_mb * 1024 * 1024 + max_local_copy_mb = load_settings().runtime.max_local_copy_mb + max_copy_bytes = max_local_copy_mb * 1024 * 1024 oversized = find_oversized_local_targets(args.targets_info, max_copy_bytes) if oversized: details = "; ".join( @@ -524,7 +525,7 @@ Examples: ) parser.error( f"Local target too large to stream into the sandbox: {details}. " - f"The limit is {load_settings().runtime.max_local_copy_mb} MB " + f"The limit is {max_local_copy_mb} MB " "(set STRIX_MAX_LOCAL_COPY_MB to change it). Re-run with " "--mount to bind-mount the directory instead of copying it." )