tycono 0.3.36 → 0.3.38
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
|
@@ -667,21 +667,28 @@ export const App: React.FC = () => {
|
|
|
667
667
|
}
|
|
668
668
|
}, [execute, addSystemMessage, addSystemLines, focusedWaveId, focusedWaveIndex, derivedWaveStatus, api.sessions.length, activeCount, waves, api.activeSessions, api.portSummary, pendingPresetSelect, onWaveCreated]);
|
|
669
669
|
|
|
670
|
-
// Global key handler: Tab
|
|
670
|
+
// Global key handler: Tab/Escape mode toggle + Ctrl+C
|
|
671
671
|
useInput((input, key) => {
|
|
672
672
|
if (key.ctrl && input === 'c') {
|
|
673
673
|
exit();
|
|
674
674
|
return;
|
|
675
675
|
}
|
|
676
|
-
if (
|
|
677
|
-
|
|
678
|
-
|
|
676
|
+
if (key.tab) {
|
|
677
|
+
if (mode === 'command') {
|
|
678
|
+
process.stdout.write('\x1b[2J\x1b[H');
|
|
679
|
+
setMode('panel');
|
|
680
|
+
}
|
|
681
|
+
return;
|
|
679
682
|
}
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
683
|
+
if (key.escape) {
|
|
684
|
+
if (mode === 'panel') {
|
|
685
|
+
setMode('command');
|
|
686
|
+
return;
|
|
687
|
+
}
|
|
688
|
+
// Esc in Command Mode → interrupt supervisor (like Claude Code)
|
|
689
|
+
if (mode === 'command' && focusedWaveId && sse.streamStatus === 'streaming') {
|
|
690
|
+
stopWave(focusedWaveId).catch(() => {});
|
|
691
|
+
}
|
|
685
692
|
}
|
|
686
693
|
});
|
|
687
694
|
|
|
@@ -458,16 +458,20 @@ export const CommandMode: React.FC<CommandModeProps> = ({
|
|
|
458
458
|
);
|
|
459
459
|
})()}
|
|
460
460
|
|
|
461
|
-
{/* Input */}
|
|
461
|
+
{/* Input — TextInput only rendered when active (prevents stdin capture in Panel mode) */}
|
|
462
462
|
<Box paddingX={0} marginTop={0}>
|
|
463
463
|
<Text color={quickBarActive ? 'gray' : 'yellow'} bold>> </Text>
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
464
|
+
{isActive ? (
|
|
465
|
+
<TextInput
|
|
466
|
+
value={input}
|
|
467
|
+
onChange={(v) => { setInput(v); setAcIndex(0); }}
|
|
468
|
+
onSubmit={handleSubmit}
|
|
469
|
+
placeholder=""
|
|
470
|
+
focus={!quickBarActive}
|
|
471
|
+
/>
|
|
472
|
+
) : (
|
|
473
|
+
<Text>{input}</Text>
|
|
474
|
+
)}
|
|
471
475
|
</Box>
|
|
472
476
|
|
|
473
477
|
{/* Command autocomplete — shown when typing / */}
|
|
@@ -123,7 +123,8 @@ const PanelModeInner: React.FC<PanelModeProps> = ({
|
|
|
123
123
|
useInput((input, key) => {
|
|
124
124
|
if (key.escape) {
|
|
125
125
|
if (docsPreview) { setDocsPreview(false); return; }
|
|
126
|
-
|
|
126
|
+
// Panel→Command mode switch handled by app.tsx global handler
|
|
127
|
+
return;
|
|
127
128
|
}
|
|
128
129
|
if (input === 'h' || key.leftArrow) {
|
|
129
130
|
const tabs: RightTab[] = ['stream', 'docs', 'info'];
|