feat: expose codex remote control status

This commit is contained in:
AI Bot
2026-06-04 15:18:52 +08:00
parent a5d44b0cac
commit 63338c3d76
8 changed files with 68 additions and 3 deletions

View File

@@ -26,6 +26,7 @@ test("boss-agent status exposes unbound QR binding and local permission states",
backupApiLabel: "未启用",
codexAppServerEnabled: true,
codexComputerUseEnabled: true,
codexRemoteControlEnabled: true,
bossAgentVersion: "20260501000000",
bossAgentOtaEnabled: true,
licenseExpiresAt: "2027-05-12T00:00:00.000Z",
@@ -68,6 +69,10 @@ test("boss-agent status exposes unbound QR binding and local permission states",
assert.equal(status.skills.total, 2);
assert.equal(status.codex.bindingStatus, "connected");
assert.equal(status.codex.defaultDesktopProvider, "codex-computer-use");
assert.equal(status.codex.remoteControl.enabled, true);
assert.equal(status.codex.remoteControl.mode, "managed_daemon");
assert.equal(status.codex.remoteControl.startCommandLabel, "codex remote-control start --json");
assert.match(status.codex.remoteControl.summary, /App Server daemon/);
assert.equal(status.agentOta.enabled, true);
assert.equal(status.agentOta.currentVersion, "20260501000000");
assert.equal(status.agentOta.hasUpdate, true);
@@ -113,6 +118,7 @@ test("boss-agent status treats token-backed devices as bound and renders enterpr
backupApiLabel: "OpenAI 备用",
codexAppServerEnabled: true,
codexComputerUseEnabled: true,
codexRemoteControlEnabled: true,
license: {
enterpriseName: "默认公司",
status: "valid",
@@ -159,6 +165,8 @@ test("boss-agent status treats token-backed devices as bound and renders enterpr
assert.match(html, /DeepSeek V4/);
assert.match(html, /Codex 默认接管/);
assert.match(html, /Codex Computer Use/);
assert.match(html, /Codex Remote Control/);
assert.match(html, /remote-control start --json/);
assert.match(html, /boss-agent OTA/);
assert.match(html, /发现新版本/);
assert.match(html, /默认公司/);