feat: Add flow to allow modifying edits during edit tool call (#808)

This commit is contained in:
Leo
2025-06-08 18:56:58 +01:00
committed by GitHub
parent 584286cfd9
commit 9efca40dae
14 changed files with 520 additions and 6 deletions

View File

@@ -1440,7 +1440,7 @@ export interface TextBuffer {
key: Record<string, boolean>,
) => boolean;
/**
* Opens the current buffer contents in the users preferred terminal text
* Opens the current buffer contents in the user's preferred terminal text
* editor ($VISUAL or $EDITOR, falling back to "vi"). The method blocks
* until the editor exits, then reloads the file and replaces the inmemory
* buffer with whatever the user saved.
@@ -1451,7 +1451,7 @@ export interface TextBuffer {
*
* Note: We purposefully rely on the *synchronous* spawn API so that the
* calling process genuinely waits for the editor to close before
* continuing. This mirrors Gits behaviour and simplifies downstream
* continuing. This mirrors Git's behaviour and simplifies downstream
* controlflow (callers can simply `await` the Promise).
*/
openInExternalEditor: (opts?: { editor?: string }) => Promise<void>;