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): a background guidance offer never displaces an action waiting for a Yes (0.32.1)

ruvd47f5e8d9bdb
diff --git a/plugins/ruflo-console/.claude-plugin/plugin.json b/plugins/ruflo-console/.claude-plugin/plugin.json
index 76e58b3c25..e0c9834226 100644
--- a/plugins/ruflo-console/.claude-plugin/plugin.json
+++ b/plugins/ruflo-console/.claude-plugin/plugin.json
@@ -1,7 +1,7 @@
{
"name": "ruflo-console",
"description": "ruflo's cockpit inside Claude Code and the one /ruflo command for every ruflo mod (function hooks, early access). Views: overview with health alerts, swarm topology graph, claims flow with TTL rings, federation map, plugin health matrix, learning curve and pipeline, MetaHarness radar and audit trend, memory, cost gauge, agent timeline, approvals queue, event stream, a main menu, an x.ruv.io federation board, an AI terminal (codex, claude or both in remembered sessions, streamed), Skills (npx skills), a Hive-Mind view, a MetaHarness lab, agent drill-down; a command palette for confirm-gated actions through the ruflo CLI; a band above the prompt. Reads ruflo's files and the CLI's local JSON; anything not measured reads n/a. The one network call it makes by itself is a daily read of the published plugin.json at github.com/ruvnet/ruflo to offer an update (Settings → Updates: ask, auto, or off); it installs only through Claude Code's own claude plugin update, and never a new major version without asking.",
- "version": "0.32.0",
+ "version": "0.32.1",
"author": {
"name": "ruvnet",
"url": "https://github.com/ruvnet"
diff --git a/plugins/ruflo-console/hooks/mission-guidance.ts b/plugins/ruflo-console/hooks/mission-guidance.ts
index 4652c95719..b8db1fe946 100644
--- a/plugins/ruflo-console/hooks/mission-guidance.ts
+++ b/plugins/ruflo-console/hooks/mission-guidance.ts
@@ -247,6 +247,8 @@ export function offerGuidance(state: State, host: Host, runner: Runner, mc: McSt
// Claude is the one driving the console (ADR-444): it needs no second `claude -p` turn, billed, to advise it on its own goal.
if (state.control.drivingUntilMs > Date.now()) return
if (ai.autoAccept) return startGuidance(state, host, mc)
+ // A background offer never displaces an action already waiting for a Yes (the console holds one): it would vanish unanswered.
+ if (state.pending !== null) return
runner.ask(guidanceSpec(state, host, mc), 'type a goal first')
}
diff --git a/plugins/ruflo-console/hooks/version.ts b/plugins/ruflo-console/hooks/version.ts
index 67e60faf06..ebef5cbd5c 100644
--- a/plugins/ruflo-console/hooks/version.ts
+++ b/plugins/ruflo-console/hooks/version.ts
@@ -2,4 +2,4 @@
* The console's version, shown on the header so a person can tell which build is running. Kept equal to the plugin's manifest
* (`.claude-plugin/plugin.json`); tests/version.spec.ts fails if the two drift.
*/
-export const CONSOLE_VERSION = '0.32.0'
+export const CONSOLE_VERSION = '0.32.1'
diff --git a/plugins/ruflo-console/scripts/smoke.sh b/plugins/ruflo-console/scripts/smoke.sh
index 33ade3ecc8..f1621036ed 100755
--- a/plugins/ruflo-console/scripts/smoke.sh
+++ b/plugins/ruflo-console/scripts/smoke.sh
@@ -11,9 +11,9 @@ step() { printf "→ %s ... " "$1"; }
ok() { printf "PASS\n"; PASS=$((PASS+1)); }
bad() { printf "FAIL: %s\n" "$1"; FAIL=$((FAIL+1)); }
-step "1. plugin.json declares ruflo-console 0.32.0"
+step "1. plugin.json declares ruflo-console 0.32.1"
grep -q '"name": "ruflo-console"' "$ROOT/.claude-plugin/plugin.json" \
- && grep -q '"version": "0.32.0"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "name/version"
+ && grep -q '"version": "0.32.1"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "name/version"
step "2. hooks.json names exactly one module and no classic hook commands"
grep -q '"modules": \["./register.ts"\]' "$HOOKS/hooks.json" && ! grep -q '"command"' "$HOOKS/hooks.json" \
diff --git a/plugins/ruflo-console/tests/mission-guidance.spec.ts b/plugins/ruflo-console/tests/mission-guidance.spec.ts
index 1cba642d5b..d3f90d563e 100644
--- a/plugins/ruflo-console/tests/mission-guidance.spec.ts
+++ b/plugins/ruflo-console/tests/mission-guidance.spec.ts
@@ -110,6 +110,17 @@ describe('mission guidance', () => {
expect(calls[0]?.input).toContain('GOAL: add a dark mode toggle to settings')
})
+ it('never displaces an action that is already waiting for a Yes', () => {
+ const state = ready()
+ const { host } = fakeHost(ANSWER)
+ const asked: unknown[] = []
+ const runner = { ask: (spec: unknown) => void asked.push(spec) } as unknown as Runner
+
+ state.pending = { label: 'create the mission and its tasks', args: [], expect: 'x', askedAtMs: Date.now() }
+ offerGuidance(state, host, runner, mcOf(state))
+ expect(asked).toEqual([])
+ })
+
it('always accept runs it at once; turning Mission guidance off in Settings asks and runs nothing', async () => {
const state = ready()
const { host, calls } = fakeHost(ANSWER)