Skip to content

Workflows rejects inherited settings for models with no configurable reasoning levels #6792

Closed

Description

@dimiboi

Summary

Workflows rejects an available model when reasoning discovery is complete but the model has no configurable reasoning levels. This blocks both explicit selections using the catalog default and agent("…") calls that inherit the same model from their parent, even though ordinary BB threads can run it.

The affected example is OpenCode with LM Studio's Flint. This is a Workflows validation problem and can affect other models with the same catalog shape.

Versions and environment

  • Installed BB CLI: 0.48.1; macOS 26.6.1 arm64.
  • Provider: acp-opencode; currently installed OpenCode: 2.2.5.
  • Model: lmstudio/recursivesi/flint, served locally by LM Studio.
  • Deterministic source reproduction: 916d684ac23d0b0de82c09cfc7553a50287d2188, with Node 26.13.0 and the repository's locked dependencies.
  • The original investigation and candidate fix used an isolated source checkout and a fresh QA server/data directory. The installed BB app and stopped user runs were left unchanged.

Steps to reproduce

The affected environment's catalog, checked with bb provider models acp-opencode --environment <environment-id> --json, contains:

{
  "id": "lmstudio/recursivesi/flint",
  "model": "lmstudio/recursivesi/flint",
  "reasoningDiscovery": "known",
  "supportedReasoningEfforts": [],
  "defaultReasoningEffort": "medium"
}

With that catalog, use a Flint parent thread and this workflow:

export const meta = {
  name: "inherited-reasoning-repro",
  description: "Use the parent's model and native reasoning default",
  phases: [],
};
return await agent("Reply exactly OK");

The runtime resolves the parent settings and rejects its stored reasoning preference before spawning the worker. Providing the full explicit tuple with reasoningLevel: "medium" also fails, in source validation.

The smallest deterministic reproduction requires no LM Studio installation, credentials, BB server, or agent execution. In a checkout of the source commit above with dependencies installed, run this from the repository root:

node --import tsx --input-type=module <<'JS'
import { validateWorkflowSource } from "./plugins/workflows/src/workflow-validation.ts";

const source = `export const meta = {
  name: "known-empty-reasoning-repro",
  description: "Use a model with no configurable reasoning",
  phases: [],
};
return await agent("Reply exactly OK", {
  provider: "acp-opencode",
  model: "lmstudio/recursivesi/flint",
  reasoningLevel: "medium",
});`;

const catalog = {
  listProviders: async () => [{ id: "acp-opencode", available: true }],
  loadModels: async () => ({
    modelLoadError: null,
    selectedOnlyModels: [],
    models: [{
      id: "lmstudio/recursivesi/flint",
      model: "lmstudio/recursivesi/flint",
      reasoningDiscovery: "known",
      supportedReasoningEfforts: [],
      defaultReasoningEffort: "medium",
    }],
  }),
};

try {
  await validateWorkflowSource(source, "repro-env", catalog);
  console.log("accepted");
} catch (error) {
  console.error(error.message);
  process.exitCode = 1;
}
JS

Expected vs actual

The source-level reproduction rejects the catalog's own default with:

Unsupported reasoning level for literal workflow selection acp-opencode/lmstudio/recursivesi/flint/medium

The corresponding runtime check constructs this error for an inherited medium preference:

Reasoning level "medium" is not supported by acp-opencode/lmstudio/recursivesi/flint

Expected: a known-empty catalog means there is no selectable reasoning control. An inherited worker should retain the provider/model and run with its native default, while BB may keep the catalog default as stored metadata. No unsupported reasoning control should be sent to the provider.

An explicit default selection should also be usable with the existing provider/model/reasoning tuple API. Unknown discovery and unsupported explicit non-default requests should continue to be rejected.

Evidence

At the tested commit:

  • Source validation unconditionally requires membership in supportedReasoningEfforts.
  • Runtime validation applies the same requirement after resolving inherited settings. Fixing only source validation leaves inheritance broken.
  • ACP catalog discovery explicitly produces known, an empty list, and the stored default medium.
  • Ordinary thread dispatch already omits a reasoning control when the model does not advertise the stored preference.

A local candidate fix shares the reasoning-selection policy between both Workflows validators. It distinguishes populated, known-empty, and unresolved catalogs; normalizes inherited preferences for known-empty models to their catalog default; and uses that normalized value for worker settings and cache identity.

Verification of that candidate: 258 Workflows tests passed, the three focused native-reasoning dispatch tests passed, and typecheck, lint, and the bundled build passed. A fresh isolated workflow using agent("Reply exactly INHERITED_FLINT_OK") with no selection overrides successfully dispatched OpenCode/Flint and returned the exact requested output, with zero retries or repairs. The candidate has not been submitted or deployed to the installed app.

What was ruled out

  • Discovery is complete: the affected catalog reports reasoningDiscovery: "known". This is distinct from an unresolved empty catalog.
  • LM Studio reports Flint's reasoning options as ["on"], default "on": always-on reasoning, without adjustable effort levels. medium is BB's stored preference, not a native Flint effort setting.
  • The failure reproduces directly in source validation without contacting the model backend.
  • This chat's separate environment currently advertises medium/default variants and passes explicit validation. That does not reproduce the empty-catalog case; the affected environment's catalog still reports the empty list above.
  • An OpenCode variant such as { "id": "medium", "settings": {} } is a possible configuration workaround. OpenCode accepts that configuration, but workflow dispatch with that workaround has not been verified. The tested plugin fix does not require changing Flint configuration.
  • Searched open and closed issues for Flint, reasoning/Workflows, and empty/unsupported reasoning. #2958 concerns ACP model-family/picker discovery; #3452 requests workflow service-tier selection. Neither covers this rejection.

Suggested priority and effort

Medium: blocks workflow workers for models with no configurable reasoning levels. Ordinary threads remain usable; a local plugin fix is verified, while the configuration workaround remains unverified through workflow dispatch.

Investigation: BB thread thr_eiemwnbuk5. The reproduction, source links, and verification report are included above.

AGENT GENERATED

Activity

  1. added theissue type on Nov 1, 2026
  2. added
    plugins
    workflows
    confirmed-repro
    on Nov 1, 2026
  3. bb-slop-cop commented on Nov 1, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority: Medium · Effort: Medium. Labels: plugins, workflows, confirmed-repro.
    • Report: REPRODUCED — high confidence, verified in two clean trusted-main checkouts.
    • Root cause: Both Workflows validators require membership in the advertised reasoning list even when discovery is complete and no selectable efforts exist, rejecting native defaults and inherited preferences before spawning a worker.
    • Fix: Ready PR #6793 shares selection handling and normalizes inherited preferences; unknown discovery and unsupported explicit requests remain rejected. Five files, 172 changed text lines.
    • Verification: Focused regressions fail before the repair; all 254 Workflows tests and three existing dispatch tests pass afterward. Typecheck, lint, bundled preparation, and diff checks pass. No live model backend was exercised.

    AGENT GENERATED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-repropluginsworkflows

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions