|
|
@@ -314,7 +314,7 @@ export function ChatProvider({ children }: ChatProviderProps) {
|
|
|
const executeTool = useCallback(async (
|
|
|
sessionId: string,
|
|
|
toolCall: ToolCall,
|
|
|
- _workspaceId: string // Reserved for future permission context
|
|
|
+ workspaceId: string
|
|
|
): Promise<ToolResult> => {
|
|
|
// Update tool state to executing
|
|
|
setPendingToolCalls(prev =>
|
|
|
@@ -334,8 +334,8 @@ export function ChatProvider({ children }: ChatProviderProps) {
|
|
|
// If parsing fails, use empty object
|
|
|
}
|
|
|
|
|
|
- // Execute via API
|
|
|
- const response = await toolsApi.executeTool(sessionId, toolCall.id, toolCall.name, args)
|
|
|
+ // Execute via API with workspace context
|
|
|
+ const response = await toolsApi.executeTool(sessionId, toolCall.id, toolCall.name, args, workspaceId)
|
|
|
|
|
|
// Handle navigation if present
|
|
|
if (response.navigation) {
|