mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 12:11:09 +00:00
feat(cli): Add ShellModeIndicator component
This commit introduces a new ShellModeIndicator component to visually signify when shell mode is active. - Displays "shell mode enabled (! to toggle)" in the UI. - The AutoAcceptIndicator is now hidden when shell mode is active to prevent UI clutter.
This commit is contained in:
parent
6cc0087105
commit
db93ea736b
2 changed files with 25 additions and 1 deletions
18
packages/cli/src/ui/components/ShellModeIndicator.tsx
Normal file
18
packages/cli/src/ui/components/ShellModeIndicator.tsx
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/**
|
||||
* @license
|
||||
* Copyright 2025 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { Box, Text } from 'ink';
|
||||
import { Colors } from '../colors.js';
|
||||
|
||||
export const ShellModeIndicator: React.FC = () => (
|
||||
<Box>
|
||||
<Text color={Colors.AccentYellow}>
|
||||
shell mode enabled
|
||||
<Text color={Colors.SubtleComment}> (! to toggle)</Text>
|
||||
</Text>
|
||||
</Box>
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue