fix: harden computer tool helper

- remove the unimplemented accessibility observe mode from the public contract
- refuse unmatched app_open requests instead of shelling out
- add direct helper tests for both review findings

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Harivansh Rathi 2026-03-11 14:26:18 -04:00
parent e1bba1c1a5
commit a4250bad30
2 changed files with 65 additions and 3 deletions

View file

@ -30,7 +30,7 @@ const computerActions = [
"clipboard_write",
] as const;
const computerObservationModes = ["hybrid", "ocr", "accessibility"] as const;
const computerObservationModes = ["hybrid", "ocr"] as const;
const DEFAULT_COMPUTER_COMMAND =
process.env.COMPANION_AGENT_COMPUTER_COMMAND || "agent-computer";