Web UI: Uncaught TypeError on iOS < 17.4 (AbortSignal.any is not a function)

未关闭 适合新手
#62,873 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
61/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript, web-dev
领域
frontend

调研方向

Issue指出,失败的调用是打包后的 Web UI 资源中的 AbortSignal.any(),但没有指出源文件或测试。搜索前端源代码中的 AbortSignal.any,并检查项目对浏览器兼容性的处理。完成标准是在 iOS 17.4 之前的版本上 UI 能够加载;如果项目有相关的兼容性测试,请添加或运行该测试。

由索引模型根据 Issue 内容生成。

描述

reproduced
Description

The OpenCode Web UI fails to load on iPhones running iOS versions older than 17.4 (specifically tested on iOS 17.3 and below). The page crashes immediately with a JavaScript TypeError because the static method AbortSignal.any() is not implemented in older versions of WebKit/Safari.

Plugins

No response

OpenCode version

2.2.6

Steps to reproduce
  1. Start OpenCode v2.2.6 on a PC (opencode pair with hostname 0.0.0.0).
  2. Open the generated link on an iPhone running iOS 17.3 or older (using Safari or any WebKit-based browser).
  3. The page attempts to load and throws the following error in the console:
TypeError: AbortSignal.any is not a function. (In 'AbortSignal.any([e.signal,i.signal])', 'AbortSignal.any' is undefined)
@http://<host-ip>:28894/_assets/index-C8GATERM.js:111:156321
forEach@[native code]
Screenshot

No response

Operating System

No response

Terminal

No response

主要语言
TypeScript
星标
225k
派生
30.4k
平均合并
4 小时 16 分钟
30 天内合并 PR
528

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

anomalyco/opencode 的其他 Issue

查看 anomalyco/opencode 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。