Skip to content

GitLab workflow models are not discovered in v2 #50421

Closed

Description

@vglafirov

Description

GitLab Duo Agent Platform models are missing from the v2 model picker, although workflow discovery works in v1 for the same project.

The v1 GitLab loader calls gitlab-ai-provider.discoverWorkflowModels() and registers the returned models. The v2 adapter in packages/core/src/plugin/provider/gitlab.ts only registers SDK/language hooks; it never calls discovery. Updating the SDK alone does not restore that integration.

This is a missing v2 integration, distinct from the token-passing problem reported in #37107.

Plugins

Reproduced with no external plugins and a fresh credential store using GITLAB_TOKEN.

OpenCode version

v2 source checkout (2.0.11; discovery code is also unchanged in 2.0.12)

Steps to reproduce

  1. Export a valid GITLAB_TOKEN with Duo Agent Platform access.
  2. Start a fresh v2 server with an isolated credential store, then open a GitLab project using bun run dev --standalone /path/to/project.
  3. Open the model picker: chat models appear, but no discovered duo-workflow-* models.
  4. Call the SDK discovery API directly with the same token and directory: it returns the available workflow models.

With the discovery call restored, a live test against gitlab-org/gitlab returned 54 workflow models through both the v2 model API and CLI.

Operating System

macOS (arm64)

Terminal

zsh / Bun 1.4.2

Activity

  1. LeoParkerOu commented on Sep 22, 2026

    @LeoParkerOu

    I’d like to work on this.

    I’ll restore GitLab Duo workflow-model discovery in the v2 provider adapter while preserving the existing SDK and language integrations. I’ll add focused coverage with a mocked discovery response to verify that the discovered workflow models reach the provider/model catalog, and I’ll run a live check if a suitable GitLab Duo environment is available.

  2. Tarquinen commented on Oct 20, 2026

    @Tarquinen
    Member

    This was fixed by #50422. That PR merged into the v2 branch, so GitHub didn't close this issue automatically. Closing as completed.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions