Skip to content

opencode 的会话导出bug #16093

@Elynn-Lyl

Description

@Elynn-Lyl

Description

问题描述

使用 opencode 的会话导出功能后,导出的 txt 文件中所有消息的实际内容都显示为「[无内容]」,只保留了消息的结构信息(如时间戳、消息编号),但对话的文本内容全部丢失。

复现步骤

  1. 在 opencode 中进行一些对话
  2. 导出会话为 txt 文件
  3. 查看导出的文件内容

期望行为

导出的文件应该包含完整的对话内容,包括用户的问题和助手的回答。

实际行为

所有消息内容都显示为「[无内容]」,例如:

--- 消息 1 [USER] 17:17:41 ---
[无内容]

--- 消息 2 [ASSISTANT] 17:17:41 ---
[无内容]

环境信息

  • Platform: linux
  • Working directory:

附件

导出的文件示例大小为 79KB,但内容为空。

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

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