fix(ext): browser_subagent Allow 버튼 RPC 매핑 수정 — runExtensionCode payload 적용 (v0.5.1)

This commit is contained in:
Variet Worker
2026-03-20 18:12:07 +09:00
parent e306fae130
commit 549af6dae2
6 changed files with 18 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
"name": "gravity-bridge",
"displayName": "Gravity Bridge",
"description": "Antigravity ↔ Discord 브리지 연동 확장",
"version": "0.5.0",
"version": "0.5.1",
"publisher": "variet",
"engines": {
"vscode": "^1.100.0"

View File

@@ -381,7 +381,7 @@ export async function tryApprovalStrategies(approved: boolean, sessionId: string
interactionPayload = { readUrlContent: { confirm: true } };
} else if (typeLower.includes('mcp')) {
interactionPayload = { mcpTool: { confirm: true } };
} else if (typeLower.includes('invoke_subagent') || typeLower.includes('extension_code')) {
} else if (typeLower.includes('invoke_subagent') || typeLower.includes('extension_code') || typeLower.includes('browser_subagent')) {
interactionPayload = { runExtensionCode: { confirm: true } };
} else if (typeLower.includes('file_permission')) {
const scope = typeLower.includes('conversation') ? 2 : 1;

View File

@@ -480,7 +480,8 @@ function setupMonitor() {
description: `Step #${actualIndex} (${(oStep.type || '').replace('CORTEX_STEP_TYPE_', '')})`,
step_type: ['view_file', 'list_dir', 'find_by_name', 'read_file', 'grep_search'].includes(toolName) ? 'file_permission'
: ['write_to_file', 'replace_file_content', 'multi_replace_file_content'].includes(toolName) ? 'code_edit'
: toolName,
: ['browser_subagent', 'open_browser_url'].includes(toolName) ? 'browser_subagent'
: toolName,
step_index: actualIndex,
source: 'step_probe_offset',
});
@@ -546,7 +547,8 @@ function setupMonitor() {
description,
step_type: ['view_file', 'list_dir', 'find_by_name', 'read_file', 'grep_search'].includes(toolName) ? 'file_permission'
: ['write_to_file', 'replace_file_content', 'multi_replace_file_content'].includes(toolName) ? 'code_edit'
: toolName,
: ['browser_subagent', 'open_browser_url'].includes(toolName) ? 'browser_subagent'
: toolName,
step_index: si,
source: 'step_probe',
});