#7856 · Workflow selected-only model diagnostics
November 19, 2026 · trusted main e6f3032d1898b1404f1facf4baaf75da69e28da3
Verdict: REPRODUCED at the catalog-to-validation boundary, repeated in a second clean checkout by the same agent. Root-cause confidence: high. No live Cursor session was exercised; external catalog counts and reported versions remain unverified.
1. TL;DR
The default Cursor catalog is deliberately limited to six primary model identifiers in repository configuration. Other advertised models are retained separately as selected-only entries. Workflow overrides intentionally exclude those entries, while inherited origin-thread selections may use them. The reproducible defect is an unexplained literal-selection mismatch that does not distinguish an advertised selected-only model from an unknown identifier or explain the supported registration workaround. The proposed narrow fix improves that diagnostic and documents the existing policy rather than silently expanding which models workflows may select.
2. Claims vs findings
| Claim | Status | Evidence |
|---|---|---|
| The default Cursor list contains six model identifiers. | Verified in source; not live CLI. | Known ACP agent configuration contains six primaryModels entries. |
| An advertised model outside that list fails workflow literal validation. | Verified with a provider-independent catalog fixture. | The existing selected-only test is extended to require a reason and remediation. Both trusted base runs fail with the bare mismatch. |
| Selected-model reasoning discovery makes that model explicitly eligible. | Refuted as a general rule. | Discovery refines reasoning support, while validation still searches only models; explicit and inherited dispatch use different eligibility rules. |
| The external agent advertises 49 models, including the newly reported model, on the reported desktop/CLI versions. | Unverified. | No external Cursor executable, account, or session was used. This report does not assert the live catalog or reasoning levels. |
| No supported way exists to use an extra advertised model explicitly. | Refuted. | Existing customModels configuration promotes a selected-only entry into models. Its use in workflows was not explained by the error. |
3. Environment
- Linux 4.19.0-gvisor x86_64; Node v22.19.0; pnpm 9.15.0; Vitest 4.1.12.
- Both checkouts started from trusted main e6f3032d1898b1404f1facf4baaf75da69e28da3, matched against the target repository's GitHub main SHA.
- Frozen installs and full Turbo builds succeeded in both checkouts. The first full build initially lacked SDK runtime artifacts; building the existing SDK target and rerunning the full build succeeded. No dependency was added.
- No running bb instance, production runtime, credentials, browser, provider session, database, data directory, or ports were used.
4. Minimal reproduction
- Check out the recorded commit in a disposable trusted checkout, then install and build:
git checkout e6f3032d1898b1404f1facf4baaf75da69e28da3 pnpm install --frozen-lockfile --prefer-offline pnpm exec turbo run build --filter=@get-bb/plugin-sdk pnpm exec turbo run build
- Save the independently authored inline diff below as regression.diff and apply it. It only strengthens the existing selected-only validation test; no production code is changed:
git apply /path/to/regression.diff pnpm exec turbo run test --filter=bb-plugin-workflows -- workflow-validation.test.ts
- The fixture supplies a known model with known medium reasoning support in selectedOnlyModels, and asks the real workflow parser/validator to validate a literal override. Expected: rejection identifies the default-catalog restriction and customModels remediation. Actual on unchanged production code:
Received: "Model mismatch for literal workflow selection codex/gpt-test/medium" Test Files 1 failed (1) Tests 1 failed | 6 passed (7)
The test does not run a workflow or call an external provider. The catalog fixture models a real existing API contract; it is not evidence of a particular live provider response.
Full regression test file
import { describe, expect, it } from "vitest";
import {
validateWorkflowSource,
type WorkflowCatalogDependencies,
} from "./workflow-validation.js";
const SOURCE = `export const meta = {
name: "catalog-test",
description: "Validate a literal selection",
};
return agent("review", {
provider: "codex",
model: "gpt-test",
reasoningLevel: "medium",
});`;
function catalog(
overrides: Partial<WorkflowCatalogDependencies> = {},
): WorkflowCatalogDependencies {
return {
listProviders: async () => [{ id: "codex", available: true }],
loadModels: async () => ({
modelLoadError: null,
selectedOnlyModels: [],
models: [
{
id: "gpt-test",
model: "gpt-test",
reasoningDiscovery: "known",
defaultReasoningEffort: "medium",
supportedReasoningEfforts: [{ reasoningEffort: "medium" }],
},
],
}),
...overrides,
};
}
describe("workflow validation", () => {
it.each([
{ discovery: "known", requested: "medium", accepted: true },
{ discovery: "known", requested: "high", accepted: false },
{ discovery: "unknown", requested: "medium", accepted: false },
] as const)(
"handles native reasoning defaults: $discovery/$requested",
async ({ discovery, requested, accepted }) => {
const validation = validateWorkflowSource(
SOURCE.replace(
'reasoningLevel: "medium"',
`reasoningLevel: "${requested}"`,
),
"env-1",
catalog({
loadModels: async () => ({
modelLoadError: null,
selectedOnlyModels: [],
models: [
{
id: "gpt-test",
model: "gpt-test",
reasoningDiscovery: discovery,
supportedReasoningEfforts: [],
defaultReasoningEffort: "medium",
},
],
}),
}),
);
if (accepted) {
await expect(validation).resolves.toMatchObject({ valid: true });
} else {
await expect(validation).rejects.toThrow("Unsupported reasoning level");
}
},
);
it("validates every safely discoverable literal tuple", async () => {
await expect(
validateWorkflowSource(SOURCE, "env-1", catalog()),
).resolves.toMatchObject({
valid: true,
metadata: { name: "catalog-test" },
literalSelections: [
{
provider: "codex",
model: "gpt-test",
reasoningLevel: "medium",
},
],
});
});
it("returns canonical phase metadata and validates native display options", async () => {
const source = `export const meta = {
name: "phase-validation",
description: "Validate phases",
phases: [{ title: "Inspect", detail: "Read first" }, { title: "Verify" }],
};
return agent("review", {
label: "Reader",
phase: "Inspect",
schema: { type: "object" },
});`;
await expect(
validateWorkflowSource(source, "env-1", catalog()),
).resolves.toMatchObject({
metadata: {
phases: [
{ title: "Inspect", detail: "Read first" },
{ title: "Verify", detail: null },
],
},
});
});
it("distinguishes provider, model-load, model, and reasoning failures", async () => {
await expect(
validateWorkflowSource(
SOURCE,
"env-1",
catalog({ listProviders: async () => [] }),
),
).rejects.toThrow("Unavailable provider");
await expect(
validateWorkflowSource(
SOURCE,
"env-1",
catalog({
loadModels: async () => ({
models: [],
selectedOnlyModels: [],
modelLoadError: { providerId: "codex", code: "auth_required" },
}),
}),
),
).rejects.toThrow("Model-load error");
await expect(
validateWorkflowSource(
SOURCE,
"env-1",
catalog({
loadModels: async () => {
throw new Error("host disconnected");
},
}),
),
).rejects.toThrow("Model-load error for provider codex: host disconnected");
await expect(
validateWorkflowSource(
SOURCE,
"env-1",
catalog({
loadModels: async () => ({
models: [],
selectedOnlyModels: [],
modelLoadError: null,
}),
}),
),
).rejects.toThrow("Model mismatch");
await expect(
validateWorkflowSource(
SOURCE,
"env-1",
catalog({
loadModels: async () => ({
selectedOnlyModels: [],
modelLoadError: null,
models: [
{
id: "gpt-test",
model: "gpt-test",
reasoningDiscovery: "known",
defaultReasoningEffort: "high",
supportedReasoningEfforts: [{ reasoningEffort: "high" }],
},
],
}),
}),
),
).rejects.toThrow("Unsupported reasoning");
});
it("explains how to enable a selected-only model for explicit selection", async () => {
await expect(
validateWorkflowSource(
SOURCE,
"env-1",
catalog({
loadModels: async () => ({
models: [],
selectedOnlyModels: [
{
id: "gpt-test",
model: "gpt-test",
reasoningDiscovery: "known",
defaultReasoningEffort: "medium",
supportedReasoningEfforts: [{ reasoningEffort: "medium" }],
},
],
modelLoadError: null,
}),
}),
),
).rejects.toThrow(
/outside the default provider catalog.*customModels in config\.json/,
);
});
});
Focused regression diff
diff --git a/plugins/workflows/src/workflow-validation.test.ts b/plugins/workflows/src/workflow-validation.test.ts
index 91add7dce7..f61d57c26e 100644
--- a/plugins/workflows/src/workflow-validation.test.ts
+++ b/plugins/workflows/src/workflow-validation.test.ts
@@ -182,7 +182,7 @@ describe("workflow validation", () => {
).rejects.toThrow("Unsupported reasoning");
});
- it("rejects selected-only models for explicit literal selections", async () => {
+ it("explains how to enable a selected-only model for explicit selection", async () => {
await expect(
validateWorkflowSource(
SOURCE,
@@ -203,6 +203,8 @@ describe("workflow validation", () => {
}),
}),
),
- ).rejects.toThrow("Model mismatch");
+ ).rejects.toThrow(
+ /outside the default provider catalog.*customModels in config\.json/,
+ );
});
});
First failing run · Second failing run
5. Root cause
Cursor's configured primary-model list puts other advertised models in selectedOnlyModels; workflow literal validation searches only models and emits an unexplained mismatch for an otherwise known model.
- Cursor primary catalog configuration supplies the six primary IDs.
- splitPrimaryModels partitions other advertised models into selectedOnlyModels, rather than dropping them.
- Workflow catalog adapter requests the ordinary provider catalog; literal validation searches only models and throws a generic mismatch:
const model = models.models.find( (candidate) => candidate.id === selection.model || candidate.model === selection.model, ); if (model === undefined) { throw new Error( `Model mismatch for literal workflow selection ${tupleDescription(selection)}`, ); } - Worker dispatch admits selectedOnlyModels only for inherited selections. This is an intentional contract, also covered by existing lifecycle coverage.
- Selected-model discovery refines known catalog reasoning support without promoting entries between catalogs.
- Existing custom-model promotion moves a matching selected-only entry into the explicit catalog when registered. Custom model configuration documents registration and config refresh.
Consequently, a reasoning probe does not change workflow eligibility. Broadly accepting every selected-only entry would also change the existing treatment of retired models and is not part of this fix.
6. Proposed fix
Preserve the current selection rules. When a rejected literal model matches a selected-only entry, explain that it is outside the default provider catalog and point to customModels in config.json, or inheritance from the origin thread. Document the same rule in the shipped workflows authoring reference. Do not claim that unknown IDs are verified or that reasoning discovery promotes eligibility.
The candidate patch changes three existing workflows files, with 22 additions and 3 deletions: 25 total changed text lines. It adds no dependency, generated output, stored data, public protocol, schema, permission change, or selection-policy decision. It addresses the actionable-error alternative rather than automatically exposing more provider models.
7. Verification
The same agent created a second clean temporary worktree at the recorded base SHA, performed a fresh frozen install and full build, applied only the regression test diff, and ran the same Turbo command. Result: the same single diagnostic regression failed and six existing validation cases passed. No production fix was present in that worktree, and this was a fresh execution rather than a reused test result.
No report correction was needed after the second run. After applying the diagnostic fix in the first checkout, the focused validation file passed all seven tests. Then pnpm exec turbo run test typecheck lint --filter=bb-plugin-workflows passed: 14 test files, 283 tests, successful typecheck, and lint with zero errors. Lint retains one unrelated pre-existing warning. The full pre-fix builds each completed 72 successful tasks.
Focused passing run · Full workflows checks
8. Related issues
Repository workflow catalog incidents #6792 and #6806 were inspected as triage precedents. This diagnostic issue is not evidence of a service-tier fix. No linked open pull request was found in the issue timeline or repository PR search before implementation.
9. Appendix
Inline evidence contains sanitized local paths and actual command output. Raw artifacts remain outside the public reports repository, whose policy allows only self-contained reports. Issue content was treated only as untrusted claims; no issue script, command, patch, link, or branch was executed. The regression is derived from the trusted repository's existing validation fixture. No issue comment was posted by the report publisher.
Base checkout: /tmp/issue-7856-investigation/base Second clean checkout: /tmp/issue-7856-investigation/verification Frozen install and builds: commands listed above Baseline regression and second clean regression: pnpm exec turbo run test --filter=bb-plugin-workflows -- workflow-validation.test.ts Fixed regression: pnpm exec turbo run test --filter=bb-plugin-workflows -- workflow-validation.test.ts Relevant checks: pnpm exec turbo run test typecheck lint --filter=bb-plugin-workflows Patch hygiene: git diff --check Scope: git diff --numstat origin/main
regression-before.log
• turbo 2.11.10 • Packages in scope: bb-plugin-workflows • Running test in 1 package • Remote caching disabled, using shared worktree cache //:ensure-native-modules: cache bypass, force executing e0b8c0895bfdb352 @bb/process-utils:generate:profile-worker: cache hit, replaying logs 17225bcb8d7c2a66 @bb/process-utils:generate:profile-worker: @bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker /tmp/issue-7856-investigation/base/packages/process-utils @bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs @bb/process-utils:generate:profile-worker: @bb/templates:generate:plugin-scaffold: cache hit, replaying logs ea342b3370a616ca @bb/templates:generate:templates: cache hit, replaying logs 84c53b61ff944f34 @bb/templates:generate:plugin-scaffold: @bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold /tmp/issue-7856-investigation/base/packages/templates @bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs @bb/templates:generate:plugin-scaffold: @bb/templates:generate:templates: @bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates /tmp/issue-7856-investigation/base/packages/templates @bb/templates:generate:templates: > node ./scripts/generate-templates.mjs @bb/templates:generate:templates: @bb/plugin-build:generate: cache hit, replaying logs 643fb2f5827a4e49 @bb/plugin-build:generate: @bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate /tmp/issue-7856-investigation/base/packages/plugin-build @bb/plugin-build:generate: > node ./scripts/generate-plugin-theme.mjs && node ./scripts/generate-runtime-export-manifest.mjs @bb/plugin-build:generate: @bb/plugin-build:generate: plugin-theme.generated.ts up to date @bb/plugin-build:generate: host-tailwind.css up to date @bb/plugin-build:generate: host-tailwind-version.ts up to date @bb/plugin-build:generate: wrote /tmp/issue-7856-investigation/base/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.3.1) @get-bb/plugin-sdk:build: cache hit, replaying logs 4487aeb6cda27a74 @get-bb/plugin-sdk:build: @get-bb/plugin-sdk:build: > @get-bb/plugin-sdk@0.6.165 build /tmp/issue-7856-investigation/base/packages/plugin-sdk @get-bb/plugin-sdk:build: > node scripts/build-runtime.mjs @get-bb/plugin-sdk:build: @get-bb/plugin-sdk:build: Built 25 @get-bb/plugin-sdk runtime entries. //:ensure-native-modules: //:ensure-native-modules: > bb@ ensure-native-modules /tmp/issue-7856-investigation/base //:ensure-native-modules: > node scripts/ensure-native-modules.mjs //:ensure-native-modules: bb-plugin-workflows:test: cache miss, executing 9a07f8b3375aaa23 bb-plugin-workflows:test: bb-plugin-workflows:test: > bb-plugin-workflows@0.1.0 test /tmp/issue-7856-investigation/base/plugins/workflows bb-plugin-workflows:test: > vitest run --config vitest.config.ts "workflow-validation.test.ts" bb-plugin-workflows:test: bb-plugin-workflows:test: bb-plugin-workflows:test: RUN v4.1.12 /tmp/issue-7856-investigation/base/plugins/workflows bb-plugin-workflows:test: bb-plugin-workflows:test: ❯ |bb-plugin-workflows| src/workflow-validation.test.ts (7 tests | 1 failed) 49ms bb-plugin-workflows:test: ✓ handles native reasoning defaults: 'known'/'medium' 7ms bb-plugin-workflows:test: ✓ handles native reasoning defaults: 'known'/'high' 2ms bb-plugin-workflows:test: ✓ handles native reasoning defaults: 'unknown'/'medium' 1ms bb-plugin-workflows:test: ✓ validates every safely discoverable literal tuple 1ms bb-plugin-workflows:test: ✓ returns canonical phase metadata and validates native display options 29ms bb-plugin-workflows:test: ✓ distinguishes provider, model-load, model, and reasoning failures 3ms bb-plugin-workflows:test: × explains how to enable a selected-only model for explicit selection 4ms bb-plugin-workflows:test: bb-plugin-workflows:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯ bb-plugin-workflows:test: bb-plugin-workflows:test: FAIL |bb-plugin-workflows| src/workflow-validation.test.ts > workflow validation > explains how to enable a selected-only model for explicit selection bb-plugin-workflows:test: AssertionError: expected [Function] to throw error matching /outside the default provider catalog.…/ but got 'Model mismatch for literal workflow s…' bb-plugin-workflows:test: bb-plugin-workflows:test: - Expected: bb-plugin-workflows:test: /outside the default provider catalog.*customModels in config\.json/ bb-plugin-workflows:test: bb-plugin-workflows:test: + Received: bb-plugin-workflows:test: "Model mismatch for literal workflow selection codex/gpt-test/medium" bb-plugin-workflows:test: bb-plugin-workflows:test: ❯ src/workflow-validation.test.ts:206:6 bb-plugin-workflows:test: 204| }), bb-plugin-workflows:test: 205| ), bb-plugin-workflows:test: 206| ).rejects.toThrow( bb-plugin-workflows:test: | ^ bb-plugin-workflows:test: 207| /outside the default provider catalog.*customModels in config\.j… bb-plugin-workflows:test: 208| ); bb-plugin-workflows:test: bb-plugin-workflows:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯ bb-plugin-workflows:test: bb-plugin-workflows:test: bb-plugin-workflows:test: Test Files 1 failed (1) bb-plugin-workflows:test: Tests 1 failed | 6 passed (7) bb-plugin-workflows:test: Start at 21:17:32 bb-plugin-workflows:test: Duration 1.25s (transform 95ms, setup 0ms, import 539ms, tests 49ms, environment 0ms) bb-plugin-workflows:test: bb-plugin-workflows:test: ELIFECYCLE Test failed. See above for more details. bb-plugin-workflows#test: ERROR command (/tmp/issue-7856-investigation/base/plugins/workflows) /usr/local/bin/pnpm run test workflow-validation.test.ts exited (1) Tasks: 6 successful, 7 total Cached: 5 cached, 7 total Time: 4.66s Failed: bb-plugin-workflows#test ERROR run failed: command exited (1)
regression-second-clean.log
• turbo 2.11.10 • Packages in scope: bb-plugin-workflows • Running test in 1 package • Remote caching disabled, using shared worktree cache //:ensure-native-modules: cache bypass, force executing e0b8c0895bfdb352 @bb/process-utils:generate:profile-worker: cache hit, replaying logs 17225bcb8d7c2a66 @bb/templates:generate:templates: cache hit, replaying logs 84c53b61ff944f34 @bb/templates:generate:templates: @bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates /tmp/issue-7856-investigation/base/packages/templates @bb/templates:generate:templates: > node ./scripts/generate-templates.mjs @bb/templates:generate:templates: @bb/process-utils:generate:profile-worker: @bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker /tmp/issue-7856-investigation/base/packages/process-utils @bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs @bb/process-utils:generate:profile-worker: @bb/plugin-build:generate: cache hit, replaying logs 643fb2f5827a4e49 @bb/plugin-build:generate: @bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate /tmp/issue-7856-investigation/base/packages/plugin-build @bb/plugin-build:generate: > node ./scripts/generate-plugin-theme.mjs && node ./scripts/generate-runtime-export-manifest.mjs @bb/plugin-build:generate: @bb/plugin-build:generate: plugin-theme.generated.ts up to date @bb/plugin-build:generate: host-tailwind.css up to date @bb/plugin-build:generate: host-tailwind-version.ts up to date @bb/plugin-build:generate: wrote /tmp/issue-7856-investigation/base/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.3.1) @bb/templates:generate:plugin-scaffold: cache hit, replaying logs ea342b3370a616ca @bb/templates:generate:plugin-scaffold: @bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold /tmp/issue-7856-investigation/base/packages/templates @bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs @bb/templates:generate:plugin-scaffold: @get-bb/plugin-sdk:build: cache miss, executing 694c80a40e86d34c @get-bb/plugin-sdk:build: @get-bb/plugin-sdk:build: > @get-bb/plugin-sdk@0.6.165 build /tmp/issue-7856-investigation/verification/packages/plugin-sdk @get-bb/plugin-sdk:build: > node scripts/build-runtime.mjs @get-bb/plugin-sdk:build: //:ensure-native-modules: //:ensure-native-modules: > bb@ ensure-native-modules /tmp/issue-7856-investigation/verification //:ensure-native-modules: > node scripts/ensure-native-modules.mjs //:ensure-native-modules: //:ensure-native-modules: [ensure-native-modules] Detached hardlinked better-sqlite3 binary before verification @get-bb/plugin-sdk:build: Built 25 @get-bb/plugin-sdk runtime entries. bb-plugin-workflows:test: cache miss, executing bb3ea723aa389c0b bb-plugin-workflows:test: bb-plugin-workflows:test: > bb-plugin-workflows@0.1.0 test /tmp/issue-7856-investigation/verification/plugins/workflows bb-plugin-workflows:test: > vitest run --config vitest.config.ts "workflow-validation.test.ts" bb-plugin-workflows:test: bb-plugin-workflows:test: bb-plugin-workflows:test: RUN v4.1.12 /tmp/issue-7856-investigation/verification/plugins/workflows bb-plugin-workflows:test: bb-plugin-workflows:test: ❯ |bb-plugin-workflows| src/workflow-validation.test.ts (7 tests | 1 failed) 33ms bb-plugin-workflows:test: ✓ handles native reasoning defaults: 'known'/'medium' 5ms bb-plugin-workflows:test: ✓ handles native reasoning defaults: 'known'/'high' 2ms bb-plugin-workflows:test: ✓ handles native reasoning defaults: 'unknown'/'medium' 0ms bb-plugin-workflows:test: ✓ validates every safely discoverable literal tuple 1ms bb-plugin-workflows:test: ✓ returns canonical phase metadata and validates native display options 18ms bb-plugin-workflows:test: ✓ distinguishes provider, model-load, model, and reasoning failures 2ms bb-plugin-workflows:test: × explains how to enable a selected-only model for explicit selection 3ms bb-plugin-workflows:test: bb-plugin-workflows:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯ bb-plugin-workflows:test: bb-plugin-workflows:test: FAIL |bb-plugin-workflows| src/workflow-validation.test.ts > workflow validation > explains how to enable a selected-only model for explicit selection bb-plugin-workflows:test: AssertionError: expected [Function] to throw error matching /outside the default provider catalog.…/ but got 'Model mismatch for literal workflow s…' bb-plugin-workflows:test: bb-plugin-workflows:test: - Expected: bb-plugin-workflows:test: /outside the default provider catalog.*customModels in config\.json/ bb-plugin-workflows:test: bb-plugin-workflows:test: + Received: bb-plugin-workflows:test: "Model mismatch for literal workflow selection codex/gpt-test/medium" bb-plugin-workflows:test: bb-plugin-workflows:test: ❯ src/workflow-validation.test.ts:206:6 bb-plugin-workflows:test: 204| }), bb-plugin-workflows:test: 205| ), bb-plugin-workflows:test: 206| ).rejects.toThrow( bb-plugin-workflows:test: | ^ bb-plugin-workflows:test: 207| /outside the default provider catalog.*customModels in config\.j… bb-plugin-workflows:test: 208| ); bb-plugin-workflows:test: bb-plugin-workflows:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯ bb-plugin-workflows:test: bb-plugin-workflows:test: bb-plugin-workflows:test: Test Files 1 failed (1) bb-plugin-workflows:test: Tests 1 failed | 6 passed (7) bb-plugin-workflows:test: Start at 21:18:05 bb-plugin-workflows:test: Duration 293ms (transform 56ms, setup 0ms, import 143ms, tests 33ms, environment 0ms) bb-plugin-workflows:test: bb-plugin-workflows:test: ELIFECYCLE Test failed. See above for more details. bb-plugin-workflows#test: ERROR command (/tmp/issue-7856-investigation/verification/plugins/workflows) /usr/local/bin/pnpm run test workflow-validation.test.ts exited (1) Tasks: 6 successful, 7 total Cached: 4 cached, 7 total Time: 2.492s Failed: bb-plugin-workflows#test ERROR run failed: command exited (1)
regression-after.log
• turbo 2.11.10 • Packages in scope: bb-plugin-workflows • Running test in 1 package • Remote caching disabled, using shared worktree cache //:ensure-native-modules: cache bypass, force executing e0b8c0895bfdb352 @bb/templates:generate:plugin-scaffold: cache hit, replaying logs ea342b3370a616ca @bb/templates:generate:plugin-scaffold: @bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold /tmp/issue-7856-investigation/base/packages/templates @bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs @bb/templates:generate:plugin-scaffold: @bb/templates:generate:templates: cache hit, replaying logs 84c53b61ff944f34 @bb/plugin-build:generate: cache hit, replaying logs 643fb2f5827a4e49 @bb/plugin-build:generate: @bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate /tmp/issue-7856-investigation/base/packages/plugin-build @bb/plugin-build:generate: > node ./scripts/generate-plugin-theme.mjs && node ./scripts/generate-runtime-export-manifest.mjs @bb/plugin-build:generate: @bb/plugin-build:generate: plugin-theme.generated.ts up to date @bb/plugin-build:generate: host-tailwind.css up to date @bb/plugin-build:generate: host-tailwind-version.ts up to date @bb/plugin-build:generate: wrote /tmp/issue-7856-investigation/base/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.3.1) @bb/templates:generate:templates: @bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates /tmp/issue-7856-investigation/base/packages/templates @bb/templates:generate:templates: > node ./scripts/generate-templates.mjs @bb/templates:generate:templates: @bb/process-utils:generate:profile-worker: cache hit, replaying logs 17225bcb8d7c2a66 @bb/process-utils:generate:profile-worker: @bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker /tmp/issue-7856-investigation/base/packages/process-utils @bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs @bb/process-utils:generate:profile-worker: @get-bb/plugin-sdk:build: cache hit, replaying logs 4487aeb6cda27a74 @get-bb/plugin-sdk:build: @get-bb/plugin-sdk:build: > @get-bb/plugin-sdk@0.6.165 build /tmp/issue-7856-investigation/base/packages/plugin-sdk @get-bb/plugin-sdk:build: > node scripts/build-runtime.mjs @get-bb/plugin-sdk:build: @get-bb/plugin-sdk:build: Built 25 @get-bb/plugin-sdk runtime entries. //:ensure-native-modules: //:ensure-native-modules: > bb@ ensure-native-modules /tmp/issue-7856-investigation/base //:ensure-native-modules: > node scripts/ensure-native-modules.mjs //:ensure-native-modules: bb-plugin-workflows:test: cache miss, executing e863792fa4ea59cf bb-plugin-workflows:test: bb-plugin-workflows:test: > bb-plugin-workflows@0.1.0 test /tmp/issue-7856-investigation/base/plugins/workflows bb-plugin-workflows:test: > vitest run --config vitest.config.ts "workflow-validation.test.ts" bb-plugin-workflows:test: bb-plugin-workflows:test: bb-plugin-workflows:test: RUN v4.1.12 /tmp/issue-7856-investigation/base/plugins/workflows bb-plugin-workflows:test: bb-plugin-workflows:test: ✓ |bb-plugin-workflows| src/workflow-validation.test.ts (7 tests) 30ms bb-plugin-workflows:test: bb-plugin-workflows:test: Test Files 1 passed (1) bb-plugin-workflows:test: Tests 7 passed (7) bb-plugin-workflows:test: Start at 21:17:57 bb-plugin-workflows:test: Duration 308ms (transform 60ms, setup 0ms, import 155ms, tests 30ms, environment 0ms) bb-plugin-workflows:test: Tasks: 7 successful, 7 total Cached: 5 cached, 7 total Time: 1.675s
verification-after.log
• turbo 2.11.10
• Packages in scope: bb-plugin-workflows
• Running test, typecheck, lint in 1 package
• Remote caching disabled, using shared worktree cache
//:ensure-native-modules: cache bypass, force executing a02a09ab18dd9b78
bb-plugin-workflows:lint: cache miss, executing b32285b5478c8eb0
@bb/process-utils:generate:profile-worker: cache hit, replaying logs 0e04fc8d40e2224b
@bb/templates:generate:templates: cache hit, replaying logs bf04fc4a32d85a08
@bb/process-utils:generate:profile-worker:
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker /tmp/issue-7856-investigation/base/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker:
@bb/templates:generate:templates:
@bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates /root/.bb-machines/bee.getbb.app/checkouts/project-proj-atixi2qwed/packages/templates
@bb/templates:generate:templates: > node ./scripts/generate-templates.mjs
@bb/templates:generate:templates:
@bb/templates:generate:plugin-scaffold: cache hit, replaying logs b54b24c6af259957
@bb/templates:generate:plugin-scaffold:
@bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold /root/.bb-machines/bee.getbb.app/checkouts/project-proj-atixi2qwed/packages/templates
@bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs
@bb/templates:generate:plugin-scaffold:
@bb/plugin-build:generate: cache hit, replaying logs 474be56d805c76aa
@bb/plugin-build:generate:
@bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate /root/.bb-machines/bee.getbb.app/checkouts/project-proj-atixi2qwed/packages/plugin-build
@bb/plugin-build:generate: > node ./scripts/generate-plugin-theme.mjs && node ./scripts/generate-runtime-export-manifest.mjs
@bb/plugin-build:generate:
@bb/plugin-build:generate: wrote packages/plugin-build/src/generated/plugin-theme.generated.ts
@bb/plugin-build:generate: wrote packages/plugin-build/src/generated/host-tailwind.css
@bb/plugin-build:generate: wrote packages/plugin-build/src/generated/host-tailwind-version.ts
@bb/plugin-build:generate: wrote /root/.bb-machines/bee.getbb.app/checkouts/project-proj-atixi2qwed/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.3.1)
@get-bb/plugin-sdk:build:types: cache hit, replaying logs 7fbab526a9927bae
@get-bb/plugin-sdk:build:types:
@get-bb/plugin-sdk:build:types: > @get-bb/plugin-sdk@0.6.165 build:types /tmp/issue-7856-investigation/base/packages/plugin-sdk
@get-bb/plugin-sdk:build:types: > node --max-semi-space-size=128 --max-old-space-size=4096 scripts/build-bundled-dts.mjs
@get-bb/plugin-sdk:build:types:
@get-bb/plugin-sdk:build:types: [build-bundled-dts] UNRESOLVED_IMPORT: "child_process" is imported by "../process-utils/src/host-process.d.ts", but could not be resolved – treating it as an external dependency.
@get-bb/plugin-sdk:build:types: [build-bundled-dts] UNRESOLVED_IMPORT: "child_process" is imported by "../process-utils/src/host-process.d.ts", but could not be resolved – treating it as an external dependency.
@get-bb/plugin-sdk:build:types: [build-bundled-dts] UNRESOLVED_IMPORT: "child_process" is imported by "../process-utils/src/host-process.d.ts", but could not be resolved – treating it as an external dependency.
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk.d.ts
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk-provider-bridge.d.ts
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk-provider-bridge-testing.d.ts
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk-provider-bridge-acp.d.ts
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk-provider-bridge-acp-next.d.ts
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk-environment-provider.d.ts
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk-machine-provider.d.ts
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk-app.d.ts
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk-host.d.ts
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk-internal-composer-customization-validation.d.ts
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk-internal-composer-handle.d.ts
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk-internal-composer-view.d.ts
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk-internal-thread-status.d.ts
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk-internal-thread-event-gate.d.ts
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk-internal-file-navigation-validation.d.ts
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk-internal-host-policy.d.ts
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk-internal-plugin-app-collector.d.ts
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk-testing.d.ts
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk-testing-app.d.ts
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk-testing-host.d.ts
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk-internal-rpc-tags.d.ts
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk-internal-rpc-query-host.d.ts
@get-bb/plugin-sdk:build:types: Wrote bundled-types/bb-plugin-sdk-process.d.ts
bb-plugin-workflows:typecheck: cache miss, executing 19ce1c635427228d
@get-bb/plugin-sdk:build: cache hit, replaying logs 473ffe4c02e9dc27
@get-bb/plugin-sdk:build:
@get-bb/plugin-sdk:build: > @get-bb/plugin-sdk@0.6.165 build /tmp/issue-7856-investigation/base/packages/plugin-sdk
@get-bb/plugin-sdk:build: > node scripts/build-runtime.mjs
@get-bb/plugin-sdk:build:
@get-bb/plugin-sdk:build: Built 25 @get-bb/plugin-sdk runtime entries.
//:ensure-native-modules:
//:ensure-native-modules: > bb@ ensure-native-modules /tmp/issue-7856-investigation/base
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules:
bb-plugin-workflows:lint:
bb-plugin-workflows:lint: > bb-plugin-workflows@0.1.0 lint /tmp/issue-7856-investigation/base/plugins/workflows
bb-plugin-workflows:lint: > oxlint --ignore-pattern node_modules --ignore-pattern dist .
bb-plugin-workflows:lint:
bb-plugin-workflows:typecheck:
bb-plugin-workflows:typecheck: > bb-plugin-workflows@0.1.0 typecheck /tmp/issue-7856-investigation/base/plugins/workflows
bb-plugin-workflows:typecheck: > tsrs --noEmit
bb-plugin-workflows:typecheck:
bb-plugin-workflows:test: cache miss, executing a3c4681d3e8c52f6
bb-plugin-workflows:test:
bb-plugin-workflows:test: > bb-plugin-workflows@0.1.0 test /tmp/issue-7856-investigation/base/plugins/workflows
bb-plugin-workflows:test: > vitest run --config vitest.config.ts
bb-plugin-workflows:test:
bb-plugin-workflows:lint:
bb-plugin-workflows:lint: ! react(refs): Cannot access refs during render
bb-plugin-workflows:lint: ,-[src/app.tsx:517:20]
bb-plugin-workflows:lint: 516 | aria-label={`Workflow: ${run.name}`}
bb-plugin-workflows:lint: 517 | onClick={focus.onTriggerClick}
bb-plugin-workflows:lint: : ^^^^^^^^^^|^^^^^^^^^
bb-plugin-workflows:lint: : `-- Cannot access ref value during render
bb-plugin-workflows:lint: 518 | className={cn(
bb-plugin-workflows:lint: `----
bb-plugin-workflows:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected
bb-plugin-workflows:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs
bb-plugin-workflows:lint:
bb-plugin-workflows:lint: Found 1 warning and 0 errors.
bb-plugin-workflows:lint: Finished in 438ms on 36 files with 24 rules using 20 threads.
bb-plugin-workflows:test:
bb-plugin-workflows:test: RUN v4.1.12 /tmp/issue-7856-investigation/base/plugins/workflows
bb-plugin-workflows:test:
bb-plugin-workflows:test: ✓ |bb-plugin-workflows| src/cache.test.ts (23 tests) 9ms
bb-plugin-workflows:test: ✓ |bb-plugin-workflows| src/data.test.ts (20 tests) 63ms
bb-plugin-workflows:test: ✓ |bb-plugin-workflows| src/source-resolution.test.ts (13 tests) 11ms
bb-plugin-workflows:test: ✓ |bb-plugin-workflows| src/settings.test.ts (15 tests) 16ms
bb-plugin-workflows:test: ✓ |bb-plugin-workflows| src/ui-view.test.ts (2 tests) 10ms
bb-plugin-workflows:test: ✓ |bb-plugin-workflows| src/validation.test.ts (15 tests) 105ms
bb-plugin-workflows:test: ✓ |bb-plugin-workflows| src/workflow-validation.test.ts (7 tests) 52ms
bb-plugin-workflows:test: ✓ |bb-plugin-workflows| src/parser.test.ts (25 tests) 159ms
bb-plugin-workflows:test: ✓ |bb-plugin-workflows| src/runtime.test.ts (29 tests) 176ms
bb-plugin-workflows:test: ✓ |bb-plugin-workflows| src/cli.test.ts (18 tests) 198ms
bb-plugin-workflows:test: ✓ |bb-plugin-workflows| src/worker-abort-listeners.test.ts (2 tests) 912ms
bb-plugin-workflows:test: ✓ does not retain abort listeners from completed worker polls 878ms
bb-plugin-workflows:test: ✓ |bb-plugin-workflows| src/app.test.tsx (22 tests) 746ms
bb-plugin-workflows:test: ✓ |bb-plugin-workflows| src/server-harness.test.ts (25 tests) 2626ms
bb-plugin-workflows:test: ✓ runs a structured workflow asynchronously and notifies its origin 691ms
bb-plugin-workflows:test: ✓ retries a transient provider failure before settling the call 1020ms
bb-plugin-workflows:test: ✓ |bb-plugin-workflows| src/service-policy.test.ts (67 tests) 15872ms
bb-plugin-workflows:test: ✓ retries a transient origin lookup before execution check 2 1021ms
bb-plugin-workflows:test: ✓ keeps cleanup pending after stop fails and completes it after restart 1023ms
bb-plugin-workflows:test: ✓ owns and archives every retry attempt before history expires 2013ms
bb-plugin-workflows:test: ✓ hands a failed worker's retry over when 'provider retry declined the failure' 1027ms
bb-plugin-workflows:test: ✓ hands a failed worker's retry over when 'provider retry is not installed' 1030ms
bb-plugin-workflows:test: ✓ waits for provider retry to decide on a failed worker before replacing it 2035ms
bb-plugin-workflows:test: ✓ cancels in-flight work and retains history when the origin is archived 1013ms
bb-plugin-workflows:test: ✓ does not retire a discovered worker while its spawn response is pending 1007ms
bb-plugin-workflows:test: ✓ does not retire a worker that attaches while cleanup archives an earlier one 2010ms
bb-plugin-workflows:test: ✓ owns a worker returned after cancellation wins the spawn race 1009ms
bb-plugin-workflows:test: ✓ retains cleanup ownership after expired history is deleted and retries after restart 1020ms
bb-plugin-workflows:test:
bb-plugin-workflows:test: Test Files 14 passed (14)
bb-plugin-workflows:test: Tests 283 passed (283)
bb-plugin-workflows:test: Start at 21:17:59
bb-plugin-workflows:test: Duration 17.30s (transform 2.01s, setup 0ms, import 8.07s, tests 20.96s, environment 1.25s)
bb-plugin-workflows:test:
Tasks: 10 successful, 10 total
Cached: 6 cached, 10 total
Time: 18.695s