github / github/copilot-cli

Browser canvas WebView closes when loading a JavaScript-heavy localhost page

未关闭
#4,776 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

triage
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

Description

The browser canvas becomes stuck on its loading UI when opening an authenticated, JavaScript-heavy application hosted on localhost. The target page works correctly in a regular browser such as Chrome.

Environment

  • Copilot App version: 1.0.83-5
  • OS: macOS
  • Target: http://localhost:3001/...
  • Application: local React web application

Steps to reproduce

  1. Open a localhost application login page in the Copilot browser canvas.
  2. Sign in successfully.
  3. Navigate to a specific page using a query parameter.
  4. Wait for the page to initialize.

Expected behavior

The authenticated page loads in the browser canvas as it does in Chrome.

Actual behavior

The browser canvas remains on its loading UI. Browser canvas diagnostics initially show that login succeeds, but when the target page begins loading, the WebView is closed or becomes unavailable. Subsequent browser tool calls return:

Browser page load waiter closed.
webview not found

A second browser canvas could load the login page, but browser interactions later began timing out:

Browser tool request timed out.

The localhost server remains reachable, and the same page continues to work in a regular browser.

Additional notes

The target application loads a large React bundle. This may be related to WebView compatibility, renderer-process termination, or browser canvas resource limits. No credentials, product names, versions, or private page paths are included in this report.

贡献指南

打开贡献指南

从这里开始

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

调研方向

首先,在浏览器画布中复现经过身份验证的 localhost React 应用,并在目标页面开始加载时检查其诊断信息。将 WebView 状态与常规浏览器进行比较,并验证画布仍然可用、页面完成加载,以及后续的浏览器工具调用不会报告“webview not found”或超时。

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

评估

技术栈
javascript, react
领域
desktop, frontend, web-dev
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

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