mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-17 23:51:08 +00:00
Merge c2aed491e2 into cb83656718
This commit is contained in:
commit
637cd4268e
1 changed files with 6 additions and 2 deletions
|
|
@ -465,7 +465,9 @@ export class NativeToolCallParser {
|
|||
break
|
||||
|
||||
case "write_to_file":
|
||||
if (partialArgs.path || partialArgs.content) {
|
||||
// Only create nativeArgs when BOTH path and content are present
|
||||
// This prevents showing undefined path (project root) in UI during streaming
|
||||
if (partialArgs.path && partialArgs.content) {
|
||||
nativeArgs = {
|
||||
path: partialArgs.path,
|
||||
content: partialArgs.content,
|
||||
|
|
@ -483,7 +485,9 @@ export class NativeToolCallParser {
|
|||
break
|
||||
|
||||
case "apply_diff":
|
||||
if (partialArgs.path !== undefined || partialArgs.diff !== undefined) {
|
||||
// Only create nativeArgs when BOTH path and diff are present
|
||||
// This prevents showing undefined path (project root) in UI during streaming
|
||||
if (partialArgs.path && partialArgs.diff) {
|
||||
nativeArgs = {
|
||||
path: partialArgs.path,
|
||||
diff: partialArgs.diff,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue