Skip to content

feat(chat): support manual session rename in sidebar#307

Open
slicenferqin wants to merge 1 commit intoValueCell-ai:mainfrom
slicenferqin:codex/fix-session-title-rename
Open

feat(chat): support manual session rename in sidebar#307
slicenferqin wants to merge 1 commit intoValueCell-ai:mainfrom
slicenferqin:codex/fix-session-title-rename

Conversation

@slicenferqin
Copy link
Contributor

Linked Issues

Summary

  • Add manual session rename flow in sidebar for non-main sessions.
  • Persist renamed title via sessions.patch (label).
  • Keep explicit/manual labels from being overwritten by auto-generated first-message labels.
  • Prioritize backend label over derived local labels in sidebar rendering.
  • Add zh/en/ja i18n strings for rename/delete session actions and feedback.

Why

Users reported that session titles change automatically and cannot be manually edited, making it difficult to find prior conversations.

Validation

  • pnpm run lint
  • pnpm run typecheck
  • pnpm run test

@slicenferqin
Copy link
Contributor Author

补充一个方便 reviewer 快速验收的复现/验证说明:

复现旧问题(修复前)

  1. 在 Chat 页面创建一个新的 non-main 会话。
  2. 发送第一条消息,侧边栏会自动生成标题(取首条用户消息)。
  3. 刷新会话/重新进入页面后,标题可能被自动逻辑重新覆盖。
  4. 侧边栏没有手动重命名入口,历史会话不易检索。

本 PR 后的预期行为

  1. non-main 会话右侧出现 ✏️ 重命名入口。
  2. 点击后可内联编辑标题,支持 Enter 保存、Esc 取消。
  3. 保存时通过 sessions.patch 持久化到 label
  4. 后续刷新会话列表/历史加载时,不再用自动首条消息标题覆盖显式 label。

快速验收点

  • 能手动重命名 non-main 会话。
  • 重命名后刷新仍保持新标题。
  • 会话排序仍按最近活跃时间正常工作。
  • main 会话行为不变。

@HackingHobbit
Copy link

Amen.

@slicenferqin slicenferqin force-pushed the codex/fix-session-title-rename branch from cc5a6a7 to 126c6f6 Compare March 9, 2026 06:08
@slicenferqin slicenferqin mentioned this pull request Mar 9, 2026
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.

Chat sessions: support manual rename and avoid auto-title override

2 participants