Fix session/tool-question UX regressions and stabilize streaming activity rendering (#451)
* fix: stale model variants in chat controls in draft session * fix: attention indicator for project tabs * fix: use part index and type for consistent IDs * fix question card navigation for unanswered questions
This commit is contained in:
committed by
GitHub
parent
50a66bb6f1
commit
22255cf2c0
@@ -425,7 +425,8 @@ export const Header: React.FC = () => {
|
||||
hasStreaming = true;
|
||||
}
|
||||
|
||||
if (session.id !== currentSessionId && sessionAttentionStates.get(session.id)?.needsAttention === true) {
|
||||
const isCurrentVisibleSession = session.id === currentSessionId && project.id === activeProjectId;
|
||||
if (!isCurrentVisibleSession && sessionAttentionStates.get(session.id)?.needsAttention === true) {
|
||||
hasNeedsAttention = true;
|
||||
}
|
||||
|
||||
@@ -442,7 +443,7 @@ export const Header: React.FC = () => {
|
||||
}
|
||||
|
||||
return result;
|
||||
}, [availableWorktreesByProject, currentSessionId, getSessionsByDirectory, projects, sessionAttentionStates, sessionStatus, sessionsByDirectory, showProjectTabs]);
|
||||
}, [activeProjectId, availableWorktreesByProject, currentSessionId, getSessionsByDirectory, projects, sessionAttentionStates, sessionStatus, sessionsByDirectory, showProjectTabs]);
|
||||
|
||||
React.useLayoutEffect(() => {
|
||||
if (!showProjectTabs) return;
|
||||
|
||||
Reference in New Issue
Block a user