openclaw - ✅(Solved) Fix [Bug]: Regression: /subagents spawn fails (legacy context engine not initialized) [1 pull requests, 1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#74865Fetched 2026-05-01 05:40:33
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
2
Author
Timeline (top)
labeled ×2closed ×1commented ×1cross-referenced ×1

Regression: /subagents spawn fails (legacy context engine not initialized).

Root Cause

Regression: /subagents spawn fails (legacy context engine not initialized).

Fix Action

Fixed

PR fix notes

PR #73904: [AI-assisted] fix(agents): initialize context engines before subagent spawn prep

Description (problem / solution / changelog)

Summary

  • Initialize built-in context engines before sessions_spawn context-engine preparation resolves the configured engine.
  • Keeps cliBackend-only cold starts from failing subagent spawn prep with Context engine "legacy" is not registered.
  • Adds a regression test for the cold registry path.

Fixes #73095.

Testing

  • corepack pnpm exec vitest run src/agents/subagent-spawn.context.test.ts
  • git diff --check
  • codex review --uncommitted attempted, but Windows returned Access is denied for codex.exe.

AI-assisted by OpenAI Codex.

Changed files

  • src/agents/subagent-spawn.context.test.ts (modified, +26/-0)
  • src/agents/subagent-spawn.runtime.ts (modified, +1/-0)
  • src/agents/subagent-spawn.test-helpers.ts (modified, +3/-0)
  • src/agents/subagent-spawn.ts (modified, +4/-0)
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

Regression: /subagents spawn fails (legacy context engine not initialized).

Steps to reproduce

/subagents spawn

Expected behavior

Work with subagents.

Actual behavior

Can't work with subagents.

OpenClaw version

2026.04.26

Operating system

Ubuntu 24.04

Install method

npm global

Model

any

Provider / routing chain

any

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

OpenClaw_BUG_260429_SubagentsKO_2.Github_issue.md

Additional information

No response

extent analysis

TL;DR

The legacy context engine initialization issue is likely causing the subagents spawn failure, and checking the initialization process may provide a workaround.

Guidance

  • Verify that the legacy context engine is properly configured and initialized before attempting to spawn subagents.
  • Check the OpenClaw version 2026.04.26 release notes for any changes related to legacy context engine initialization.
  • Investigate if there are any specific setup or configuration requirements for the legacy context engine that may have been missed.
  • Review the provided evidence file (OpenClaw_BUG_260429_SubagentsKO_2.Github_issue.md) for any relevant information or clues.

Notes

The issue lacks detailed information about the legacy context engine and its initialization process, making it difficult to provide a more specific solution.

Recommendation

Apply workaround: Since the issue is a regression and the legacy context engine initialization is suspected to be the cause, attempting to manually initialize the engine or checking the configuration may provide a temporary workaround until a more permanent fix is available.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Work with subagents.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - ✅(Solved) Fix [Bug]: Regression: /subagents spawn fails (legacy context engine not initialized) [1 pull requests, 1 comments, 2 participants]