Summary
Action parameter resolution uses a fallback chain with inconsistent casing: state.data.actionParams || state.data.webSearch || state.data.websearch. Ambiguous precedence makes debugging difficult.
Affected Files
lib/eliza/plugin-web-search/src/actions/webSearch.ts — extractSearchParams()
Impact
- Unclear which source "wins" when multiple exist
- Inconsistent casing (
webSearch vs websearch) creates confusion
- Hard to debug parameter resolution issues
Recommended Fix
- Normalize to a single casing convention (e.g., always camelCase)
- Tighten precedence rules
- Log which source was used for parameter resolution
Effort estimate: Quick (<1h)
Source
Identified by GPT Architect agent during comprehensive plan review (2026-02-06).
Summary
Action parameter resolution uses a fallback chain with inconsistent casing:
state.data.actionParams || state.data.webSearch || state.data.websearch. Ambiguous precedence makes debugging difficult.Affected Files
lib/eliza/plugin-web-search/src/actions/webSearch.ts—extractSearchParams()Impact
webSearchvswebsearch) creates confusionRecommended Fix
Effort estimate: Quick (<1h)
Source
Identified by GPT Architect agent during comprehensive plan review (2026-02-06).