helixmind 0.5.20 → 0.5.22

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.
@@ -22,7 +22,7 @@ import { initializeTools } from '../agent/tools/registry.js';
22
22
  import { runAgentLoop, AgentController, AgentAbortError } from '../agent/loop.js';
23
23
  import { PermissionManager } from '../agent/permissions.js';
24
24
  import { UndoStack } from '../agent/undo.js';
25
- import { renderStatusBar, getGitInfo, truncateBar } from '../ui/statusbar.js';
25
+ import { renderStatusBar, getGitInfo } from '../ui/statusbar.js';
26
26
  import { CheckpointStore } from '../checkpoints/store.js';
27
27
  // keybinding module is imported directly by checkpoints/browser.ts
28
28
  import { runCheckpointBrowser } from '../checkpoints/browser.js';
@@ -346,10 +346,11 @@ export async function chatCommand(options) {
346
346
  process.stdout.write(`\r\x1b[K ${chalk.yellow('\u23F3')} ${chalk.dim(`Rate limit: waiting ${Math.ceil(waitMs / 1000)}s (${reason})`)}`);
347
347
  }
348
348
  });
349
- // Initialize agent tools
350
- await initializeTools();
351
- // Analyze project context
352
- const project = await analyzeProject(process.cwd());
349
+ // Initialize agent tools + analyze project IN PARALLEL (saves ~100-200ms)
350
+ const [, project] = await Promise.all([
351
+ initializeTools(),
352
+ analyzeProject(process.cwd()),
353
+ ]);
353
354
  // Conversation history (for agent loop, we use ToolMessage format)
354
355
  const messages = [];
355
356
  const agentHistory = [];
@@ -2522,7 +2523,7 @@ export async function chatCommand(options) {
2522
2523
  // Prepend tab bar to status line 1 when background sessions exist
2523
2524
  let line1 = statusLine1;
2524
2525
  if (sessionMgr.all.length > 1) {
2525
- const tabBar = truncateBar(sessionMgr.renderTabs(), Math.floor(w / 2));
2526
+ const tabBar = sessionMgr.renderTabs(Math.floor(w / 2));
2526
2527
  line1 = `${tabBar} ${statusLine1}`;
2527
2528
  }
2528
2529
  // Refresh hint line on row 1 (prevents stale border/status from previous layout)