Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion web-shell/codex-bridge-polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,13 @@

/** 只兜底展示 fetch 形态的 IPC 兼容错误,invoke 错误交给官方前端调用栈自然处理。 */
function shouldSurfaceFetchIpcError(status, message) {
if (status === 400) return true;
if (status === 400) {
// 移动订阅(App Store / Google Play)的账单/支付方式提示对使用无影响,静默忽略,避免误弹故障弹窗
if (/payment methods for mobile subscriptions|mobile subscriptions must be managed/i.test(message || "")) {
return false;
}
return true;
}
return /unsupported codex ipc channel|method not found|no electron ipc handler|invalid ipc channel/i.test(
message || ""
);
Expand Down