Skip to content

共享页面出现错误信息:“TypeError:无法读取未定义对象的‘id’属性”(Share page throws TypeError: Cannot read properties of undefined (reading 'id')) #29821

@laoli2480

Description

@laoli2480

Description

当在A电脑使用 /share 分享对话C的时候一切是正常的,右上角也是正常显示着分享的来链接,在浏览器查看也是可以正常显示的
然后在B电脑导入的时候也是一切正常的,除了显示的时候会稍微卡顿一下,在B电脑上查看刚刚导入的会话C的时候 右上角是显示着导入的链接的
然后在B电脑接着刚刚导入的对话C接着使用,使用完了,我现在在B电脑上分享这个对话C,右上角弹出错误:‘缺失Id’,关闭opencode,再次重启也是一样的,随后使用 /unshare取消分享链接,右上角正常消失,再次使用 /share来分享,分享成功没有报错,和第一次在A电脑上分享的Id不一样
随后在A电脑上进行新的导入,导入失败,‘分享内容找到为空‘,后面显示的ID和在B电脑上的一模一样,随后使用浏览器打开链接显示

Image

When using the /share feature on computer A to access conversation C, everything was normal. The upper right corner also displayed the correct link for sharing. Viewing it in the browser was also possible without any issues.
Then, when importing on computer B, everything was normal except for a slight lag during the display. On computer B, when viewing the recently imported conversation C, the upper right corner displayed the import link.
After that, on computer B, using the just imported conversation C, when I finished using it, I now shared this conversation C on computer B. A pop-up error appeared in the upper right corner: 'Missing Id'. Closing the opencode and restarting again resulted in the same issue. Then, using /unshare to cancel the sharing link, the error disappeared in the upper right corner. When I used /share to share again, the sharing was successful without any errors, but the ID was different from the one on computer A when sharing.
Subsequently, on computer A, a new import was attempted, but it failed with the message 'Sharing content found empty'. The displayed ID was the same as on computer B. Then, by opening the link in the browser, the following was shown:

Image

Plugins

No response

OpenCode version

1.15.11

Steps to reproduce

1.在A电脑使用 /share 分享对话C的时候一切是正常的,
2.在B电脑导入的时候也是一切正常,然后在B电脑接着刚刚导入的对话C接着使用随后分享这个对话C,右上角弹出错误:‘缺失Id’,关闭opencode,再次重启也是一样的,随后使用 /unshare取消分享链接,右上角正常消失,再次使用 /share来分享,分享成功没有报错,和第一次在A电脑上分享的Id不一样
3.在A电脑上进行新的导入,导入失败,‘分享内容找到为空‘,后面显示的ID和在B电脑上的一模一样,随后使用浏览器打开链接显示

Image
  1. Everything was normal when using /share to share the conversation C on computer A.
  2. Everything was also normal when importing on computer B. Then, on computer B, the just imported conversation C was used and subsequently shared. A pop-up error appeared in the upper right corner: 'Missing Id'. Closing the opencode and restarting again resulted in the same issue. Then, using /unshare to cancel the sharing link, the error disappeared in the upper right corner. Sharing again using /share was successful without any errors, but the ID was different from the one shared on computer A initially.
  3. A new import was attempted on computer A, but it failed with the message 'The shared content is found to be empty'. The displayed ID was exactly the same as on computer B. Subsequently, opening the link with a browser showed
Image

Screenshot and/or share link

No response

Operating System

Windows11

Terminal

PowerShell7

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions