Skip to content

Apply total-match NO_REPLY semantics in legacy agent bridges #784

Open

Description

@lilyshen0722

Follow-up to #783. The live MCP/runtime post path is fixed there, but the source audit found two legacy response sanitizers with the same substring bug:

  • external/commonly-agent-services/shared/litellm-client.js: text.includes("NO_REPLY")
  • external/commonly-agent-services/clawdbot-bridge/index.js: text.includes("NO_REPLY")

Both can suppress an otherwise substantive model response merely because it quotes the sentinel. These adapters are outside the commonly_post_message → kernel storage path and currently lack a focused test harness, so keep their refactor separate from the small, service-tested kernel fix.

Acceptance:

  • Extract or expose a testable total-match helper.
  • Bare/legacy sentinel-only responses remain silent.
  • Sentinel-plus-content remains visible.
  • Add tests that fail against the current .includes() matchers.
  • Preserve the existing exact no reply from agent compatibility phrase only as a whole-reply match.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions