mirror of
https://github.com/langchain-ai/deepagentsjs.git
synced 2026-08-24 22:11:26 -04:00
bcc2f5d0a8
`isForkedSubAgent` was checking `mode === "fork"`, but mode defaults to omitted on both `SubAgent` and `ForkedSubAgent`. A `ForkedSubAgent` that omits mode (the documented default) failed that check and fell through to the plain-`SubAgent` branch, ending up with no fork and no system prompt. Restores `SubAgent.systemPrompt` as required (it must stay required so a plain SubAgent can't structurally collapse into a ForkedSubAgent) and switches `isForkedSubAgent` back to checking systemPrompt presence.