fix: fix mcp tool call in extension (#1070)

* fix: fix mcp tool call in extension

- fix console.log directly being used in scope-adjutment.js breaking mcp

* chore: run format and fix tests

* chore: format
This commit is contained in:
Ralph Khreish
2025-08-02 22:59:02 +03:00
committed by GitHub
parent 82b17bdb57
commit 3fee7515f3
8 changed files with 89 additions and 70 deletions

View File

@@ -251,7 +251,7 @@ export function useScopeUpTask() {
type: 'mcpRequest',
tool: 'scope_up_task',
params: {
id: taskId,
id: String(taskId),
strength,
prompt,
research: options.research || false
@@ -268,9 +268,7 @@ export function useScopeUpTask() {
return response;
},
onSuccess: async (data, variables) => {
console.log(
'✅ Task scope up successful, invalidating all task queries'
);
console.log('✅ Task scope up successful, invalidating all task queries');
console.log('Task ID:', variables.taskId);
// Invalidate ALL task-related queries
@@ -309,7 +307,7 @@ export function useScopeDownTask() {
type: 'mcpRequest',
tool: 'scope_down_task',
params: {
id: taskId,
id: String(taskId),
strength,
prompt,
research: options.research || false