Skip to content

fix(frontend): preserve chat history when switching threads#2163

Open
LittleChenLiya wants to merge 1 commit intobytedance:mainfrom
LittleChenLiya:Admire/fix-thread-switch-empty-2120
Open

fix(frontend): preserve chat history when switching threads#2163
LittleChenLiya wants to merge 1 commit intobytedance:mainfrom
LittleChenLiya:Admire/fix-thread-switch-empty-2120

Conversation

@LittleChenLiya
Copy link
Copy Markdown
Contributor

Summary

  • add the current thread_id as a key on the top-level chat providers
  • force the chat provider tree to remount when switching between thread routes
  • apply the same remount behavior to both workspace chats and agent chats

Testing

  • cmd /c pnpm typecheck
  • cmd /c pnpm exec eslint "src/app/workspace/chats/[thread_id]/layout.tsx" "src/app/workspace/agents/[agent_name]/chats/[thread_id]/layout.tsx"

Closes #2120

@LittleChenLiya LittleChenLiya marked this pull request as draft April 13, 2026 02:33
@LittleChenLiya LittleChenLiya marked this pull request as ready for review April 22, 2026 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: conversation content becomes empty when navigating back from another chat

1 participant