Fix input focus issue by using useKeypress instead of useInput for ResumeSessionDialog

This commit is contained in:
Alexander Farber 2025-12-13 13:04:01 +01:00
parent 1098c23b26
commit 56a62bcb2a
No known key found for this signature in database
2 changed files with 289 additions and 2 deletions

View file

@ -8,7 +8,7 @@ import { useState, useEffect, useRef } from 'react';
import { Box, Text } from 'ink';
import { SessionService, getGitBranch } from '@qwen-code/qwen-code-core';
import { theme } from '../semantic-colors.js';
import { useSessionPicker } from '../hooks/useSessionPicker.js';
import { useDialogSessionPicker } from '../hooks/useDialogSessionPicker.js';
import { SessionListItemView } from './SessionListItem.js';
export interface ResumeSessionDialogProps {
@ -40,7 +40,7 @@ export function ResumeSessionDialog({
? Math.max(3, Math.floor((availableTerminalHeight - 6) / 3))
: 5;
const picker = useSessionPicker({
const picker = useDialogSessionPicker({
sessionService: sessionServiceRef.current,
currentBranch,
onSelect,