Skip to content

feat: 集成 Qoder CLI - #1556

Open
Bugaoxingxx wants to merge 1 commit into
Tencent:mainfrom
Bugaoxingxx:feat/qoder-cli
Open

Bugaoxingxx wants to merge 1 commit into
Tencent:mainfrom
Bugaoxingxx:feat/qoder-cli

Conversation

@Bugaoxingxx

Copy link
Copy Markdown

What changed

Users can select Qoder CLI as a model provider and run conversations and workflows with a personal access token. The integration supports model discovery, streaming, attachments, approvals, and international or China site selection. It also adds runner detection, managed CLI support, provider branding, and setup documentation.

Scope

  • Platform core / API / runner
  • Public adapter / deployment
  • Classic
  • Portable
  • Shared behavior contract
  • Installer / CLI
  • Documentation only

Compatibility

  • Affects the platform API, web and chatbot interfaces, managed CLI updater, runners, and Docker/native execution environments.
  • Configure a Qoder personal access token and select the appropriate site; runners need the corresponding qoder or qodercn executable. Docker workspaces can install the CLI on demand.
  • No SQL migration is included. Existing providers remain available; Qoder is an additional provider. Live acceptance against a real Qoder account was not run.

Validation

Executed in Linux (WSL), unless otherwise noted:

  • PASS: go test ./internal/managedcli -count=1 -timeout=180s.
  • PASS: go test ./internal/runtime -count=1 -timeout=600s -skip "TestMainBotBrowserStartsAndDrivesRunBrowser|TestBrowserStreamPushesFramesAndRunsCommands|TestRunnerStartsPanelBrowserInRunSandbox|TestBrowserAgentOperationsDriveRealChromium|TestBrowserScrollEndsOnASharpFrame".
  • PASS: go test ./internal/httpapi -count=1 -timeout=600s -skip "^(TestMainBotBrowserStartsAndDrivesRunBrowser|TestBrowserStreamPushesFramesAndRunsCommands|TestRunnerStartsPanelBrowserInRunSandbox|TestBrowserAgentOperationsDriveRealChromium|TestBrowserScrollEndsOnASharpFrame)$".
  • PASS: go test -p=1 ./internal/httpapi ./internal/runner ./internal/runtime -count=1 -timeout=300s -run "^(TestMainBotBrowserStartsAndDrivesRunBrowser|TestBrowserStreamPushesFramesAndRunsCommands|TestRunnerStartsPanelBrowserInRunSandbox|TestBrowserAgentOperationsDriveRealChromium|TestBrowserScrollEndsOnASharpFrame)$".
  • PASS: Qoder-specific tests across domain, runtime, runner, API, and repository; full runner and domain package tests.
  • PASS: npm test -- --run in chatbot (573 tests); Qoder credential and runner i18n tests in webtest (12 tests); expanded E2E helper unit tests (24 tests).
  • Windows web regression: 438/439 passed; the remaining test passed after temporarily normalizing its input file to LF and restoring it. Three repository public-template tests likewise passed with LF input after initially failing on CRLF checkout files.
  • PASS: git diff --check upstream/main...HEAD and Go formatting check on changed Go files.

Not run: go test -p=2 ./... -count=1 -timeout=180s, go vet ./..., python3 scripts/check-public.py, bash local/scripts/validate.sh, bash local/scripts/smoke-install.sh, bash local/scripts/e2e.sh, and bash scripts/scan-secrets.sh.

Safety

  • I did not include credentials, internal endpoints, production data, or organization-specific infrastructure. (Secret scan not run.)
  • I preserved user files and unrelated changes.
  • I updated generated Classic host bundles when applicable. (Not applicable.)
  • I documented third-party content and licensing changes when applicable. (Qoder logo source and MIT license are recorded.)

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.

1 participant