tycono 0.3.33-beta.0 → 0.3.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/tui/app.tsx
CHANGED
|
@@ -761,6 +761,7 @@ export const App: React.FC = () => {
|
|
|
761
761
|
systemMessages={systemMessages}
|
|
762
762
|
userInputs={userInputs}
|
|
763
763
|
committedRef={committedRef}
|
|
764
|
+
isActive={mode !== 'panel'}
|
|
764
765
|
onUserInput={(line) => setUserInputs(prev => [...prev.slice(-10), line])}
|
|
765
766
|
onSubmit={handleCommandSubmit}
|
|
766
767
|
onQuickAction={(action) => {
|
|
@@ -29,6 +29,7 @@ interface CommandModeProps {
|
|
|
29
29
|
systemMessages: StreamLine[];
|
|
30
30
|
userInputs: StreamLine[];
|
|
31
31
|
committedRef: React.MutableRefObject<number>;
|
|
32
|
+
isActive: boolean; // false when Panel mode is showing (display:none)
|
|
32
33
|
onUserInput: (line: StreamLine) => void;
|
|
33
34
|
onSubmit: (input: string) => void;
|
|
34
35
|
onQuickAction?: (action: string) => void;
|
|
@@ -297,6 +298,7 @@ export const CommandMode: React.FC<CommandModeProps> = ({
|
|
|
297
298
|
systemMessages,
|
|
298
299
|
userInputs,
|
|
299
300
|
committedRef,
|
|
301
|
+
isActive,
|
|
300
302
|
onUserInput,
|
|
301
303
|
onSubmit,
|
|
302
304
|
onQuickAction,
|
|
@@ -341,6 +343,9 @@ export const CommandMode: React.FC<CommandModeProps> = ({
|
|
|
341
343
|
|
|
342
344
|
// Quick bar + autocomplete navigation
|
|
343
345
|
useInput((ch, key) => {
|
|
346
|
+
// Don't handle input when hidden (Panel mode active) — prevents key event stealing
|
|
347
|
+
if (!isActive) return;
|
|
348
|
+
|
|
344
349
|
// Autocomplete mode
|
|
345
350
|
if (acVisible) {
|
|
346
351
|
if (key.downArrow) {
|