feat: add Apply Patch tool with patch input and diff view (#196)
* feat: add Apply Patch tool with patch input and diff view Introduce Apply Patch tool with a patch input field and diff preview Display target file path or file count for patch operations in tool UI Update status label to show applying patch during execution * fix: include apply_patch in editing tools detection
This commit is contained in:
committed by
GitHub
parent
ef4d37df09
commit
87175566b9
@@ -169,7 +169,7 @@ export function useAssistantStatus(): AssistantStatusSnapshot {
|
||||
let activePartType: 'text' | 'tool' | 'reasoning' | 'editing' | undefined = undefined;
|
||||
let activeToolName: string | undefined = undefined;
|
||||
|
||||
const editingTools = new Set(['edit', 'write']);
|
||||
const editingTools = new Set(['edit', 'write', 'apply_patch']);
|
||||
|
||||
for (let i = (lastAssistant.parts ?? []).length - 1; i >= 0; i -= 1) {
|
||||
const part = lastAssistant.parts?.[i];
|
||||
@@ -218,6 +218,7 @@ export function useAssistantStatus(): AssistantStatusSnapshot {
|
||||
write: 'writing file',
|
||||
edit: 'editing file',
|
||||
multiedit: 'editing files',
|
||||
apply_patch: 'applying patch',
|
||||
bash: 'running command',
|
||||
grep: 'searching content',
|
||||
glob: 'finding files',
|
||||
|
||||
Reference in New Issue
Block a user