fix(chat): đổi tên hội thoại thì tiêu đề khung chat đổi theo ngay
Đổi tên một hội thoại ở cột lịch sử (chuột phải → Đổi tên) thì tiêu đề khung chat bên phải vẫn giữ tên cũ, phải click ra ngoài rồi click lại mới đổi. Tệ hơn, self.title cũ vẫn nằm trong bộ nhớ nên lượt chat kế tiếp lưu đè tên cũ lên tên người dùng vừa đặt. - HistorySidebar phát conversation_renamed(session_id, title); WorkspaceTab nối vào apply_renamed_title của Cowork. Hội thoại đang mở thì đổi luôn self.title và làm mới thanh tiêu đề. - Tiêu đề hội thoại chỉ hiện tối đa 10 ký tự, dư thì "…", tên đầy đủ ở tooltip. Áp cho cả thanh tiêu đề khung chat lẫn danh sách hội thoại trong project (dùng chung clip_chars). Hộp thoại Đổi tên vẫn điền tên đầy đủ. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
ddb31f9aff
commit
fefc9f94db
@@ -339,6 +339,8 @@ class WorkspaceTab(ProjectEditingMixin, ProjectFolderRuleMixin, QWidget):
|
||||
sb.expand_requested.connect(lambda: self._on_history_fold(False))
|
||||
sb.refresh_requested.connect(self._on_sidebar_refresh)
|
||||
sb.history_changed.connect(self._reload_threads)
|
||||
if self._cowork is not None:
|
||||
sb.conversation_renamed.connect(self._cowork.apply_renamed_title)
|
||||
|
||||
def _on_history_fold(self, collapsed: bool) -> None:
|
||||
"""Its chevron closes the panel away, back to the drawn layout."""
|
||||
|
||||
Reference in New Issue
Block a user