Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

fix(ruflo-console): the goal field stays on the 0 page's Mission Control strip while a mission is active

ruv7c97f92ccf3e
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,