mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-21 09:17:53 +00:00
bug: Fix modify edit (#1078)
This commit is contained in:
@@ -29,6 +29,7 @@ export interface ModifyContext<ToolParams> {
|
||||
getProposedContent: (params: ToolParams) => Promise<string>;
|
||||
|
||||
createUpdatedParams: (
|
||||
oldContent: string,
|
||||
modifiedProposedContent: string,
|
||||
originalParams: ToolParams,
|
||||
) => ToolParams;
|
||||
@@ -98,6 +99,7 @@ function getUpdatedParams<ToolParams>(
|
||||
}
|
||||
|
||||
const updatedParams = modifyContext.createUpdatedParams(
|
||||
oldContent,
|
||||
newContent,
|
||||
originalParams,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user