fix(coding-agent): handled discard no-op resolution and dynamic expand hints
- Updated tool expand-hint rendering to use `expandKeyHint()`, which pulls the `app.tools.expand` binding and formats collapsed previews as `<key>: Expand`. - Updated related tests in render utils and TUI regressions to assert the new hint string for default and remapped bindings. - Added a resolve-tool regression test and changelog note covering `action: "discard"` with no pending action as a successful cancellation.
This commit is contained in:
@@ -198,7 +198,7 @@ export class ReadToolGroupComponent extends Container implements ToolExecutionHa
|
||||
|
||||
/**
|
||||
* Add a code-cell content preview below the entry summary.
|
||||
* When collapsed: shows first COLLAPSED_PREVIEW_LINES lines with "… N more lines (Ctrl+O for more)" hint.
|
||||
* When collapsed: shows first COLLAPSED_PREVIEW_LINES lines with a "… N more lines ⟨<key>: Expand⟩" hint.
|
||||
* When expanded: shows full content.
|
||||
*/
|
||||
#addContentPreview(entry: ReadEntry): void {
|
||||
|
||||
Reference in New Issue
Block a user