Skip to content

[MEDIUM] CloudBootstrap: Parameter fallback chain has inconsistent casing #304

@0xbbjoker

Description

@0xbbjoker

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.tsextractSearchParams()

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    architectureArchitecture and design concernsmediumMedium priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions