Merged
Conversation
修复 Agent 模式下重命名会话时,附加的文件夹(attachedDirectories)会丢失的问题。 问题原因: - 前端在处理重命名时,手动构造了只包含 title 和 updatedAt 的对象 - 导致后端返回的完整 AgentSessionMeta 对象中的其他字段(如 attachedDirectories)被丢弃 修复方案: - 使用后端返回的完整 AgentSessionMeta 对象更新状态 - 与 Chat 模式的重命名逻辑保持一致 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题描述
在 Agent 模式下,当按照以下步骤操作时,附加的文件夹会丢失:
复现条件
关键点:在新建会话后,如果没有进行任何对话操作就直接附加文件夹并重命名,会导致文件夹丢失。
修复方案
修复了会话重命名时工作区 ID 丢失的问题,确保重命名操作正确保留会话的 workspaceId。
测试