mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 07:04:45 +00:00
docs(coding-agent): fix RPC mode ctx.hasUI and unsupported methods documentation (#1411)
Update extensions.md and rpc.md to accurately reflect that ctx.hasUI is true in RPC mode. Document missing unsupported/degraded ExtensionUIContext methods: pasteToEditor, getAllThemes, getTheme, setTheme. Co-authored-by: Mario Zechner <badlogicgames@gmail.com>
This commit is contained in:
parent
9d6fcedb91
commit
0c9304a49b
3 changed files with 9 additions and 2 deletions
|
|
@ -623,7 +623,7 @@ UI methods for user interaction. See [Custom UI](#custom-ui) for full details.
|
|||
|
||||
### ctx.hasUI
|
||||
|
||||
`false` in print mode (`-p`), JSON mode, and RPC mode. Always check before using `ctx.ui`.
|
||||
`false` in print mode (`-p`) and JSON mode. `true` in interactive and RPC mode. In RPC mode, dialog methods (`select`, `confirm`, `input`, `editor`) work via the extension UI sub-protocol, and fire-and-forget methods (`notify`, `setStatus`, `setWidget`, `setTitle`, `setEditorText`) emit requests to the client. Some TUI-specific methods are no-ops or return defaults (see [rpc.md](rpc.md#extension-ui-protocol)).
|
||||
|
||||
### ctx.cwd
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue