Files
multica/server/migrations/136_runtime_profile_add_traecli.up.sql
Bohan Jiang 346f818206 fix(runtime): add traecli to custom runtime profile whitelist (#4972)
Trae (traecli) already has a New() backend, launch header (traecli acp
serve) and provider branding, but was missing from every protocol_family
whitelist, so custom runtime profiles based on Trae were rejected and it
never appeared in the family picker.

Add traecli to SupportedTypes (Go), RUNTIME_PROFILE_PROTOCOL_FAMILIES
(TS), the lockstep test's want map, and a new migration 136 widening the
runtime_profile_protocol_family_check constraint.

MUL-4094, #4945

Co-authored-by: J <j@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
2026-07-06 15:03:17 +08:00

26 lines
920 B
SQL

ALTER TABLE runtime_profile DROP CONSTRAINT IF EXISTS runtime_profile_protocol_family_check;
-- Widen the whitelist to include Trae (`traecli`). Trae already has a New()
-- backend, launch header (`traecli acp serve`) and provider branding, but was
-- missing from the protocol_family whitelist, so custom runtime profiles based
-- on Trae were rejected and it never appeared in the family picker (#4945).
-- NOT VALID mirrors migrations 126/134 so a historical Gemini row they
-- intentionally tolerated does not block the upgrade.
ALTER TABLE runtime_profile ADD CONSTRAINT runtime_profile_protocol_family_check
CHECK (protocol_family IN (
'claude',
'codebuddy',
'codex',
'copilot',
'opencode',
'openclaw',
'hermes',
'pi',
'cursor',
'kimi',
'kiro',
'antigravity',
'qoder',
'traecli'
)) NOT VALID;