fix(extension): resolve Native UI icon text gluing causing DOM observer signal drop #task-603

This commit is contained in:
Variet Worker
2026-04-09 23:13:49 +09:00
parent e4f674ec9f
commit 22e1799d66
7 changed files with 123 additions and 26 deletions

View File

@@ -51,6 +51,7 @@ export async function setupApprovalObserver(
// 2. Write renderer script with HTTP fetch() approach
const observerJS = generateApprovalObserverScript(bridgePort);
const patcher = (integration as any)._patcher;
logToFile(`[OBSERVER-DEBUG] patcher type: ${typeof patcher}, has getScriptPath: ${patcher && typeof patcher.getScriptPath === 'function'}`);
if (patcher && typeof patcher.getScriptPath === 'function') {
let baseScript = '';
try { baseScript = integration.build(); } catch { baseScript = ''; }
@@ -126,10 +127,14 @@ export function updateProductChecksums(sdk: any, logToFile: (msg: string) => voi
const fileBytes = fs.readFileSync(filePath);
const hash = crypto.createHash('sha256').update(fileBytes).digest('base64').replace(/=+$/, '');
if (product.checksums[key] !== hash) {
if (product.checksums[key] && product.checksums[key] !== hash) {
logToFile(`[CHECKSUM] updating ${key}: ${product.checksums[key].substring(0, 12)}... → ${hash.substring(0, 12)}...`);
product.checksums[key] = hash;
updated = true;
} else if (!product.checksums[key]) {
logToFile(`[CHECKSUM] adding ${key}: → ${hash.substring(0, 12)}...`);
product.checksums[key] = hash;
updated = true;
}
}