Skip to content

fix(core): preserve subagent failure counter#729

Open
NetVar1337 wants to merge 1 commit into
mainfrom
fix-subagent-failure-counter
Open

fix(core): preserve subagent failure counter#729
NetVar1337 wants to merge 1 commit into
mainfrom
fix-subagent-failure-counter

Conversation

@NetVar1337

Copy link
Copy Markdown
Collaborator

Summary

  • Preserve StreamingRunnable._consecutive_failures across with_config() rewraps.
  • Add regression coverage for deepagents-style per-invocation with_config() reconstruction.

Fixes #722

Verification

  • uv run pytest packages/decepticon/tests/unit/core/test_subagent_streaming_guard.py -q
  • uv run pytest packages/decepticon/tests/unit/core/test_subagent_streaming.py packages/decepticon/tests/unit/core/test_subagent_streaming_guard.py -q
  • uv run python -m py_compile packages/decepticon/decepticon/core/subagent_streaming.py

Copy StreamingRunnable's consecutive-failure counter when RunnableBinding.with_config reconstructs the wrapper, so deepagents rewraps do not reset terminal-guard state.

Fixes: #722

Constraint: Preserve existing RunnableBinding subclass behavior

Confidence: high

Scope-risk: narrow
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

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

Labels

None yet

Projects

None yet

1 participant