Skip to content

C++ Framework: Wire up maxConsecutiveRepeats config field #394

@kovtcharov

Description

@kovtcharov

Problem

AgentConfig::maxConsecutiveRepeats (default: 4) exists in types.h and is documented in the overview, but the loop detection in agent.cpp:507 hardcodes the threshold at 4 instead of reading config_.maxConsecutiveRepeats.

Setting this field has no effect at runtime.

Expected

The loop detection code in agent.cpp should use config_.maxConsecutiveRepeats instead of the hardcoded value.

Files

  • cpp/include/gaia/types.h:146 — field definition
  • cpp/src/agent.cpp:507 — hardcoded check

Context

Found during pre-release documentation audit. Partners may try to tune this value and see no effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cppenhancementNew feature or requestp1medium priority

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions