Skip to content

2.2.2版本内置浏览器 #60420

Closed as duplicate
Closed as duplicate

Description

@guijie060304-pixel

Description

Summary:2.2.0 → 2.2.2 后 browser 命名空间从工具目录消失,AI 只能说没有内置浏览器
Environment:桌面端 2.2.2、Windows 11 26200 x64、官方 x64 安装包、无插件
Reproduction:2.2.0 可用 → 升级 2.2.2 → 新会话问「打开内置浏览器」→ 工具目录里 browser 为 0 条
Actual:同一会话内目录刷新后 browser 整个消失(items: [])

opencode-issue-browser-2.2.2.md

Plugins

No response

OpenCode version

2.2.2

Steps to reproduce

No response

Screenshot

No response

Operating System

window11

Terminal

No response

Activity

  1. opencodejr commented on Oct 30, 2026

    @opencodejr
    Contributor

    感谢反馈!

    我认为这个问题与 #60369 重复。#60369 报告的同样是 Windows 上的 OpenCode Desktop 2.2.2,升级后内置浏览器无法使用。有人从 v2.2.2 源码构建桌面端后发现,内置浏览器的代码块无法加载(main.log 中报错 SyntaxError: Identifier 'n' has already been declared),浏览器因此无法连接。这很可能也是你看到工具目录里 browser 命名空间消失(items: [])、AI 说没有内置浏览器的原因。

    可能重复或相关的 issue,按可能性从高到低排列:

    目前有一个尚未合并的修复 PR #60388。

    除非你在这里回复说明你的问题有什么不同,机器人会在 1 天后将本 issue 作为重复关闭。


    Thanks for the report! I think this is a duplicate of #60369: on OpenCode Desktop 2.2.2 the built-in browser's code fails to load (SyntaxError: Identifier 'n' has already been declared), so the browser never connects and the browser tools disappear from the catalog. The list above is ordered by likelihood. A fix is open as PR #60388. The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different.

  2. Hona commented on Oct 30, 2026

    @Hona
    Member

    Fixed in 2.2.3 by #60430.

    The desktop main-process bundle declared require twice, which broke the in-app browser and its browser.* tools.

    Please update to 2.2.3. In the desktop app, use Check for Updates, or install it from the release page. If the browser pane still doesn't appear afterwards, please reopen this issue with your main.log from the logs folder.

  3. opencodejr commented on Oct 31, 2026

    @opencodejr
    Contributor

    我们等了一天,看看你的问题是否与 #60369 不同。目前没有收到回复,现在将本 issue 作为 #60369 的重复关闭。#60369 是 Desktop 2.2.2 中内置浏览器加载失败的问题,会导致 browser 工具从目录中消失。请在 #60369 关注后续进展。修复 PR #60388 目前尚未合并。如果你的问题确实不同,欢迎在这里回复说明。


    We waited a day to hear whether your problem differs from #60369. There was no reply, so this issue is now closed as a duplicate of #60369, where the built-in browser fails to load in Desktop 2.2.2 and its browser tools disappear from the catalog. Please follow #60369 for updates; the fix in PR #60388 is still open. If your problem is actually different, please reply here and explain how.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions