Skip to content

Commit f7a3f2e

Browse files
committed
resolve copilot remarks
1 parent f68bee6 commit f7a3f2e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

cli/src/state/hooks/useHotkeys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export function useHotkeys(): UseHotkeysReturn {
8585
// Priority 5: Shell mode hotkeys
8686
if (isShellModeActive) {
8787
return [
88-
{ keys: "↑↓", description: "history" },
88+
{ keys: "Up/Down", description: "history" },
8989
{ keys: "Enter", description: "to execute" },
9090
{ keys: "Esc", description: "to exit" },
9191
{ keys: "!", description: "to exit shell mode" },

cli/src/ui/components/CommandInput.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,12 @@ export const CommandInput: React.FC<CommandInputProps> = ({
145145
<Box borderStyle="round" borderColor={borderColor} paddingX={1}>
146146
<Box flexDirection="row" alignItems="center">
147147
<Text color={promptColor} bold>
148-
{isShellMode && !isCommittingParallelMode && <Text color={promptColor}>shell</Text>}
149-
{isShellMode && !isCommittingParallelMode && <Text> </Text>}
148+
{isShellMode && !isCommittingParallelMode && (
149+
<>
150+
<Text color={promptColor}>shell</Text>
151+
<Text> </Text>
152+
</>
153+
)}
150154
{promptSymbol}
151155
</Text>
152156
<MultilineTextInput

cli/src/ui/utils/keyParsing.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*/
55

66
import type { Key } from "../../types/keyboard.js"
7-
import { logs } from "../../services/logs.js"
87
import {
98
ESC,
109
CSI,
@@ -241,9 +240,6 @@ export function parseKittySequence(buffer: string): ParseResult {
241240

242241
// Handle Shift+1/Shift+! for shell mode toggle
243242
if (shift && (keyCode === CHAR_CODE_DIGIT_1 || keyCode === CHAR_CODE_EXCLAMATION)) {
244-
logs.debug(
245-
`Shift+1/! detected in key parsing: keyCode=${keyCode}, shift=${shift}, sequence=${buffer.slice(0, match[0].length)}`,
246-
)
247243
return {
248244
key: {
249245
name: "shift-1",

0 commit comments

Comments
 (0)