tycono 0.3.22 → 0.3.23

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tycono",
3
- "version": "0.3.22",
3
+ "version": "0.3.23",
4
4
  "description": "Build an AI company. Watch them work.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/tui/app.tsx CHANGED
@@ -231,6 +231,9 @@ export const App: React.FC = () => {
231
231
  // System messages (command feedback displayed in stream area)
232
232
  const [systemMessages, setSystemMessages] = useState<StreamLine[]>([]);
233
233
 
234
+ // User input lines — lifted from CommandMode to survive Panel mode switches
235
+ const [userInputs, setUserInputs] = useState<StreamLine[]>([]);
236
+
234
237
  // Preset selection state (for /new without args)
235
238
  const [pendingPresetSelect, setPendingPresetSelect] = useState<PresetSummary[] | null>(null);
236
239
  const selectedPresetRef = useRef<string | null>(null);
@@ -730,6 +733,8 @@ export const App: React.FC = () => {
730
733
  events={sse.events}
731
734
  allRoleIds={flatRoleIds}
732
735
  systemMessages={systemMessages}
736
+ userInputs={userInputs}
737
+ onUserInput={(line) => setUserInputs(prev => [...prev.slice(-10), line])}
733
738
  onSubmit={handleCommandSubmit}
734
739
  onQuickAction={(action) => {
735
740
  handleCommandSubmit(`/${action}`);
@@ -28,6 +28,8 @@ interface CommandModeProps {
28
28
  events: SSEEvent[];
29
29
  allRoleIds: string[];
30
30
  systemMessages: StreamLine[];
31
+ userInputs: StreamLine[];
32
+ onUserInput: (line: StreamLine) => void;
31
33
  onSubmit: (input: string) => void;
32
34
  onQuickAction?: (action: string) => void;
33
35
  activeSessions?: ActiveSessionInfo[];
@@ -294,6 +296,8 @@ export const CommandMode: React.FC<CommandModeProps> = ({
294
296
  events,
295
297
  allRoleIds,
296
298
  systemMessages,
299
+ userInputs,
300
+ onUserInput,
297
301
  onSubmit,
298
302
  onQuickAction,
299
303
  activeSessions,
@@ -301,7 +305,6 @@ export const CommandMode: React.FC<CommandModeProps> = ({
301
305
  }) => {
302
306
  const [input, setInput] = useState('');
303
307
  const committedRef = useRef(0);
304
- const [userInputs, setUserInputs] = useState<StreamLine[]>([]);
305
308
  const [quickBarActive, setQuickBarActive] = useState(false);
306
309
  const [quickBarIndex, setQuickBarIndex] = useState(0);
307
310
  const [acIndex, setAcIndex] = useState(0);
@@ -450,11 +453,11 @@ export const CommandMode: React.FC<CommandModeProps> = ({
450
453
  const trimmed = value.trim();
451
454
  if (trimmed) {
452
455
  // Show user input with visual separator for emphasis
453
- setUserInputs(prev => [...prev.slice(-10), {
456
+ onUserInput({
454
457
  id: ++lineCounter,
455
458
  text: `\u2501\u2501 > ${trimmed}`,
456
459
  color: 'green',
457
- }]);
460
+ });
458
461
  onSubmit(trimmed);
459
462
  }
460
463
  setInput('');