Skip to content

[FEATURE]: Improve doom loop detection granularity #32187

Description

  • I have checked existing issues

Motivation

DOOM_LOOP_THRESHOLD = 3 (processor.ts) only triggers when both tool name AND input parameters match exactly (JSON-serialization comparison). Slight parameter variations (e.g., editing different lines) bypass the detection entirely.

Details

  1. processor.ts L316-327: detection compares full JSON-serialized input, not just tool name. Change suggestion: match by tool name only within a sliding window.
  2. Existing Agent loops 277 times on MCP resource_list without circuit breaker #31942 already discusses this partially.
  3. After user clicks "allow", no audit trail records the approval.

Related: #31942

Activity

github-actions commented on Jun 13, 2026

@github-actions
Contributor

This issue might be a duplicate of existing issues. Please check:

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

Metadata

Metadata

Assignees

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