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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user