Files
ruflo/v3/@claude-flow/cli/bin
ReuvenandRuFlo e884b11eeb fix(cli): tight match for cosmetic [AgentDB Patch] noise + cover console.log
Two related issues fixed:

1. The "[AgentDB Patch] Controller index not found" warning printed on
   every command despite the previous suppression code, because the
   underlying call site uses console.log not console.warn. The override
   was patching console.warn only, so it was effectively a no-op for
   this warning. Now patches both.

2. Audit log audit_1776483149979 flagged the previous suppression as
   too broad: "Console.warn override suppresses legitimate warnings.
   Could mask security-relevant warnings." Tightened the predicate
   to require BOTH "[AgentDB Patch]" AND "Controller index not found"
   so any other future [AgentDB Patch] message (real issues) still
   reaches the user.

Verified locally:
- `ruflo memory init --force` no longer prints the noise line.
- `ruflo --version` is clean.
- `console.log('[AgentDB Patch] some other future warning')` still
  prints (sanity check) — only the specific cosmetic phrase is filtered.

Cosmetic warning has no functional impact on the 8/23 disabled
controllers (those remain disabled per ADR-093 F9 and require separate
ADRs for activation). This commit only stops the noise; controller
enablement is still tracked separately.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-03 17:11:33 -04:00
..