mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 06:04:40 +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
|
|
@ -928,11 +928,17 @@ There are two categories of extension UI methods:
|
|||
|
||||
If a dialog method includes a `timeout` field, the agent-side will auto-resolve with a default value when the timeout expires. The client does not need to track timeouts.
|
||||
|
||||
Some `ExtensionUIContext` methods are not supported in RPC mode because they require direct TUI access:
|
||||
Some `ExtensionUIContext` methods are not supported or degraded in RPC mode because they require direct TUI access:
|
||||
- `custom()` returns `undefined`
|
||||
- `setWorkingMessage()`, `setFooter()`, `setHeader()`, `setEditorComponent()`, `setToolsExpanded()` are no-ops
|
||||
- `getEditorText()` returns `""`
|
||||
- `getToolsExpanded()` returns `false`
|
||||
- `pasteToEditor()` delegates to `setEditorText()` (no paste/collapse handling)
|
||||
- `getAllThemes()` returns `[]`
|
||||
- `getTheme()` returns `undefined`
|
||||
- `setTheme()` returns `{ success: false, error: "..." }`
|
||||
|
||||
Note: `ctx.hasUI` is `true` in RPC mode because the dialog and fire-and-forget methods are functional via the extension UI sub-protocol.
|
||||
|
||||
### Extension UI Requests (stdout)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue