Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/browser/components/WorkspaceStatusIndicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const WorkspaceStatusIndicator = memo<{ workspaceId: string }>(({ workspa
// Show prompt when ask_user_question is pending - make it prominent
if (awaitingUserQuestion) {
return (
<div className="flex min-w-0 items-center gap-1.5 rounded bg-yellow-500/20 px-1.5 py-0.5 text-xs text-yellow-400">
<div className="bg-plan-mode-alpha text-plan-mode-light flex min-w-0 items-center gap-1.5 rounded px-1.5 py-0.5 text-xs">
<span className="-mt-0.5 shrink-0 text-[10px]">❓</span>
<span className="min-w-0 truncate font-medium">Mux has a few questions</span>
</div>
Expand Down
6 changes: 6 additions & 0 deletions src/browser/components/tools/AskUserQuestionToolCall.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,12 @@ export function AskUserQuestionToolCall(props: {
},
}));
}}
onKeyDown={(e) => {
if (e.key === "Enter" && currentDraft.otherText.trim().length > 0) {
e.preventDefault();
setActiveIndex(activeIndex + 1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fishy for outofbound

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it’s fine. You can’t enter anything on the summary page, so you wouldn’t be able to press Enter there and go out of bounds.

}
}}
/>
)}
</div>
Expand Down