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(console): a host that names no surface is the terminal; console 0.43.4 (#4111)

RuFloe70b45081935
diff --git a/plugins/ruflo-console/.claude-plugin/plugin.json b/plugins/ruflo-console/.claude-plugin/plugin.json
index 145f2747e7..4de4afb4ca 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.43.3",
+ "version": "0.43.4",
"author": {
"name": "ruvnet",
"url": "https://github.com/ruvnet"
diff --git a/plugins/ruflo-console/CHANGELOG.md b/plugins/ruflo-console/CHANGELOG.md
index 1ee33ae047..9db38d2f3a 100644
--- a/plugins/ruflo-console/CHANGELOG.md
+++ b/plugins/ruflo-console/CHANGELOG.md
@@ -2,6 +2,9 @@
Newest first. One `## <version> — <date>` heading per version, then `feat:`, `fix:`, `breaking:` and `chore:` bullets (ADR-478). Built from git history; older versions: `git log -- plugins/ruflo-console`.
+## 0.43.4 — 2026-10-12
+- fix: the console's pictures show on Claude Code Desktop, the editor and the mobile app. The banner, title art, topology, maps, gauges and charts were all missing there, and so were the text lines meant to stand in for them: the host completes every element table with every name, and on those surfaces its `Raster` draws an empty fragment, so the console believed it could draw pictures and drew empty boxes. The surface now decides (not the table): the terminal keeps its `Raster` and gets no `Svg`; Desktop, VS Code and mobile get each picture as one `Svg` of the same cells (Block Elements and braille glyphs as rectangles, other glyphs placed cell by cell, colours kept, background transparent). A picture that would pass the host's 131,072-character `Svg` limit falls back to its text line, so one large picture cannot invalidate the whole tree; nothing is blitted where nothing is mounted; and a host that does not name its surface is treated as the terminal. The model-facing text is unchanged (#4111, thanks @proffesor-for-testing, #4112)
+
## 0.43.3 — 2026-10-12
- fix: `console_state` tells Claude that a confirm card expired: `lastResult` carries `expired: true` after a card nobody answered was cleared unrun at 30 s (the runner already set the flag; the tool left it out), so Claude can tell "you did not answer" from a run that failed without reading the detail text. An ordinary result has no `expired` field (#3985 follow-up, thanks @proffesor-for-testing, #4067)
diff --git a/plugins/ruflo-console/hooks/version.ts b/plugins/ruflo-console/hooks/version.ts
index 9d7e2133dd..360faceb0b 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.43.3'
+export const CONSOLE_VERSION = '0.43.4'
diff --git a/plugins/ruflo-console/hooks/views/common.ts b/plugins/ruflo-console/hooks/views/common.ts
index 31a5cc5c42..2c431c2f9f 100644
--- a/plugins/ruflo-console/hooks/views/common.ts
+++ b/plugins/ruflo-console/hooks/views/common.ts
@@ -49,10 +49,12 @@ export type Kit = Pick<Elements['terminal'], 'Box' | 'Text' | 'Button'> & { Rast
* drawing a fragment, so `Raster` is defined on the desktop too and draws nothing there: whether a picture can be drawn is the surface's
* to say, never the table's. The terminal gets its `Raster` and no `Svg`; every other surface gets `Svg` and no `Raster`.
*/
-export function kitForSurface<K extends Kit>(table: K, surface: string): K {
+export function kitForSurface<K extends Kit>(table: K, surface: string | null | undefined): K {
const { Raster, Svg, ...rest } = table
+ // A host that does not name its surface predates the desktop pictures: it is the terminal, and keeps its Raster.
+ const isTerminal = surface === 'terminal' || surface === undefined || surface === null || surface === ''
- return (surface === 'terminal' ? { ...rest, ...(Raster !== undefined && { Raster }) } : { ...rest, ...(Svg !== undefined && { Svg }) }) as K
+ return (isTerminal ? { ...rest, ...(Raster !== undefined && { Raster }) } : { ...rest, ...(Svg !== undefined && { Svg }) }) as K
}
/** What a button can ask for: every one a closure over the controller. */
diff --git a/plugins/ruflo-console/scripts/smoke.sh b/plugins/ruflo-console/scripts/smoke.sh
index 8c655f440c..085444a200 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.43.3"
+step "1. plugin.json declares ruflo-console 0.43.4"
grep -q '"name": "ruflo-console"' "$ROOT/.claude-plugin/plugin.json" \
- && grep -q '"version": "0.43.3"' "$ROOT/.claude-plugin/plugin.json" && ok || bad "name/version"
+ && grep -q '"version": "0.43.4"' "$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/svg-pictures.spec.ts b/plugins/ruflo-console/tests/svg-pictures.spec.ts
index 95f2e44ad1..c000ca8164 100644
--- a/plugins/ruflo-console/tests/svg-pictures.spec.ts
+++ b/plugins/ruflo-console/tests/svg-pictures.spec.ts
@@ -255,6 +255,14 @@ describe('kitForSurface', () => {
expect(kit.Input).toBeDefined()
})
+ // A Claude Code that does not name its surface is older than the desktop pictures: it is the terminal, which keeps drawing its Rasters.
+ it.each([undefined, '', null])('treats a host that names no surface (%s) as the terminal', surface => {
+ const kit = kitForSurface(table, surface as never)
+
+ expect(kit.Raster).toBeDefined()
+ expect(kit.Svg).toBeUndefined()
+ })
+
it.each(['desktop', 'vscode', 'mobile'])('gives %s an Svg and no Raster (its Raster draws a fragment)', surface => {
const kit = kitForSurface(table, surface)