Skip to content

Task subagent fails with exit 1 when using BYOK custom models (Ollama) #1166

@macosai

Description

@macosai
 BYOK (Ollama) custom models fail in Task subagents — all exit with code 1, zero output.

 Environment: Factory CLI 0.135.0, Windows 10, PowerShell 7+, Ollama on 127.0.0.1:11434.

 Tested models: custom:nemotron-3-super:cloud, custom:deepseek-v4-flash:cloud, custom:gemma4:31b-cloud.
 Also tested: raw name (no custom: prefix) and full custom ID — all failed identically.

 Control test: model: inherit works perfectly (parent session also uses BYOK).

 Error: "Task subagent process exited with code 1. No assistant message events were captured."

 The same BYOK models work fine for main-session tool calls. Issue is specific to subagent initialization with
 non-inherited custom model.

 Request: Please investigate subagent session initialization for BYOK custom models.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions