Repository navigation
fix(web): keep goal controls beside the composer #26023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2488,6 +2488,7 @@ export default function ChatView(props: ChatViewProps) { | |
| }) | ||
| : null; | ||
| const composerBannerItems = (() => { | ||
| const goalItems = goalNow === null ? [] : [{ ...goalNow, variant: "default" }]; | ||
| const limitRecoveryItems = limitRecoveryBanner === null ? [] : [limitRecoveryBanner]; | ||
| const usageLimitsItems = usageLimitsBanner === null ? [] : [usageLimitsBanner]; | ||
| const projectCloneItems = projectCloneBannerItem === null ? [] : [projectCloneBannerItem]; | ||
|
|
@@ -2498,6 +2499,7 @@ export default function ChatView(props: ChatViewProps) { | |
| ...usageLimitsItems, | ||
| ...projectCloneItems, | ||
| ...systemComposerBannerItems, | ||
| ...goalItems, | ||
| ]; | ||
| } | ||
| return [ | ||
|
|
@@ -2506,6 +2508,7 @@ export default function ChatView(props: ChatViewProps) { | |
| ...usageLimitsItems, | ||
| ...projectCloneItems, | ||
| ...systemComposerBannerItems, | ||
| ...goalItems, | ||
| branchMismatchBannerItem({ | ||
| mismatchKey: activeBranchMismatchKey, | ||
| mismatch: localCheckoutBranchMismatch, | ||
|
|
@@ -2917,10 +2920,7 @@ export default function ChatView(props: ChatViewProps) { | |
| const onExpandTimelineImageStable = useStableCallback(onExpandTimelineImage); | ||
| const shownThreadSyncPhase = activeEnvironmentUnavailable ? null : delayedThreadSyncPhase; | ||
| const hasThreadNow = | ||
| childInputNow !== null || | ||
| backgroundWorkNow !== null || | ||
| goalNow !== null || | ||
| shownThreadSyncPhase !== null; | ||
| childInputNow !== null || backgroundWorkNow !== null || shownThreadSyncPhase !== null; | ||
| const queuedRunCount = serverProjection ? getUserQueuedThreadRuns(serverProjection).length : 0; | ||
| // The queue control is mounted for every server thread but joins the footer only while it shows | ||
| // something, by its own rule: an optimistic message stops counting once the server has it. | ||
|
|
@@ -2962,7 +2962,6 @@ export default function ChatView(props: ChatViewProps) { | |
| attention={childInputNow} | ||
| work={backgroundWorkNow} | ||
| syncPhase={shownThreadSyncPhase} | ||
| goal={goalNow} | ||
| /> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| {threadStatusLine} | ||
| {pendingGuestMessageCount > 0 && isServerThread && activeThread ? ( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Medium
components/ChatView.tsx:2964When an approval or question is pending, users lose the goal status and
Clearcontrol until they answer or dismiss the request. The footer no longer provides the goal control, andChatComposerfilters its default-variant goal banner whilehasBlockingComposerTopDraweris set; keep the goal controls accessible alongside the pending request.🤖 Copy this AI Prompt to have your agent fix this: