Skip to content

fix: add subAgent flag to cached config#459

Merged
avoidwork merged 2 commits into
mainfrom
fix/subagent-config-flag
Jun 27, 2026
Merged

fix: add subAgent flag to cached config#459
avoidwork merged 2 commits into
mainfrom
fix/subagent-config-flag

Conversation

@avoidwork

Copy link
Copy Markdown
Owner

What

When loadConfig(subAgent = true) is called from a sub-agent context, the returned config now includes subAgent: true so downstream code can detect sub-agent origin.

Why

Sub-agents need to know they're operating in a sub-agent context for proper config behavior. This flag makes that detection possible without re-parsing arguments.

Changes

  • src/config/loader.js: Added subAgent flag to cached config when loaded with subAgent = true

Type

  • feat
  • fix
  • docs
  • refactor
  • chore

@avoidwork avoidwork enabled auto-merge (squash) June 27, 2026 20:47
@avoidwork avoidwork merged commit 7e53b96 into main Jun 27, 2026
2 checks passed
@avoidwork avoidwork deleted the fix/subagent-config-flag branch June 27, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant