# Inherit parent thread settings when spawning subagents \(\#53328\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/a43ee6b5f7d8153bb320e70d88866dad81b9e7cb)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: a43ee6b5f7d8153bb320e70d88866dad81b9e7cb

Requested commit: a43ee6b5f7d8153bb320e70d88866dad81b9e7cb

Commit: a43ee6b5f7d8153bb320e70d88866dad81b9e7cb

Tree: ef6d35177ad5bcc4195939a1893b3662fd5cf4f7

Author: Nathan Sobo

Committer: GitHub

## Message

```
Inherit parent thread settings when spawning subagents (#53328)

When a subagent was spawned while the parent had runtime-modified
settings (fast mode, thinking, etc.), the subagent would start with
defaults from `AgentSettings` instead of inheriting the parent's current
values.

This adds `inherit_parent_settings` as a single place in
`Thread::new_subagent` that copies all runtime-mutable settings from the
parent:

- `speed`
- `thinking_enabled`
- `thinking_effort`
- `summarization_model`
- `profile_id`

These are the same properties that `set_*` methods already propagate to
`running_subagents` — this fix ensures they're also inherited at
creation time.

cc @benbrandt

Release Notes:

- N/A
```

## Parents

- [871a3428351799b4467d1a6a40b667bd9ebe9fc2](https://git.cafe/gitcafe/zed/commit/871a3428351799b4467d1a6a40b667bd9ebe9fc2?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/a43ee6b5f7d8153bb320e70d88866dad81b9e7cb?format=markdown)
