Unverified 提交 b49e43ec authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

Hide uncommitted files banner during streaming (#2289)

This avoids distracting the user during active chat responses. https://claude.ai/code/session_018bxH7uX9t4TH4wxh9VE7Ka #skip-bugbot <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Hide the uncommitted files banner while chat is streaming to reduce distraction. Adds an isStreaming check in ChatHeader so the banner only appears when not streaming. <sup>Written for commit 4bd7b9fe48f94414e83ae9e4600b4cf898535c1b. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> Co-authored-by: 's avatarClaude <noreply@anthropic.com>
上级 d2aed44c
...@@ -180,7 +180,8 @@ export function ChatHeader({ ...@@ -180,7 +180,8 @@ export function ChatHeader({
)} )}
{/* Show uncommitted files banner when on a branch and there are uncommitted changes */} {/* Show uncommitted files banner when on a branch and there are uncommitted changes */}
{!isVersionPaneOpen && branchInfo?.branch && ( {/* Hide while streaming to avoid distracting the user */}
{!isVersionPaneOpen && branchInfo?.branch && !isStreaming && (
<UncommittedFilesBanner appId={appId} /> <UncommittedFilesBanner appId={appId} />
)} )}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论