mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 03:01:56 +00:00
Show edit diff before tool execution (fixes #393)
- Extract diff computation from edit.ts into shared edit-diff.ts - ToolExecutionComponent computes and caches diff when args are complete - Diff is visible while permission hooks block, before tool executes
This commit is contained in:
parent
173b81bc04
commit
1ed009e2cf
4 changed files with 277 additions and 134 deletions
|
|
@ -902,6 +902,11 @@ export class InteractiveMode {
|
|||
});
|
||||
}
|
||||
this.pendingTools.clear();
|
||||
} else {
|
||||
// Args are now complete - trigger diff computation for edit tools
|
||||
for (const [, component] of this.pendingTools.entries()) {
|
||||
component.setArgsComplete();
|
||||
}
|
||||
}
|
||||
this.streamingComponent = undefined;
|
||||
this.streamingMessage = undefined;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue