tycono 0.3.14-beta.19 → 0.3.14-beta.20

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.14-beta.19",
3
+ "version": "0.3.14-beta.20",
4
4
  "description": "Build an AI company. Watch them work.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/tui/app.tsx CHANGED
@@ -630,6 +630,8 @@ export const App: React.FC = () => {
630
630
  return;
631
631
  }
632
632
  if (mode === 'command' && key.tab) {
633
+ // Clear terminal before Panel Mode (removes Command Mode scrollback)
634
+ process.stdout.write('\x1b[2J\x1b[H');
633
635
  setMode('panel');
634
636
  }
635
637
  });
@@ -10,6 +10,7 @@ import React, { useState, useEffect, useMemo } from 'react';
10
10
  import { Box, Text, useInput } from 'ink';
11
11
  import fs from 'node:fs';
12
12
  import path from 'node:path';
13
+ import { execSync } from 'node:child_process';
13
14
  import type { OrgNode } from '../store';
14
15
  import type { SSEEvent, ActiveSessionInfo, SessionInfo } from '../api';
15
16
  import type { WaveInfo } from '../hooks/useCommand';
@@ -137,9 +138,7 @@ const PanelModeInner: React.FC<PanelModeProps> = ({
137
138
  }
138
139
  if (key.return) {
139
140
  if (rightTab === 'docs' && selectedDocPath) {
140
- // Open in vim
141
141
  try {
142
- const { execSync } = require('child_process');
143
142
  const editor = process.env.EDITOR || 'vim';
144
143
  execSync(`${editor} "${selectedDocPath}"`, { stdio: 'inherit' });
145
144
  } catch { /* ignore */ }