docs: fix Copilot command ID in CLI testing guide (#2506)

Replace non-existent `copilot:open-copilot-chat` with the registered
`copilot:agent-chat-open-window` ID in both the "Run a command" example
and the smoke-test scaffold so the documented commands actually work.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Zero Liu 2026-05-21 11:00:20 -07:00 committed by GitHub
parent 9fe7a3b95e
commit a207694cbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -102,7 +102,7 @@ a no-op, but if Obsidian was restarted you need to run it again before
### Run a command
```bash
$OBS vault=$VAULT command id=copilot:open-copilot-chat
$OBS vault=$VAULT command id=copilot:agent-chat-open-window
```
The full set of registered command IDs is available via:
@ -344,7 +344,7 @@ $OBS vault=$VAULT dev:screenshot path=/tmp/test-before.png
$OBS vault=$VAULT dev:cdp method=Memory.getDOMCounters > /tmp/dom-before.json
# 4. Run the scenario
$OBS vault=$VAULT command id=copilot:open-copilot-chat
$OBS vault=$VAULT command id=copilot:agent-chat-open-window
sleep 1
$OBS vault=$VAULT eval code='document.querySelector(".copilot-chat-input")?.focus()'
$OBS vault=$VAULT dev:cdp method=Input.insertText params='{"text":"test prompt"}'