@yemi33/minions 0.1.468 → 0.1.470

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.470 (2026-04-07)
4
+
5
+ ### Fixes
6
+ - prevent slow work item modal on large descriptions
7
+ - only cache sessionId for steering when actually resuming same branch
8
+
3
9
  ## 0.1.468 (2026-04-07)
4
10
 
5
11
  ### Fixes
@@ -431,7 +431,7 @@ function openWorkItemDetail(id) {
431
431
  '<span class="dispatch-type ' + (item.type || 'implement') + '">' + escHtml(item.type || 'implement') + '</span>' +
432
432
  '<span class="prd-item-priority ' + (item.priority || '') + '">' + escHtml(item.priority || 'medium') + '</span>' +
433
433
  '</div>';
434
- html += field('Description', '<div style="font-size:12px">' + renderMd((item.description || item.title || '—').slice(0, 3000)) + '</div>');
434
+ html += field('Description', '<div style="font-size:12px">' + renderMd((item.description || item.title || '—').slice(0, 1000)) + '</div>');
435
435
  html += field('Agent', escHtml(item.dispatched_to || item.agent || 'Auto'));
436
436
  html += field('Source', escHtml(item._source || 'central'));
437
437
  if (item.created) html += field('Created', escHtml(new Date(item.created).toLocaleString()));
@@ -60,6 +60,8 @@ function copyLlmText(btn) {
60
60
  */
61
61
  function renderMd(s) {
62
62
  if (!s) return '';
63
+ // Truncate excessively long inputs to prevent regex backtracking
64
+ if (s.length > 10000) s = s.slice(0, 10000) + '\n\n…(truncated)';
63
65
  let html = escHtml(s);
64
66
 
65
67
  // 1. Extract code blocks and inline code into placeholders (protect from other transforms)
package/engine.js CHANGED
@@ -474,10 +474,10 @@ function spawnAgent(dispatchItem, config) {
474
474
  try {
475
475
  const sessionFile = safeJson(path.join(AGENTS_DIR, agentId, 'session.json'));
476
476
  if (sessionFile?.sessionId && sessionFile.savedAt) {
477
- cachedSessionId = sessionFile.sessionId;
478
477
  const sessionAge = Date.now() - new Date(sessionFile.savedAt).getTime();
479
478
  const sameBranch = branchName && sessionFile.branch && sessionFile.branch === branchName;
480
479
  if (sessionAge < 2 * 60 * 60 * 1000 && sameBranch) {
480
+ cachedSessionId = sessionFile.sessionId;
481
481
  args.push('--resume', sessionFile.sessionId);
482
482
  log('info', `Resuming session ${sessionFile.sessionId} for ${agentId} on branch ${branchName} (age: ${Math.round(sessionAge / 60000)}min)`);
483
483
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.468",
3
+ "version": "0.1.470",
4
4
  "description": "Multi-agent AI dev team that runs from ~/.minions/ — five autonomous agents share a single engine, dashboard, and knowledge base",
5
5
  "bin": {
6
6
  "minions": "bin/minions.js"