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
14 changes: 14 additions & 0 deletions packages/cli/src/ui/components/Footer.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,20 @@ describe('<Footer />', () => {
expect(lastFrame()).toContain('Enter to steer · Ctrl+Q to queue');
});

it('shows mode indicator alongside steering hint during streaming', () => {
const { lastFrame } = renderWithWidth(
120,
createMockUIState({
streamingState: StreamingState.Responding,
showAutoAcceptIndicator: ApprovalMode.YOLO,
}),
);

const frame = lastFrame()!;
expect(frame).toContain('Enter to steer · Ctrl+Q to queue');
expect(frame).toContain('YOLO mode');
});

it('shows deferred IDE connection progress', () => {
const { lastFrame } = renderWithWidth(
120,
Expand Down
6 changes: 6 additions & 0 deletions packages/cli/src/ui/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ export const Footer: React.FC = () => {
) : uiState.streamingState === StreamingState.Responding ? (
<Text color={theme.text.secondary}>
{t('Enter to steer · Ctrl+Q to queue')}
{showAutoAcceptIndicator !== undefined && (
<>
{' · '}
<AutoAcceptIndicator approvalMode={showAutoAcceptIndicator} />
</>
)}
</Text>
) : showAutoAcceptIndicator !== undefined ? (
<AutoAcceptIndicator approvalMode={showAutoAcceptIndicator} />
Expand Down
Loading