Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions synth_lib/benchmark/cli_adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ def env(self) -> dict[str, str]:
# Each sandbox run has a new hostname, so a session lock left by a killed run counts as held
# and `-c` exits 4. A leg runs one kimi process at a time.
"KIMI_CODE_SESSION_LOCK": "0",
# The window kimi-code compacts against; it assumes 262144 for an env-defined model.
# 1048576 is Kimi K3.1 Pro's.
"KIMI_MODEL_MAX_CONTEXT_SIZE": "1048576",
}

def provision_files(self) -> dict[str, str]:
Expand Down
1 change: 1 addition & 0 deletions tests/benchmark/test_cli_adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ def test_kimi_adapter_routes_through_the_proxy_env_family():
# a CLI that self-updates mid-campaign changes the subject of the experiment
assert env["KIMI_CODE_NO_AUTO_UPDATE"] == "1"
assert env["KIMI_CODE_SESSION_LOCK"] == "0" # a lock left by a killed sandbox run would block -c
assert env["KIMI_MODEL_MAX_CONTEXT_SIZE"] == "1048576"
assert a.provision_files() == {} # no effort: the CLI's own
resume = a.resume_cmd("continue")
assert resume[:2] == ["kimi", "-c"]
Expand Down
Loading