You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Task tool fails with "undefined is not an object (evaluating 'Q.model')" when launching sub-agents #1419
Attempt to call the default_api.task() function with any valid subagent_type and prompt.
Example:
print(default_api.task(description="Review code", prompt="Review this script", subagent_type="code-reviewer"))
Expected Behavior
The task tool should successfully launch the specified sub-agent without internal errors.
Actual Behavior
The task tool aborts execution, and an "undefined is not an object (evaluating 'Q.model')" error occurs internally, preventing the sub-agent from running.
Impact
This issue prevents the use of any sub-agent functionality, limiting the capabilities of the model for complex tasks that rely on these specialized agents.
Activity
michabbb commentedon Jul 30, 2025
#1307
thdxr commentedon Aug 4, 2025
what model?
michabbb commentedon Aug 4, 2025
for example: #1307 (comment)
(claude opus)
rekram1-node commentedon Aug 6, 2025
Possibly related:
#1641
Gen-2k commentedon Aug 7, 2025
Gemini models Pro and Flash