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(mods): console toasts release held errors on a timer; settings section names toasts; ADR wording

ruv24806b7e7836
diff --git a/plugins/ruflo-console/hooks/register.ts b/plugins/ruflo-console/hooks/register.ts
index 5c037c6fe7..8eef875fbe 100644
--- a/plugins/ruflo-console/hooks/register.ts
+++ b/plugins/ruflo-console/hooks/register.ts
@@ -54,6 +54,7 @@ function hostOf($: EngineInterface, cwd: string, toasts: { prefs: () => ToastPre
source: 'console',
now: () => Date.now(),
show: (line, options) => $.ui.toast(line, options),
+ after: (ms, fn) => $.clock.after(ms, fn),
prefs: toasts.prefs,
persist: toasts.record,
})
diff --git a/plugins/ruflo-console/hooks/views/settings.ts b/plugins/ruflo-console/hooks/views/settings.ts
index 2a68f8d162..eec566f28a 100644
--- a/plugins/ruflo-console/hooks/views/settings.ts
+++ b/plugins/ruflo-console/hooks/views/settings.ts
@@ -400,7 +400,7 @@ export function settingsView(ctx: Ctx): RenderElement {
// Most important first: what Claude may do and spend, then the AI terminal, the interface, and the long lists last.
rows.push(...section(ctx, 'safety', 'Claude control & spending', 'what Claude may do and what it may spend', [...safety, text(ctx, ' claude runs read-only in plan mode and codex in a read-only sandbox: this view never widens either.', { dimColor: true })]))
rows.push(...section(ctx, 'ai', 'AI terminal', 'claude -p and codex exec: saved here, applied to the next turn', aiRest))
- rows.push(...section(ctx, 'ui', 'Interface & updates', 'the main nav, update checks', shown.filter(item => item.id.startsWith('ui-')).flatMap(item => item.rows())))
+ rows.push(...section(ctx, 'ui', 'Interface & updates', 'the main nav, update checks, toasts', shown.filter(item => item.id.startsWith('ui-')).flatMap(item => item.rows())))
rows.push(...section(ctx, 'allowed', 'Remembered actions', `${ctx.state.allowed.size} kind${ctx.state.allowed.size === 1 ? '' : 's'} not asked again`, rememberedRows(ctx), ctx.state.allowed.size > 0))
rows.push(...section(ctx, 'config', 'ruflo config', settings.coreLoading ? 'reading…' : 'ruflo config get / set', shown.filter(item => item.id.startsWith('core-')).flatMap(item => item.rows())))
rows.push(...section(ctx, 'options', 'Plugin options', `${names.length} ruflo plugins with options`, pluginRows))
diff --git a/v3/docs/adr/ADR-477-mod-toasts.md b/v3/docs/adr/ADR-477-mod-toasts.md
index 67eb5f04bc..389471cdee 100644
--- a/v3/docs/adr/ADR-477-mod-toasts.md
+++ b/v3/docs/adr/ADR-477-mod-toasts.md
@@ -6,7 +6,7 @@ Date: 2026-10-07
Builds on: ADR-404 (ruflo as a mod), ADR-453 (Project Anatole), ADR-474 (the Events store), ADR-466 (the autopilot's notices)
-Numbering: ADR-475 is taken by an open change (the policy ledger anchor); 476 is left free.
+Numbering: ADR-475 (policy ledger anchor) and ADR-476 (hive-mind gating) were taken by other changes while this was written.
## 1. Context
@@ -106,8 +106,9 @@ answers it.
- A toast is attacker-influenced text (a rule name, a peer's origin, an agent's label). It is washed to one line and masked before it is
drawn or written; the digest is washed again when read; a ring file is not trusted to name its own source.
-- A toast changes no verdict, answer or hook result: every call is in a `try`, a refusal is swallowed, and the mods' verdicts do not wait
- on a write (the recorder is fire and forget).
+- A toast changes no verdict, answer or hook result: every call is in a `try`, a refusal is swallowed, and the mods' verdicts wait at most for
+ the clock and one setting read (cached for 4 s), never for a digest write (the recorder is fire and forget). A fire-and-forget toast
+ after the hook returned was tried and lost digests in the engine kit, so the mods await the toast, not the write.
- Muting is the person's alone and only narrows: no plugin can unmute another, and the default with no file is "all", so a deleted or
corrupt setting never silences an error for good.
- The engine's static validation follows `$` only into a function declared in the same file: the mods bind the engine's calls from the `$`