[cindy_computer] type_text 无法输入 Windows Terminal:宿主未暴露驱动的 delivery_mode:"foreground"
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 401
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
**提交人**: Tony
**客户端版本**: 0.1.58
---
## 现象
`type_text` 定位 Windows Terminal(窗口类 `CASCADIA_HOSTING_WINDOW_CLASS`)时返回 `COMPUTER_DRIVER_ERROR`,驱动提示 "Background delivery is not available... Retry with delivery_mode:"foreground""。但宿主工具 schema 不含 `delivery_mode`,按提示补传会被判 `INVALID_ARGS: unrecognized_keys` 拒绝,形成死循环,无法向终端自动输入文本。
## 复现步骤
1. 打开 Windows Terminal(PowerShell 或任意会话)。
2. 用 `type_text` 指定该窗口 pid+window_id 输入文本。
3. 返回上述 background delivery 错误;按提示加 `delivery_mode:"foreground"` 重试会因参数校验失败被拒。
## 期望行为
- 在 `type_text` 的 schema 中暴露驱动的 `delivery_mode`(background/foreground)及 `scope`/`target`,使前台注入可用;或
- 让 `type_text` 在后台不可用时自动升级前台(`press_key`/`hotkey` 已有此行为)。
## 实际行为
如上报错,无法向终端自动输入。
## 复现频率
Windows Terminal(CASCADIA 窗口类)上 100% 复现。
## 已尝试
- `press_key`/`hotkey` 后台失败会自动升级前台且单键成功,说明驱动前台通道可用。
- 用驱动 CLI `cua-driver call type_text` 绕过宿主:宿主运行私有独立驱动实例(默认命名管道未运行),CLI 无法连接,此路不通。
## 建议方案
扩展 `cindy_computer` MCP 工具 schema,补上驱动已支持的输入参数(至少 `delivery_mode`),使对终端及 CASCADIA/XAML 宿主的前台文本输入成为可能。
---
**版本区域**: CN
**OS**: win32 x64 (10.0.26200)
**界面语言**: zh-CN
Contributor guide
Research direction
Start at the cindy_computer MCP tool's type_text schema and compare its delivery behavior with press_key and hotkey, which already upgrade to foreground. Confirm the supported delivery_mode, scope, and target parameters or the fallback behavior for Windows Terminal; done means type_text can input text into a CASCADIA_HOSTING_WINDOW_CLASS window without INVALID_ARGS.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100