#14474: feat(config): add agents.defaults.reasoningDefault for default reasoning visibility (#13607)
stale
size: XS
Cluster:
Agent Thinking Defaults Enhancement
## Summary
Fixes #13607
## Problem
There is no way to set a default reasoning visibility level for agents. Users who want reasoning output (e.g. `medium` or `high`) must set it per-session or per-directive. The `agents.defaults` config supports `thinkingDefault` and `verboseDefault` but not `reasoningDefault`.
## Fix
Add `reasoningDefault` to `AgentDefaultsConfig` (type + Zod schema), and wire it into the reasoning level resolution chain in both `get-reply-directives.ts` and `status.ts`, following the same pattern as `thinkingDefault` and `verboseDefault`.
### Resolution order
```
directives.reasoningLevel ?? session.reasoningLevel ?? agentCfg.reasoningDefault ?? "off"
```
## Reproduction & Verification
### Before fix (main branch):
- `agents.defaults` has no `reasoningDefault` field.
- `resolvedReasoningLevel` in `get-reply-directives.ts` falls through to `"off"` with no config fallback.
- `status.ts` shows reasoning as `off` regardless of any config.
### After fix — All verified:
```
✓ shows reasoning level from reasoningDefault config (#13607)
✓ defaults reasoning to off when no reasoningDefault is set
... (19 more tests)
21 tests pass (pnpm vitest run src/auto-reply/status.test.ts)
```
## Testing
- ✅ 21 tests pass (`pnpm vitest run src/auto-reply/status.test.ts`)
- ✅ Lint passes
Most Similar PRs
#18695: feat(agents): add per-agent thinkingDefault override
by cathrynlavery · 2026-02-17
75.5%
#15030: Agents: support per-agent thinking defaults
by sauerdaniel · 2026-02-12
73.3%
#21558: config: support agents.list[].thinkingDefault
by Uarmagan · 2026-02-20
72.3%
#16899: feat(config): per-agent and per-model thinking defaults
by jh280722 · 2026-02-15
71.1%
#21959: feat(config): add per-agent thinkingDefault, heartbeat thinking ove...
by heyhudson · 2026-02-20
69.9%
#14487: feat(config): support per-agent compaction overrides (#14446)
by lailoo · 2026-02-12
69.0%
#22140: feat(config): add usageDefault to agent defaults for persistent /us...
by Mellowambience · 2026-02-20
68.8%
#10998: fix(agents): pass session thinking/reasoning levels to session_stat...
by wony2 · 2026-02-07
68.3%
#18193: fix: default elevatedDefault to 'off' instead of 'on' (#18177)
by lailoo · 2026-02-16
66.6%
#20458: feat: per-model thinkingDefault config and /think default directive
by kmixter · 2026-02-18
65.0%