Skip to content

feat(coder/modules/trae-cn): add Trae CN IDE module#903

Open
lecion wants to merge 4 commits into
coder:mainfrom
lecion:feat/trae-cn-module
Open

feat(coder/modules/trae-cn): add Trae CN IDE module#903
lecion wants to merge 4 commits into
coder:mainfrom
lecion:feat/trae-cn-module

Conversation

@lecion
Copy link
Copy Markdown

@lecion lecion commented May 27, 2026

Summary

Adds a new official coder/trae-cn module that opens workspaces in Trae CN using the verified trae-cn://coder.coder-remote/open protocol and the shared vscode-desktop-core module.

The module includes:

  • Terraform inputs matching the existing desktop IDE modules: agent_id, folder, open_recent, order, group, slug, and display_name
  • A trae_cn_url output for the generated launch URI
  • README frontmatter and usage examples
  • A high-resolution Trae CN icon extracted from the local app icon
  • Optional MCP configuration via mcp, with default writes to folder/.trae/mcp.json or $HOME/.trae/mcp.json
  • mcp_config_path for writing MCP config outside a repository when the config contains credentials
  • Terraform and Bun tests covering default URLs, folder handling, open_recent, app metadata, ordering, icon metadata, and MCP script generation

Validation

  • terraform init -upgrade && terraform test -verbose in registry/coder/modules/trae-cn
  • bun test main.test.ts in registry/coder/modules/trae-cn
  • go run ./cmd/readmevalidation
  • bun run fmt:ci
  • git diff --check

Note: during local validation, terraform init intermittently failed against registry.coder.com and GitHub with network timeouts or unexpected EOFs. Retrying after connectivity recovered succeeded.

Generated with Codex using GPT-5.

@lecion lecion marked this pull request as ready for review May 27, 2026 07:39
Copy link
Copy Markdown
Member

@matifali matifali left a comment

Choose a reason for hiding this comment

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

I can not access it, so I can't verify. Can you please move it to a new namespace under your own name?

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