Skip to content

Copilot and Qwen coding agent#156

Merged
Cedric / ViaDézo1er (viadezo1er) merged 13 commits into
mainfrom
cedric/add-copilot-coding-agent
Apr 30, 2026
Merged

Copilot and Qwen coding agent#156
Cedric / ViaDézo1er (viadezo1er) merged 13 commits into
mainfrom
cedric/add-copilot-coding-agent

Conversation

@viadezo1er
Copy link
Copy Markdown
Contributor

@viadezo1er Cedric / ViaDézo1er (viadezo1er) commented Apr 27, 2026

Add copilot and qwen to the agents supported by bt setup
There are commits related to Qwen as this branch was created from cedric/add-qwen-coding-agent before it was merged into main.

Small DRY refactor.

Bug fixes:

  • gemini doesn't trust the folder by default when launched in background mode, which is a pitfall if used in CI (WIP)
  • Cursor and gemini need --output-format stream-json to output their thinking in real time in background mode, which requires some custom code.

@viadezo1er Cedric / ViaDézo1er (viadezo1er) changed the title Cedric/add copilot coding agent Copilot coding agent Apr 27, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 27, 2026

Latest downloadable build artifacts for this PR commit 60be5e9fe078:

Available artifact names
  • ``artifacts-build-global
  • ``artifacts-build-local-x86_64-apple-darwin
  • ``artifacts-build-local-x86_64-pc-windows-msvc
  • ``artifacts-build-local-aarch64-apple-darwin
  • ``artifacts-build-local-x86_64-unknown-linux-musl
  • ``artifacts-build-local-x86_64-unknown-linux-gnu
  • ``artifacts-build-local-aarch64-unknown-linux-gnu
  • ``artifacts-plan-dist-manifest
  • ``cargo-dist-cache

@viadezo1er Cedric / ViaDézo1er (viadezo1er) changed the title Copilot coding agent Copilot and Qwen coding agent Apr 28, 2026
@viadezo1er
Copy link
Copy Markdown
Contributor Author

Cedric / ViaDézo1er (viadezo1er) commented Apr 28, 2026

Example config to test qwen
~/.qwen/settings.json:

{
  "env": {
    "OPENAI_API_KEY": "a real openai api key"
  },
  "modelProviders": {
    "openai": [
      {
        "id": "gpt-5-nano",
        "name": "GPT-5-nano",
        "envKey": "OPENAI_API_KEY",
        "baseUrl": "https://api.openai.com/v1",
        "generationConfig": {
          "timeout": 60000,
          "maxRetries": 3,
          "enableCacheControl": true,
          "contextWindowSize": 128000,
          "modalities": {
            "image": true
          },
          "customHeaders": {
            "X-Client-Request-ID": "req-123"
          },
          "extra_body": {
            "service_tier": "flex"
          },
          "samplingParams": {}
        }
      }
    ]
  },
  "security": {
    "auth": {
      "selectedType": "openai"
    }
  },
  "model": {
    "name": "gpt-5-nano"
  },
  "$version": 3,
  "mcpServers": {
    "braintrust": {
      "httpUrl": "https://staging-api.braintrust.dev/mcp",
      "headers": {
        "Authorization": "Bearer sk-****a real braintrust api key"
      }
    }
  }
}

Comment thread src/setup/mod.rs Outdated

fn async_env_test_lock() -> &'static AsyncMutex<()> {
static LOCK: OnceLock<AsyncMutex<()>> = OnceLock::new();
LOCK.get_or_init(|| AsyncMutex::new(()))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we introduce this? Now the sync and async tests can be run in parallel, and access env, which is bad. We should have a single shared mutex.

@viadezo1er Cedric / ViaDézo1er (viadezo1er) merged commit 3c4a33f into main Apr 30, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants