Skip to content

Commit c175649

Browse files
committed
fix(config): remove exposed cua ttl setting
1 parent 85e1ea0 commit c175649

5 files changed

Lines changed: 3 additions & 24 deletions

File tree

astrbot/core/config/default.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@
178178
"shipyard_neo_ttl": 3600,
179179
"cua_image": CUA_DEFAULT_CONFIG["image"],
180180
"cua_os_type": CUA_DEFAULT_CONFIG["os_type"],
181-
"cua_ttl": CUA_DEFAULT_CONFIG["ttl"],
182181
"cua_idle_timeout": 0,
183182
"cua_telemetry_enabled": CUA_DEFAULT_CONFIG["telemetry_enabled"],
184183
"cua_local": CUA_DEFAULT_CONFIG["local"],
@@ -3348,15 +3347,6 @@
33483347
"provider_settings.sandbox.booter": "cua",
33493348
},
33503349
},
3351-
"provider_settings.sandbox.cua_ttl": {
3352-
"description": "CUA Sandbox TTL",
3353-
"type": "int",
3354-
"hint": "CUA 沙箱生存时间(秒)。当前作为会话配置保存,具体生效取决于 CUA SDK。",
3355-
"condition": {
3356-
"provider_settings.computer_use_runtime": "sandbox",
3357-
"provider_settings.sandbox.booter": "cua",
3358-
},
3359-
},
33603350
"provider_settings.sandbox.cua_idle_timeout": {
33613351
"description": "CUA Idle Timeout",
33623352
"type": "int",

dashboard/src/i18n/locales/en-US/features/config-metadata.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,6 @@
194194
"description": "CUA OS Type",
195195
"hint": "CUA sandbox operating system type. Defaults to linux."
196196
},
197-
"cua_ttl": {
198-
"description": "CUA Sandbox TTL",
199-
"hint": "CUA sandbox time-to-live in seconds. Actual behavior depends on the installed CUA SDK."
200-
},
201197
"cua_idle_timeout": {
202198
"description": "CUA Idle Timeout",
203199
"hint": "Idle timeout for CUA sandbox sessions in seconds. When greater than 0, AstrBot proactively shuts down an idle CUA sandbox after that amount of inactivity; 0 disables it."

dashboard/src/i18n/locales/ru-RU/features/config-metadata.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,6 @@
194194
"description": "Тип ОС CUA",
195195
"hint": "Тип операционной системы песочницы CUA. По умолчанию linux."
196196
},
197-
"cua_ttl": {
198-
"description": "TTL песочницы CUA",
199-
"hint": "Время жизни песочницы CUA в секундах. Фактическое поведение зависит от установленного CUA SDK."
200-
},
201197
"cua_idle_timeout": {
202198
"description": "Таймаут простоя CUA",
203199
"hint": "Таймаут простоя сессии песочницы CUA в секундах. Если значение больше 0, AstrBot автоматически завершит неактивную песочницу CUA после указанного времени бездействия; 0 отключает автоочистку."

dashboard/src/i18n/locales/zh-CN/features/config-metadata.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,6 @@
196196
"description": "CUA 操作系统类型",
197197
"hint": "CUA 沙箱操作系统类型,默认 linux。"
198198
},
199-
"cua_ttl": {
200-
"description": "CUA Sandbox 存活时间(秒)",
201-
"hint": "CUA 沙箱生存时间(秒)。当前作为会话配置保存,具体生效取决于 CUA SDK。"
202-
},
203199
"cua_idle_timeout": {
204200
"description": "CUA 空闲超时(秒)",
205201
"hint": "CUA 沙箱空闲超时时间(秒)。大于 0 时,AstrBot 会在会话空闲达到该时长后主动关闭 CUA 沙箱;0 表示禁用。"

tests/unit/test_cua_computer_use.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ def test_cua_default_config_matches_booter_defaults():
245245
assert booter.api_key == CUA_DEFAULT_CONFIG["api_key"]
246246
assert sandbox_defaults["cua_image"] == CUA_DEFAULT_CONFIG["image"]
247247
assert sandbox_defaults["cua_os_type"] == CUA_DEFAULT_CONFIG["os_type"]
248-
assert sandbox_defaults["cua_ttl"] == CUA_DEFAULT_CONFIG["ttl"]
248+
assert "cua_ttl" not in sandbox_defaults
249+
assert sandbox_defaults["cua_idle_timeout"] == 0
249250
assert (
250251
sandbox_defaults["cua_telemetry_enabled"]
251252
== CUA_DEFAULT_CONFIG["telemetry_enabled"]
@@ -1030,7 +1031,7 @@ def test_cua_is_exposed_in_sandbox_config_metadata():
10301031
assert "CUA" in booter["labels"]
10311032
assert "provider_settings.sandbox.cua_image" in items
10321033
assert "provider_settings.sandbox.cua_os_type" in items
1033-
assert "provider_settings.sandbox.cua_ttl" in items
1034+
assert "provider_settings.sandbox.cua_ttl" not in items
10341035
assert "provider_settings.sandbox.cua_idle_timeout" in items
10351036
assert "provider_settings.sandbox.cua_telemetry_enabled" in items
10361037
assert "provider_settings.sandbox.cua_local" in items

0 commit comments

Comments
 (0)