mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-08-22 19:08:00 +02:00
修复多会话任务栏抖动、会话跳回与停止失效 (#264)
* fix(web): stabilize active task ordering * fix(chat): preserve navigation during conversation startup * fix(tasks): guarantee hard cancellation * fix(chat): bind navigation and hard stop targets * fix(chat): prevent replay from reclaiming navigation
This commit is contained in:
@@ -3352,15 +3352,17 @@ function appendChatProjectConversationItem(list, conversation, project) {
|
||||
});
|
||||
button.appendChild(label);
|
||||
|
||||
button.addEventListener('click', async () => {
|
||||
button.addEventListener('click', async (event) => {
|
||||
const targetConversationId = String(event.currentTarget && event.currentTarget.dataset.conversationId || '').trim();
|
||||
if (!targetConversationId) return;
|
||||
projectConversationPreviewSuppressedUntil = Date.now() + 700;
|
||||
hideProjectConversationPreview(true);
|
||||
selectChatProjectConversationItem(conversation.id);
|
||||
selectChatProjectConversationItem(targetConversationId);
|
||||
if (typeof window.loadConversation === 'function') {
|
||||
await window.loadConversation(conversation.id);
|
||||
await window.loadConversation(targetConversationId);
|
||||
}
|
||||
if (window.currentConversationId === conversation.id && completed) {
|
||||
markProjectConversationViewed(conversation.id, completed.completedAt);
|
||||
if (window.currentConversationId === targetConversationId && completed) {
|
||||
markProjectConversationViewed(targetConversationId, completed.completedAt);
|
||||
renderChatProjectFolders(projectsCacheAll);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user