@@ -912,8 +912,7 @@ def test_create_command_uses_sandbox_yaml_when_image_options_are_omitted(
912912 sandbox_yaml_path = cli_create ._get_sandbox_yaml_path ()
913913 sandbox_yaml_path .parent .mkdir (parents = True , exist_ok = True )
914914 sandbox_yaml_path .write_text (
915- "tool_type: Private\n "
916- "image_url: registry.example.com/custom-image:from-yaml\n " ,
915+ "tool_type: Private\n image_url: registry.example.com/custom-image:from-yaml\n " ,
917916 encoding = "utf-8" ,
918917 )
919918
@@ -939,8 +938,7 @@ def test_create_command_cli_tool_type_disables_sandbox_yaml_defaults(
939938 sandbox_yaml_path = cli_create ._get_sandbox_yaml_path ()
940939 sandbox_yaml_path .parent .mkdir (parents = True , exist_ok = True )
941940 sandbox_yaml_path .write_text (
942- "tool_type: Private\n "
943- "image_url: registry.example.com/custom-image:from-yaml\n " ,
941+ "tool_type: Private\n image_url: registry.example.com/custom-image:from-yaml\n " ,
944942 encoding = "utf-8" ,
945943 )
946944
@@ -969,8 +967,7 @@ def test_create_command_cli_image_url_disables_sandbox_yaml_defaults(
969967 sandbox_yaml_path = cli_create ._get_sandbox_yaml_path ()
970968 sandbox_yaml_path .parent .mkdir (parents = True , exist_ok = True )
971969 sandbox_yaml_path .write_text (
972- "tool_type: Private\n "
973- "image_url: registry.example.com/custom-image:from-yaml\n " ,
970+ "tool_type: Private\n image_url: registry.example.com/custom-image:from-yaml\n " ,
974971 encoding = "utf-8" ,
975972 )
976973
@@ -1085,7 +1082,9 @@ def test_build_create_tool_request_adds_code_env_config_envs(monkeypatch):
10851082 assert models [0 ]["slug" ] == "deepseek-v4-pro-260425"
10861083 assert models [0 ]["display_name" ] == "deepseek-v4-pro-260425"
10871084 assert "deepseek-v4-flash-260425" in [model ["slug" ] for model in models ]
1085+ assert "glm-5-2-260617" in [model ["slug" ] for model in models ]
10881086 models_by_slug = {model ["slug" ]: model for model in models }
1087+ assert models_by_slug ["glm-5-2-260617" ]["max_context_window" ] == 1000000
10891088 assert "doubao-seed-2-0-pro-260215" in models_by_slug
10901089 assert models_by_slug ["doubao-seed-2-0-pro-260215" ]["max_context_window" ] == 200000
10911090 assert models [0 ]["truncation_policy" ] == {"mode" : "tokens" , "limit" : 10000 }
@@ -1126,6 +1125,7 @@ def test_build_create_tool_request_uses_model_provider(monkeypatch):
11261125 models = {model ["slug" ]: model for model in catalog ["models" ]}
11271126 assert "deepseek-v4-flash" in models
11281127 assert "deepseek-v4-flash-260425" not in models
1128+ assert "glm-5-2-260617" not in models
11291129 assert "glm-5.2" not in models
11301130
11311131
@@ -1319,6 +1319,7 @@ def test_build_codex_model_catalog_infers_custom_model_context_window():
13191319
13201320 expected_context_windows = {
13211321 "deepseek-v4-flash-260428" : 1000000 ,
1322+ "glm-5-2-260617" : 1000000 ,
13221323 "glm-5.2" : 1000000 ,
13231324 "doubao-seed-2-0-code-preview-260215" : 200000 ,
13241325 "glm-4-7-251222" : 200000 ,
@@ -1405,9 +1406,9 @@ def test_create_command_accepts_model_base_url_without_model_name(monkeypatch):
14051406 envs = {item .key : item .value for item in _FakeToolsClient .last_request .envs }
14061407 assert envs ["AGENTKIT_SANDBOX_MODEL_PROVIDER" ] == "custom_provider"
14071408 assert envs ["CODEX_BASE_URL" ] == "https://models.example.com"
1408- assert envs ["CODEX_MODEL" ] == "deepseek-v4-flash-260425 "
1409+ assert envs ["CODEX_MODEL" ] == "glm-5-2-260617 "
14091410 assert 'model_provider = "custom_provider"' in envs ["CODEX_CONFIG_TOML" ]
1410- assert 'model = "deepseek-v4-flash-260425 "' in envs ["CODEX_CONFIG_TOML" ]
1411+ assert 'model = "glm-5-2-260617 "' in envs ["CODEX_CONFIG_TOML" ]
14111412 assert 'base_url = "https://models.example.com"' in envs ["CODEX_CONFIG_TOML" ]
14121413 assert "model_catalog_json" not in envs ["CODEX_CONFIG_TOML" ]
14131414 assert "CODEX_MODEL_CATALOG_JSON" not in envs
@@ -1525,9 +1526,9 @@ def test_build_create_tool_request_adds_default_model_base_url(monkeypatch):
15251526
15261527 assert [(item .key , item .value ) for item in request .envs ] == [
15271528 ("AGENTKIT_SANDBOX_MODEL_PROVIDER" , "model_square" ),
1528- ("OPENCODE_MODEL" , "deepseek-v4-flash-260425 " ),
1529- ("CODEX_MODEL" , "deepseek-v4-flash-260425 " ),
1530- ("ANTHROPIC_MODEL" , "deepseek-v4-flash-260425 " ),
1529+ ("OPENCODE_MODEL" , "glm-5-2-260617 " ),
1530+ ("CODEX_MODEL" , "glm-5-2-260617 " ),
1531+ ("ANTHROPIC_MODEL" , "glm-5-2-260617 " ),
15311532 ("OPENCODE_BASE_URL" , "https://ark.cn-beijing.volces.com/api/v3" ),
15321533 ("CODEX_BASE_URL" , "https://ark.cn-beijing.volces.com/api/v3" ),
15331534 ("MODEL_BASE_URL" , "https://ark.cn-beijing.volces.com/api/v3" ),
0 commit comments