Skip to content

refactor: split embedded agent runner orchestration - #107900

Merged
steipete merged 5 commits into
mainfrom
codex/refactor-embedded-agent-runner
Jul 15, 2026
Merged

steipete merged 5 commits into
mainfrom
codex/refactor-embedded-agent-runner

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The embedded agent runner had grown into a 4,082-line module that mixed runtime preparation, retries, failover, compaction, dispatch, and terminal projection. That made cross-path invariants difficult to review and kept the file on the max-lines exception list.

Why This Change Was Made

The runner is split behind its unchanged public facade into bounded orchestration, loop, preparation, recovery, and terminal-resolution modules. The extraction also preserves retry budgets and thinking-level resets, hardens prompt-timeout final-output recovery, removes the max-lines exception, and syncs the reviewed autoreview scanner fixes from openclaw/agent-skills#97, openclaw/agent-skills#98, and openclaw/agent-skills#99.

User Impact

No intended API or configuration change. Maintainers get smaller ownership boundaries; prompt-timeout races retain current final text and tool media without reusing stale prior-attempt output.

Evidence

@steipete
steipete requested a review from a team as a code owner July 15, 2026 01:35
@steipete steipete self-assigned this Jul 15, 2026
@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XL maintainer Maintainer-authored PR labels Jul 15, 2026
@steipete
steipete merged commit ca9bbf6 into main Jul 15, 2026
120 of 127 checks passed
@steipete
steipete deleted the codex/refactor-embedded-agent-runner branch July 15, 2026 01:38
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 15, 2026
* chore(skills): sync autoreview security scanner

* refactor(agents): split embedded runner orchestration

* test(agents): verify timeout media recovery

* fix(agents): handle missing timeout assistant text

* fix(autoreview): restrict quoted credential keys
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
* chore(skills): sync autoreview security scanner

* refactor(agents): split embedded runner orchestration

* test(agents): verify timeout media recovery

* fix(agents): handle missing timeout assistant text

* fix(autoreview): restrict quoted credential keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling maintainer Maintainer-authored PR size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant