ChatGPTNextWeb / ChatGPTNextWeb/NextChat

[Bug] 网页端导出的本地数据导入Windows客户端后,Windows客户端反应异常

Open
#2,888 6 comments 0 reactions 0 assignees View on GitHub
sync
Dominant language
TypeScript
Stars
88.8k
Forks
59.1k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
1. 网页端导出的本地数据导入Windows客户端后,在Windows客户端发送消息会异常输出一段网页编码。
2. 网页端在非全屏状态下导出的本地数据导入Windows客户端后,Windows客户端会被强制变成非全屏状态,Windows客户端必须“重置所有设置”才能恢复全屏状态。

**To Reproduce**
Steps to reproduce the behavior:
1. Vercel部署网页端ChatGPT-Next-Web;
2. 非全屏状态产生对话后导出本地数据;
3. 导入此本地数据到Windows客户端;
4. Windows客户端被强制变为非全屏状态,且此时没有全屏按钮,只能通过“重置所有设置”恢复全屏状态;
5. 在Windows客户端发送消息,返回一段网页编码。

**Expected behavior**
1. Windows客户端导入网页端导出的本地数据后可以正常对话。
2. Windows客户端导入非全屏状态产生的本地数据后不会强制进入非全屏状态。
3. 建议加入导出除全局设置外的导出选项。

**Screenshots**
1. Windows客户端输出一段网页代码
![Screenshots1](https://github.com/Yidadaa/ChatGPT-Next-Web/assets/57245286/cf5b41c8-e4d3-4c9f-a21d-2d96afb5e7a6)

2. Windows客户端被强制变为非全屏状态,且无全屏键
![Screenshots2](https://github.com/Yidadaa/ChatGPT-Next-Web/assets/57245286/40ef8ad7-27d5-42a4-90c0-e69e88faf057)

**Deployment**
- [ ] Docker
- [x] Vercel
- [ ] Server

**Desktop (please complete the following information):**
- OS: [Windows10]
- Browser [chrome]
- Version [v2.9.7]

**Additional Logs**
这里是Windows客户端异常输出的网页代码:
ChatGPT Next Web

(self.__next_f=self.__next_f||[]).push([0])self.__next_f.push([1,"1:HL[\"/_next/static/css/1ecdfc2a488188d1.css\",{\"as\":\"style\"}]\n0:\"$L2\"\n"])self.__next_f.push([1,"3:HL[\"/_next/static/css/db8139f6ca0b2e02.css\",{\"as\":\"style\"}]\n4:HL[\"/_next/static/css/45807bbfbf295d6d.css\",{\"as\":\"style\"}]\n"])self.__next_f.push([1,"5:I{\"id\":2353,\"chunks\":[\"272:static/chunks/webpack-2427bf9b6a6c272f.js\",\"629:static/chunks/04b39fde-ecaa0cd21df28b64.js\"],\"name\":\"default\",\"async\":false}\n7:I{\"id\":7330,\"chunks\":[\"272:static/chunks/webpack-2427bf9b6a6c272f.js\",\"629:static/chunks/04b39fde-ecaa0cd21df28b64.js\"],\"name\":\"\",\"async\":false}\n9:I{\"id\":9180,\"chunks\":[\"272:static/chunks/webpack-2427bf9b6a6c272f.js\",\"629:static/chunks/04b39fde-ecaa0cd21df28b64.js\"],\"name\":\"default\",\"async\":false}\na:I{\"id\":2306,\"chunks\":[\"272:static/chunks/webpack-2427bf"])self.__next_f.push([1,"9b6a6c272f.js\",\"629:static/chunks/04b39fde-ecaa0cd21df28b64.js\"],\"name\":\"default\",\"async\":false}\n"])self.__next_f.push([1,"2:[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/1ecdfc2a488188d1.css\",\"precedence\":\"next\"}]],[\"$\",\"$L5\",null,{\"buildId\":\"1Ver3ek6D8OatiWbEOniF\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/\",\"initialTree\":[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],\"initialHead\":[\"$L6\",null],\"globalErrorComponent\":\"$7\",\"notFound\":[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"meta\",null,{\"name\":\"config\",\"content\":\"{\\\"version\\\":\\\"v2.9.7\\\",\\\"commitDate\\\":\\\"1695092650000\\\",\\\"commitHash\\\":\\\"175b4e7f92abba782bdd2561c5e479bc315d6d9f\\\",\\\"buildMode\\\":\\\"export\\\",\\\"isApp\\\":true}\"}],[\"$\",\"link\",null,{\"rel\":\"manifest\",\"href\":\"/site.webmanifest\"}],[\"$\",\"script\",null,{\"src\":\"/serviceWorkerRegister.js\",\"defer\":true}]]}],[\"$\",\"body\",null,{\"children\":[\"$L8\",\"$undefined\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]]]}]]}],\"asNotFound\":false,\"children\":[[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"meta\",null,{\"name\":\"config\",\"content\":\"{\\\"version\\\":\\\"v2.9.7\\\",\\\"commitDate\\\":\\\"1695092650000\\\",\\\"commitHash\\\":\\\"175b4e7f92abba782bdd2561c5e479bc315d6d9f\\\",\\\"buildMode\\\":\\\"export\\\",\\\"isApp\\\":true}\"}],[\"$\",\"link\",null,{\"rel\":\"manifest\",\"href\":\"/site.webmanifest\"}],[\"$\",\"script\",null,{\"src\":\"/serviceWorkerRegister.js\",\"defer\":true}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"$L9\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"loading\":\"$undefined\",\"loadingStyles\":\"$undefined\",\"hasLoading\":false,\"template\":[\"$\",\"$La\",null,{}],\"templateStyles\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"childProp\":{\"current\":[\"$Lb\",null],\"segment\":\"__PAGE__\"},\"styles\":[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/db8139f6ca0b2e02.css\",\"precedence\":\"next\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/45807bbfbf295d6d.css\",\"precedence\":\"next\"}]]}]}]]}],null]}]]\n"])self.__next_f.push([1,"c:I{\"id\":5766,\"chunks\":[\"629:static/chunks/04b39fde-ecaa0cd21df28b64.js\",\"931:static/chunks/app/page-f2b976fca9889ce7.js\"],\"name\":\"Home\",\"async\":false}\nb:[[\"$\",\"$Lc\",null,{}],false]\n8:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])self.__next_f.push([1,"6:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"1\",{\"children\":\"ChatGPT Next Web\"}],[\"$\",\"meta\",\"2\",{\"name\":\"description\",\"content\":\"Your personal ChatGPT Chat Bot.\"}],[\"$\",\"meta\",\"3\",{\"name\":\"theme-color\",\"media\":\"(prefers-color-scheme: light)\",\"content\":\"#fafafa\"}],[\"$\",\"meta\",\"4\",{\"name\":\"theme-color\",\"media\":\"(prefers-color-scheme: dark)\",\"content\":\"#151515\"}],[\"$\",\"meta\",\"5\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, maximum-scale=1\"}],[\"$\",\"meta\",\"6\",{\"name\":\"apple-mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"7\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"ChatGPT Next Web\"}],[\"$\",\"meta\",\"8\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"default\"}]]\n"])

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the Vercel web export and Windows client import flow using the reported Windows 10 and v2.9.7 conditions, checking both the non-fullscreen state and the message response. No source file or test is named, so trace the export/import path first; done means imported data preserves the client state and messages no longer return webpage markup.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, tauri, typescript
Domain
desktop, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.