mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 10:05:14 +00:00
docs(coding-agent): document tool expansion UI methods
This commit is contained in:
parent
6909f61884
commit
90b18218bd
3 changed files with 11 additions and 1 deletions
|
|
@ -1526,6 +1526,11 @@ ctx.ui.setTitle("pi - my-project");
|
|||
ctx.ui.setEditorText("Prefill text");
|
||||
const current = ctx.ui.getEditorText();
|
||||
|
||||
// Tool output expansion
|
||||
const wasExpanded = ctx.ui.getToolsExpanded();
|
||||
ctx.ui.setToolsExpanded(true);
|
||||
ctx.ui.setToolsExpanded(wasExpanded);
|
||||
|
||||
// Custom editor (vim mode, emacs mode, etc.)
|
||||
ctx.ui.setEditorComponent((tui, theme, keybindings) => new VimEditor(tui, theme, keybindings));
|
||||
ctx.ui.setEditorComponent(undefined); // Restore default editor
|
||||
|
|
|
|||
|
|
@ -916,8 +916,9 @@ If a dialog method includes a `timeout` field, the agent-side will auto-resolve
|
|||
|
||||
Some `ExtensionUIContext` methods are not supported in RPC mode because they require direct TUI access:
|
||||
- `custom()` returns `undefined`
|
||||
- `setWorkingMessage()`, `setFooter()`, `setHeader()`, `setEditorComponent()` are no-ops
|
||||
- `setWorkingMessage()`, `setFooter()`, `setHeader()`, `setEditorComponent()`, `setToolsExpanded()` are no-ops
|
||||
- `getEditorText()` returns `""`
|
||||
- `getToolsExpanded()` returns `false`
|
||||
|
||||
### Extension UI Requests (stdout)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue