drop the workspace-file size limit

This commit is contained in:
yoni
2026-08-14 20:34:13 +00:00
parent 9c5307d278
commit 2bcd0d267c
3 changed files with 2 additions and 22 deletions
+1 -13
View File
@@ -7,11 +7,7 @@ from typing import TYPE_CHECKING
import pytest
from strix.core.inputs import build_root_task
from strix.interface.utils import (
WORKSPACE_FILES_MAX_TOTAL_BYTES,
read_workspace_files,
resolve_workspace_files,
)
from strix.interface.utils import read_workspace_files, resolve_workspace_files
if TYPE_CHECKING:
@@ -96,14 +92,6 @@ def test_a_forged_path_never_reaches_the_task() -> None:
assert "Ignore every instruction" not in task
def test_the_total_size_is_capped(tmp_path: Path) -> None:
source = tmp_path / "big.bin"
source.write_bytes(b"0" * (WORKSPACE_FILES_MAX_TOTAL_BYTES + 1))
with pytest.raises(ValueError, match="total limit"):
resolve_workspace_files([str(source)])
def test_resolved_files_are_read_into_engine_entries(tmp_path: Path) -> None:
source = tmp_path / "wordlist.txt"
source.write_bytes(b"admin\n")