Subagent spawn fails with 'No reasoning level selected' (reasoning-level-missing) — no default applied when caller omits reasoning level
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Trace the subagent request path through the validation that emits reasoning-level-missing, then inspect how providers and models declare reasoning variants and their defaults. Confirm the behavior when the caller omits a reasoning level and make the chosen fallback behavior verifiable without reproducing the provider-specific account conditions.
Written by the indexing model from the issue text.
Description
Environment
- OS: Windows 11 (build 10.0.26200)
- ZCode: desktop client
- Provider/account: zai coding plan, model GLM-5.3-Flash
Symptom
Spawning a subagent (Agent tool) fails with:
Cannot start subagent: No reasoning level selected
[reason=reasoning-level-missing]
Observed on 2026-09-13, 09-14, and 09-17 across different sessions on the same
account. Within an affected period it is persistent across retries — not
transient — and blocks all subagent use; the workaround is performing the work
directly in the main agent.
Analysis
The subagent request path validates the reasoning level before dispatch, and
when the caller did not supply one the validation fails with
reasoning-level-missing rather than falling back to anything. Providers and
models in this setup already declare reasoning variants with a default variant,
so a sensible default exists — it just isn't applied on this code path. It also
appears account/provider-selective (same client version worked at other times).
Suggested fix
Either:
- Fall back to the model's declared default reasoning variant when the caller
supplies no reasoning level, or - Inherit the current session's reasoning level for subagents, or
- Expose a setting (e.g. a default subagent reasoning level) so users can pin
it.
Any of the three removes a hard blocker that currently makes subagent use
unreliable on this provider.
- Dominant language
- Python
- Stars
- 39
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from zai-org/zcode-plugins
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
zai-org/zcode-plugins#14 ·
-
Difficulty 5/5 Over a week Newbie friendliness 1/100
zai-org/zcode-plugins#23 · 1 comment · 11 reactions ·
-
你偷用户代码放到服务器,你妈知道吗? Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
zai-org/zcode-plugins#22 · 1 comment · 30 reactions ·
-
日本智谱 Open
Difficulty 5/5 Over a week Newbie friendliness 15/100
zai-org/zcode-plugins#20 · 3 comments · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
zai-org/zcode-plugins#17 ·
All issues in zai-org/zcode-plugins
Similar issues
-
triage/confirmed
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
agentscope-ai/agentscope#2775 ·
-
comp/desktop P3 type/bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
NousResearch/hermes-agent#118866 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100