Skip to content

resolveProviderWorkflowsEnabled hands third-party workflow providers a Claude-named user preference #1722

Closed

Description

@ymichael

resolveProviderWorkflowsEnabled (apps/server/src/services/threads/thread-commands.ts) gates on the provider's declared supportsWorkflows capability but then reads the Claude-named app setting:

function resolveProviderWorkflowsEnabled(
  deps: Pick<AppDeps, "db">,
  providerId: string,
): boolean {
  if (!resolveWorkflowsEnabledPolicy(providerId)) return false;
  return !getAppSettings(deps.db).claudeCodeWorkflowsDisabled;
}

claudeCodeWorkflowsDisabled (packages/domain/src/app-settings.ts) is a real user-facing Settings toggle (apps/app/src/views/SettingsView.tsx, "workflowsDisabled"). Today claude-code is the only provider declaring supportsWorkflows, so this is unreachable — but the first third-party provider that declares supportsWorkflows: true silently inherits someone else's Claude-named preference.

Recorded in plans/agent-provider-plugin-surface.md ("One concrete inconsistency to fix…: a plugin provider that declares supportsWorkflows: true today silently inherits a Claude-named user preference. It is currently unreachable… but it is a live trap for the first third-party provider."). The proper fix likely lands with provider-scoped plugin settings (the deferred plugin-facing provider directory work), but the trap deserves its own tracking so it isn't tripped first.

Surfaced during #1640 final validation; pre-existing naming/scoping debt, unreachable today.

AGENT GENERATED: by Claude Fable 5

Activity

  1. self-assigned this
    on Aug 17, 2026
  2. added a commit that references this issue on Aug 17, 2026
    258fc24
  3. added a commit that references this issue on Aug 17, 2026
    155a53a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions