dual-brain 0.3.21 → 0.3.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.
@@ -2986,7 +2986,10 @@ async function mainScreen(rl, ask) {
2986
2986
  try {
2987
2987
  const { getOpenTasks } = await import('../dist/src/ledger.js');
2988
2988
  const open = getOpenTasks(cwd);
2989
- if (open.length > 0) openTasks.push(`continue: ${open[0].intent.slice(0, 30)}`);
2989
+ if (open.length > 0) {
2990
+ const intent = String(open[0].intent || '').replace(/\s+/g, ' ').trim();
2991
+ if (intent.length >= 5) openTasks.push(`continue: ${intent.slice(0, 30)}`);
2992
+ }
2990
2993
  } catch {}
2991
2994
  suggestions = openTasks.length > 0
2992
2995
  ? [openTasks[0], 'review changes', 'run tests']
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dual-brain",
3
- "version": "0.3.21",
3
+ "version": "0.3.22",
4
4
  "description": "AI orchestration across Claude + OpenAI subscriptions — smart routing, budget awareness, and dual-brain collaboration",
5
5
  "type": "module",
6
6
  "bin": {