From 7c97f92ccf3e5032a3071786cb2caceb018da3a3 Mon Sep 17 00:00:00 2001 From: ruv Date: Sat, 3 Oct 2026 16:26:40 -0400 Subject: [PATCH] fix(ruflo-console): the goal field stays on the 0 page's Mission Control strip while a mission is active The strip drew the goal input only when no mission existed, so with a mission in progress the field disappeared. The field is now always drawn; with a mission it reads 'a new goal, planned in place of this one'. Enter still plans the goal and opens Missions. Co-Authored-By: RuFlo --- plugins/ruflo-console/hooks/views/mission-control.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/plugins/ruflo-console/hooks/views/mission-control.ts b/plugins/ruflo-console/hooks/views/mission-control.ts index 268cf5bb37..4b38dd5786 100644 --- a/plugins/ruflo-console/hooks/views/mission-control.ts +++ b/plugins/ruflo-console/hooks/views/mission-control.ts @@ -234,13 +234,16 @@ export function missionStrip(ctx: Ctx): RenderElement[] { const title = ctx.kit.Text({ bold: true, color: THEME.head, children: '▓▒░ MISSION CONTROL ░▒▓' }) const open = ctx.kit.Button({ key: 'menu-go-missions-top', label: ' (1) open Missions ', plain: true, onPress: () => ctx.act.view('missions') }) + // The goal field is always here, with or without an active mission: Enter plans the goal and opens Missions. + const field = box(ctx, 'menu-goal', '✎ goal', mission === null ? 'what do you want done? e.g. add a dark mode toggle to settings' : 'a new goal, planned in place of this one', 'plan', value => { + ctx.act.view('missions') + m.goal(value) + }) + if (mission === null) { return [ row(ctx, [title, open], 'menu-mission-title'), - ...box(ctx, 'menu-goal', '✎ goal', 'what do you want done? e.g. add a dark mode toggle to settings', 'plan', value => { - ctx.act.view('missions') - m.goal(value) - }), + ...field, text(ctx, ' research → create (ADRs, SOP) → build → test → validate → secure → benchmark → learn', { dimColor: true }), text(ctx, ' '), ] @@ -252,6 +255,7 @@ export function missionStrip(ctx: Ctx): RenderElement[] { return [ row(ctx, [title, open], 'menu-mission-title'), + ...field, text(ctx, ` ${clip(mission.objective, Math.max(20, ctx.columns - 22))} ${bar(done, total)} ${done}/${total}${mission.paused ? ' · paused' : ''}`, { bold: true }), row( ctx,