channel-worker 2.5.75 → 2.5.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "channel-worker",
3
- "version": "2.5.75",
3
+ "version": "2.5.76",
4
4
  "description": "Channel Manager worker daemon — runs on remote machines to execute video pipeline jobs",
5
5
  "main": "lib/daemon.js",
6
6
  "bin": {
@@ -1750,13 +1750,24 @@ async function runOnce({ page, payload, log }) {
1750
1750
  }
1751
1751
  thumbApplied = true;
1752
1752
  log('info', `[fb-pw] page-wall thumb — modal closed after save (retries=${retryCount})`);
1753
- } else if (thumbEditorVia === 'nested' && await isCustomThumbApplied(page)) {
1753
+ } else if (await isCustomThumbApplied(page)) {
1754
1754
  // Hết giờ chờ đóng nhưng bằng chứng áp thumb còn đó — tuyệt
1755
- // đối không ESC/Hủy (Hủy trên panel inline là GỠ thumb).
1756
- log('info', '[fb-pw] page-wall thumb — hết giờ chờ đóng nhưng nút "Gỡ hình thu nhỏ" đang hiện → giữ panel, coi như dán xong');
1755
+ // đối không ESC/Hủy (Hủy trên panel này là GỠ thumb).
1756
+ //
1757
+ // KHÔNG khoá theo biến thể nữa (2.5.76). Trước đây nhánh cứu
1758
+ // chỉ nhận `variant === 'nested'`, nên những lượt FB trả
1759
+ // `variant=modal` mà modal vẫn không đóng sau 60s rơi thẳng
1760
+ // xuống ESC+Hủy → gỡ mất ảnh bìa vừa dán → chết ở cổng
1761
+ // "Custom thumbnail required but not applied" (đo 04/09/2026,
1762
+ // 3 lượt liên tiếp, log ghi rõ variant=modal). Nút "Gỡ" là
1763
+ // bằng chứng vật lý thumb đang áp, biến thể nào cũng đúng.
1764
+ log('info', `[fb-pw] page-wall thumb — hết giờ chờ đóng nhưng nút "Gỡ hình thu nhỏ" đang hiện (variant=${thumbEditorVia}) → giữ panel, coi như dán xong`);
1757
1765
  thumbApplied = true;
1758
1766
  } else {
1759
1767
  log('warn', '[fb-pw] page-wall thumb — modal still open 60s after Lưu click; trying ESC + click Hủy fallback');
1768
+ // Chụp lại trước khi ESC/Hủy: đây là nhánh phá lượt nhiều
1769
+ // nhất mà lại không có ảnh nào để soi (04/09/2026).
1770
+ await dumpFailure(page, 'thumb-modal-stuck-before-cancel', log);
1760
1771
  await page.keyboard.press('Escape').catch(() => {});
1761
1772
  await pause(page, 800);
1762
1773
  const cancel = await firstVisible(page.locator("[__fbpw_thumb_dialog__='1'] div[role='button']:has-text('Hủy'), [__fbpw_thumb_dialog__='1'] button:has-text('Hủy')"), 2);