Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
MUL-9191: remove MULTICA_THEME_STORE off switch; theme store is always on (#10552)
Bohan Jiang4c19b93e58b2
diff --git a/.env.example b/.env.exampleindex c921b1b983..664a632ddf 100644--- a/.env.example+++ b/.env.example@@ -613,12 +613,10 @@ GITHUB_APP_PRIVATE_KEY=MULTICA_VCS_INTEGRATION_ENABLED=MULTICA_VCS_SECRET_KEY=-# Community theme store (Settings → Appearance → Manage, beta). On by default:+# Community theme store (Settings → Appearance → Manage, beta). Always on:# the server reads the registry at github.com/multica-ai/multica-themes and-# serves its themes to the app, cached. MULTICA_THEME_STORE=off hides the store-# and stops every registry request. MULTICA_THEME_REGISTRY_URL points the store-# at another registry's index.json (same format; fork that repository).-MULTICA_THEME_STORE=+# serves its themes to the app, cached. MULTICA_THEME_REGISTRY_URL points the+# store at another registry's index.json (same format; fork that repository).MULTICA_THEME_REGISTRY_URL=# Plugins (Settings → Plugins). A plugin's frontend is an artifact its authordiff --git a/apps/docs/content/docs/environment-variables.fr.mdx b/apps/docs/content/docs/environment-variables.fr.mdxindex 7a69fdf91a..a7e8e89abc 100644--- a/apps/docs/content/docs/environment-variables.fr.mdx+++ b/apps/docs/content/docs/environment-variables.fr.mdx@@ -200,7 +200,6 @@ Les limites de débit d'authentification nécessitent `REDIS_URL` ; sans cette v| Plugins | `MULTICA_PLUGIN_SURFACE_ORIGIN` | Origine navigateur dédiée, sans cookies, routée vers ce backend ; doit différer des origines de l'application et de l'API, et préserver `Host` || Plugins | `MULTICA_PLUGIN_API_URL` | URL de base complète et versionnée de la Plugin Public API, comme `https://plugin-api.example.com/v1` ; se rabat sur `MULTICA_PUBLIC_URL` + `/v1` || Plugins | `MULTICA_PLUGIN_DIR` | Répertoire absolu facultatif utilisé pour publier des bundles de plugins locaux pendant le développement |-| Boutique de thèmes | `MULTICA_THEME_STORE` | Activée par défaut, elle lit le registre officiel [multica-themes](https://github.com/multica-ai/multica-themes) ; `off` désactive la boutique de thèmes communautaires et toute requête au registre || Boutique de thèmes | `MULTICA_THEME_REGISTRY_URL` | L'`index.json` d'un autre registre, par exemple un fork de l'officiel ; voir [Thèmes et apparence](/themes#auto-hébergement) |Sans `GITHUB_APP_ID` et la clé privée, les PR sont toujours liées, reflétées et changent normalement le statut de la tâche lors du merge, mais les cartes n'affichent ni statut CI ni possibilité de fusion, et l'entrée de dépôt « Choisir depuis GitHub » est désactivée.diff --git a/apps/docs/content/docs/environment-variables.ja.mdx b/apps/docs/content/docs/environment-variables.ja.mdxindex d45e3fbd0c..4e821a9749 100644--- a/apps/docs/content/docs/environment-variables.ja.mdx+++ b/apps/docs/content/docs/environment-variables.ja.mdx@@ -200,7 +200,6 @@ allowlist の正確な判定順序は[ログインとサインアップ](/auth-s| Plugins | `MULTICA_PLUGIN_SURFACE_ORIGIN` | バックエンドへルーティングする Cookie なしの専用 origin。app/API origin と分離し、`Host` を保持すること || Plugins | `MULTICA_PLUGIN_API_URL` | バージョンを含む Plugin Public API の完全な Base URL(例: `https://plugin-api.example.com/v1`)。未設定時は `MULTICA_PUBLIC_URL` + `/v1` || Plugins | `MULTICA_PLUGIN_DIR` | 開発時にローカル plugin bundle を公開するための任意の絶対ディレクトリ |-| テーマストア | `MULTICA_THEME_STORE` | 既定で有効。公式の [multica-themes](https://github.com/multica-ai/multica-themes) レジストリを読みます。`off` でコミュニティのテーマストアを無効にし、レジストリへのリクエストを止めます || テーマストア | `MULTICA_THEME_REGISTRY_URL` | 公式レジストリの fork など、別のレジストリの `index.json`。[テーマと外観](/themes#セルフホスト)を参照 |`GITHUB_APP_ID` と秘密鍵を設定しなくても、PR の関連付け・ミラー・マージ時のステータス変更は通常どおり動きますが、カードに CI とマージ可否のステータスが表示されず、「GitHub から選択」のリポジトリ入口も無効になります。diff --git a/apps/docs/content/docs/environment-variables.ko.mdx b/apps/docs/content/docs/environment-variables.ko.mdxindex f8848d693c..f857b918d8 100644--- a/apps/docs/content/docs/environment-variables.ko.mdx+++ b/apps/docs/content/docs/environment-variables.ko.mdx@@ -200,7 +200,6 @@ reverse proxy 뒤에 배포한다면 실제 proxy 네트워크를 입력해야| Plugins | `MULTICA_PLUGIN_SURFACE_ORIGIN` | 백엔드로 라우팅되는 쿠키 없는 전용 origin. app/API origin과 달라야 하며 `Host`를 보존해야 함 || Plugins | `MULTICA_PLUGIN_API_URL` | 버전을 포함한 Plugin Public API의 전체 Base URL(예: `https://plugin-api.example.com/v1`). 설정하지 않으면 `MULTICA_PUBLIC_URL` + `/v1` 사용 || Plugins | `MULTICA_PLUGIN_DIR` | 개발 중 로컬 plugin bundle을 게시하는 선택적 절대 디렉터리 |-| 테마 스토어 | `MULTICA_THEME_STORE` | 기본으로 켜져 있으며 공식 [multica-themes](https://github.com/multica-ai/multica-themes) 레지스트리를 읽습니다. `off`로 커뮤니티 테마 스토어를 끄고 레지스트리 요청을 모두 멈춥니다 || 테마 스토어 | `MULTICA_THEME_REGISTRY_URL` | 공식 레지스트리의 fork 등 다른 레지스트리의 `index.json`. [테마와 모양](/themes#셀프-호스팅)을 참고하세요 |`GITHUB_APP_ID`와 private key를 설정하지 않아도 PR 연결, 미러링, merge 시 상태 변경은 정상적으로 작동합니다. 다만 카드에 CI와 merge 가능 상태가 표시되지 않고 "GitHub에서 선택" 저장소 메뉴도 비활성화됩니다.diff --git a/apps/docs/content/docs/environment-variables.mdx b/apps/docs/content/docs/environment-variables.mdxindex 9b7864f532..7f8fe84eff 100644--- a/apps/docs/content/docs/environment-variables.mdx+++ b/apps/docs/content/docs/environment-variables.mdx@@ -200,7 +200,6 @@ The auth rate limits require `REDIS_URL`; without it, the startup log notes that| Plugins | `MULTICA_PLUGIN_SURFACE_ORIGIN` | Dedicated cookie-free browser origin routed to this backend; must differ from app/API origins and preserve `Host` || Plugins | `MULTICA_PLUGIN_API_URL` | Complete versioned Plugin Public API base URL, such as `https://plugin-api.example.com/v1`; falls back to `MULTICA_PUBLIC_URL` + `/v1` || Plugins | `MULTICA_PLUGIN_DIR` | Optional absolute directory used to publish local plugin bundles during development |-| Theme store | `MULTICA_THEME_STORE` | On by default, reading the official [multica-themes](https://github.com/multica-ai/multica-themes) registry; `off` turns the community theme store off and stops every registry request || Theme store | `MULTICA_THEME_REGISTRY_URL` | Another registry's `index.json`, such as a fork of the official one; see [Themes and appearance](/themes#self-hosting) |Without `GITHUB_APP_ID` and the private key, PRs still link, mirror, and move issues on merge normally, but cards show no CI or mergeability status, and the "pick from GitHub" repository entry is disabled.diff --git a/apps/docs/content/docs/environment-variables.zh-Hant.mdx b/apps/docs/content/docs/environment-variables.zh-Hant.mdxindex 935900f865..ef94144fd2 100644--- a/apps/docs/content/docs/environment-variables.zh-Hant.mdx+++ b/apps/docs/content/docs/environment-variables.zh-Hant.mdx@@ -196,7 +196,6 @@ MULTICA_PUBLIC_URL=https://api.multica.example.com| 外掛 | `MULTICA_PLUGIN_SURFACE_ORIGIN` | 路由到後端的獨立無 Cookie 瀏覽器 origin;必須不同於 app/API origin,並保留 `Host` || 外掛 | `MULTICA_PLUGIN_API_URL` | 帶版本的外掛 Public API 完整 Base URL,例如 `https://plugin-api.example.com/v1`;未設定時使用 `MULTICA_PUBLIC_URL` + `/v1` || 外掛 | `MULTICA_PLUGIN_DIR` | 開發時用於釋出本地外掛包的可選絕對目錄 |-| 主題商店 | `MULTICA_THEME_STORE` | 預設開啟,讀取官方 [multica-themes](https://github.com/multica-ai/multica-themes) 倉庫;設為 `off` 關閉社群主題商店,伺服器不再請求倉庫 || 主題商店 | `MULTICA_THEME_REGISTRY_URL` | 改用其他倉庫的 `index.json`,例如官方倉庫的 fork;見 [主題與外觀](/themes#自託管) |不配置 `GITHUB_APP_ID` 和私鑰時,PR 仍會正常關聯、映象,並在合併後改狀態,但卡片上不顯示 CI 與可合併狀態,"從 GitHub 選擇"倉庫入口也會禁用。diff --git a/apps/docs/content/docs/environment-variables.zh.mdx b/apps/docs/content/docs/environment-variables.zh.mdxindex 41a3c3e722..6525838efb 100644--- a/apps/docs/content/docs/environment-variables.zh.mdx+++ b/apps/docs/content/docs/environment-variables.zh.mdx@@ -200,7 +200,6 @@ MULTICA_PUBLIC_URL=https://api.multica.example.com| 插件 | `MULTICA_PLUGIN_SURFACE_ORIGIN` | 路由到后端的独立无 Cookie 浏览器 origin;必须不同于 app/API origin,并保留 `Host` || 插件 | `MULTICA_PLUGIN_API_URL` | 带版本的插件 Public API 完整 Base URL,例如 `https://plugin-api.example.com/v1`;未设置时使用 `MULTICA_PUBLIC_URL` + `/v1` || 插件 | `MULTICA_PLUGIN_DIR` | 开发时用于发布本地插件包的可选绝对目录 |-| 主题商店 | `MULTICA_THEME_STORE` | 默认开启,读取官方 [multica-themes](https://github.com/multica-ai/multica-themes) 仓库;设为 `off` 关闭社区主题商店,服务端不再请求仓库 || 主题商店 | `MULTICA_THEME_REGISTRY_URL` | 改用其他仓库的 `index.json`,比如官方仓库的 fork;见 [主题与外观](/themes#自托管) |不配置 `GITHUB_APP_ID` 和私钥时,PR 仍会正常关联、镜像,并在合并后改状态,但卡片上不显示 CI 与可合并状态,"从 GitHub 选择"仓库入口也会禁用。diff --git a/apps/docs/content/docs/themes.fr.mdx b/apps/docs/content/docs/themes.fr.mdxindex 72babd9d80..48c72ba625 100644--- a/apps/docs/content/docs/themes.fr.mdx+++ b/apps/docs/content/docs/themes.fr.mdx@@ -100,7 +100,6 @@ Un serveur auto-hébergé liste par défaut le registre officiel, [multica-ai/mu| Variable | Effet ||---|---|-| `MULTICA_THEME_STORE` | `off` désactive la boutique. **Gérer** ne liste alors que les thèmes installés sur chaque appareil et n'apparaît qu'une fois un thème installé ; le serveur n'envoie aucune requête au registre. || `MULTICA_THEME_REGISTRY_URL` | Fait lire à la boutique l'`index.json` d'un autre registre, par exemple un fork de l'officiel. |Voir [Variables d'environnement](/environment-variables) pour le reste de la configuration du serveur.diff --git a/apps/docs/content/docs/themes.ja.mdx b/apps/docs/content/docs/themes.ja.mdxindex 565e1c8ee6..333aab0b9f 100644--- a/apps/docs/content/docs/themes.ja.mdx+++ b/apps/docs/content/docs/themes.ja.mdx@@ -100,7 +100,6 @@ import { Step, Steps } from "fumadocs-ui/components/steps";| 変数 | 効果 ||---|---|-| `MULTICA_THEME_STORE` | `off` でストアを無効にします。**管理** には各デバイスにインストールしたテーマだけが表示され、テーマをインストールするまでボタンは表示されません。サーバーはレジストリにリクエストしません。 || `MULTICA_THEME_REGISTRY_URL` | 公式レジストリの fork など、別のレジストリの `index.json` をストアに読ませます。 |サーバーのほかの設定は[環境変数](/environment-variables)を参照してください。diff --git a/apps/docs/content/docs/themes.ko.mdx b/apps/docs/content/docs/themes.ko.mdxindex a811c55fd9..b30edddcc3 100644--- a/apps/docs/content/docs/themes.ko.mdx+++ b/apps/docs/content/docs/themes.ko.mdx@@ -100,7 +100,6 @@ import { Step, Steps } from "fumadocs-ui/components/steps";| 변수 | 효과 ||---|---|-| `MULTICA_THEME_STORE` | `off`로 스토어를 끕니다. 그러면 **관리**에는 각 기기에 설치한 테마만 표시되고, 테마를 설치해야 버튼이 나타납니다. 서버는 레지스트리에 요청하지 않습니다. || `MULTICA_THEME_REGISTRY_URL` | 공식 레지스트리의 fork 등 다른 레지스트리의 `index.json`을 스토어가 읽게 합니다. |서버의 다른 설정은 [환경 변수](/environment-variables)를 참고하세요.diff --git a/apps/docs/content/docs/themes.mdx b/apps/docs/content/docs/themes.mdxindex a67c1a95f4..958b320d36 100644--- a/apps/docs/content/docs/themes.mdx+++ b/apps/docs/content/docs/themes.mdx@@ -100,7 +100,6 @@ A self-hosted server lists the official registry, [multica-ai/multica-themes](ht| Variable | Effect ||---|---|-| `MULTICA_THEME_STORE` | `off` turns the store off. **Manage** then lists only the themes installed on each device, and appears once one is installed; the server makes no registry requests. || `MULTICA_THEME_REGISTRY_URL` | Points the store at another registry's `index.json`, for example a fork of the official one. |See [Environment variables](/environment-variables) for the rest of the server configuration.diff --git a/apps/docs/content/docs/themes.zh-Hant.mdx b/apps/docs/content/docs/themes.zh-Hant.mdxindex f9452fa862..a2c3993f31 100644--- a/apps/docs/content/docs/themes.zh-Hant.mdx+++ b/apps/docs/content/docs/themes.zh-Hant.mdx@@ -100,7 +100,6 @@ import { Step, Steps } from "fumadocs-ui/components/steps";| 變數 | 作用 ||---|---|-| `MULTICA_THEME_STORE` | 設為 `off` 關閉主題商店。之後 **管理** 只列出各裝置上已安裝的主題,裝了主題後才會出現;伺服器也不再請求倉庫。 || `MULTICA_THEME_REGISTRY_URL` | 讓主題商店改讀另一個倉庫的 `index.json`,比如官方倉庫的 fork。 |伺服器的其他設定見[環境變數](/environment-variables)。diff --git a/apps/docs/content/docs/themes.zh.mdx b/apps/docs/content/docs/themes.zh.mdxindex 1573544dbb..ab6a68b4f0 100644--- a/apps/docs/content/docs/themes.zh.mdx+++ b/apps/docs/content/docs/themes.zh.mdx@@ -100,7 +100,6 @@ import { Step, Steps } from "fumadocs-ui/components/steps";| 变量 | 作用 ||---|---|-| `MULTICA_THEME_STORE` | 设为 `off` 关闭主题商店。之后 **管理** 只列出各设备上已安装的主题,装了主题后才会出现;服务端也不再请求仓库。 || `MULTICA_THEME_REGISTRY_URL` | 让主题商店改读另一个仓库的 `index.json`,比如官方仓库的 fork。 |服务端的其他配置见[环境变量](/environment-variables)。diff --git a/deploy/helm/multica/templates/configmap.yaml b/deploy/helm/multica/templates/configmap.yamlindex 6988b381e9..1f93806eb8 100644--- a/deploy/helm/multica/templates/configmap.yaml+++ b/deploy/helm/multica/templates/configmap.yaml@@ -24,7 +24,6 @@ data:WORKSPACE_CREATION_ALLOWED_EMAILS: {{ .Values.backend.config.workspaceCreationAllowedEmails | quote }}DO_NOT_TRACK: {{ .Values.backend.config.doNotTrack | quote }}MULTICA_VCS_INTEGRATION_ENABLED: {{ .Values.backend.config.vcsIntegrationEnabled | quote }}- MULTICA_THEME_STORE: {{ .Values.backend.config.themeStore.mode | quote }}MULTICA_THEME_REGISTRY_URL: {{ .Values.backend.config.themeStore.registryUrl | quote }}MULTICA_CLOUD_URL: {{ .Values.backend.config.cloud.url | quote }}GOOGLE_CLIENT_ID: {{ .Values.backend.config.googleClientId | quote }}diff --git a/deploy/helm/multica/values.yaml b/deploy/helm/multica/values.yamlindex 2683bf005c..ca0fc258d9 100644--- a/deploy/helm/multica/values.yaml+++ b/deploy/helm/multica/values.yaml@@ -160,11 +160,10 @@ backend:# MULTICA_VCS_SECRET_KEY through existingSecret before connections work.# Set false to hide and reject the integration for this deployment.vcsIntegrationEnabled: true- # Community theme store (Settings → Appearance → Browse, beta). "off"- # hides it and stops every registry request; registryUrl points it at- # another registry's index.json. Empty keeps the official registry.+ # Community theme store (Settings → Appearance → Manage, beta). Always on;+ # registryUrl points it at another registry's index.json. Empty keeps the+ # official registry.themeStore:- mode: ""registryUrl: ""# Managed multica-cloud connection. Empty keeps self-hosting independent.# Fleet, Billing, entitlement policy and strict seat capacity share it.diff --git a/docker-compose.selfhost.yml b/docker-compose.selfhost.ymlindex b70a97d870..627f909d9a 100644--- a/docker-compose.selfhost.yml+++ b/docker-compose.selfhost.yml@@ -195,10 +195,8 @@ services:MULTICA_VCS_INTEGRATION_ENABLED: ${MULTICA_VCS_INTEGRATION_ENABLED:-true}# VCS integration at-rest encryption key for token-based providersMULTICA_VCS_SECRET_KEY: ${MULTICA_VCS_SECRET_KEY:-}- # Community theme store (Settings → Appearance → Browse). On by default;- # "off" hides it and stops every registry request. The registry URL- # points it at another registry's index.json.- MULTICA_THEME_STORE: ${MULTICA_THEME_STORE:-}+ # Community theme store (Settings → Appearance → Manage). Always on; the+ # registry URL points it at another registry's index.json.MULTICA_THEME_REGISTRY_URL: ${MULTICA_THEME_REGISTRY_URL:-}# WeCom smart-bot integration. MULTICA_WECOM_SECRET_KEY is the# opt-in: unset = integration disabled. It encrypts each installation'sdiff --git a/docs/theming.md b/docs/theming.mdindex 5f3f099263..03ab78d920 100644--- a/docs/theming.md+++ b/docs/theming.md@@ -385,9 +385,7 @@ Themes not yet installed are listed most downloaded first. A self-hostedserver counts its own downloads.A self-hosted server reads the official registry by default.-`MULTICA_THEME_STORE=off` turns the store off: **Manage** lists only the-themes on the device, and the server makes no registry requests. `MULTICA_THEME_REGISTRY_URL` points it at-another registry's `index.json`.+`MULTICA_THEME_REGISTRY_URL` points it at another registry's `index.json`.## Variable referencediff --git a/server/cmd/server/router.go b/server/cmd/server/router.goindex 5bfab42058..330a7265b2 100644--- a/server/cmd/server/router.go+++ b/server/cmd/server/router.go@@ -2855,16 +2855,10 @@ func optionalUUID(s string) pgtype.UUID {return util.MustParseUUID(s)}-// themeStoreFromEnv builds the community theme store. MULTICA_THEME_STORE=off-// (or false / 0) turns it off; MULTICA_THEME_REGISTRY_URL points it at-// another registry's index.json. A URL that does not parse turns the store-// off rather than failing the boot.+// themeStoreFromEnv builds the community theme store, which is always on.+// MULTICA_THEME_REGISTRY_URL points it at another registry's index.json. A+// URL that does not parse turns the store off rather than failing the boot.func themeStoreFromEnv() *themestore.Store {- switch strings.ToLower(strings.TrimSpace(os.Getenv("MULTICA_THEME_STORE"))) {- case "off", "false", "0", "disabled":- slog.Info("theme store: turned off by MULTICA_THEME_STORE")- return nil- }store, err := themestore.New(themestore.Config{IndexURL: strings.TrimSpace(os.Getenv("MULTICA_THEME_REGISTRY_URL")),})diff --git a/server/internal/handler/config.go b/server/internal/handler/config.goindex 186fa54cfb..16ae3c49e6 100644--- a/server/internal/handler/config.go+++ b/server/internal/handler/config.go@@ -54,9 +54,9 @@ type AppConfig struct {VCSIntegrationAvailable bool `json:"vcs_integration_available,omitempty"`// ThemeStoreEnabled tells the app it can browse and install community- // themes through /api/theme-store. Self-hosted operators turn it off with- // MULTICA_THEME_STORE=off. Omitted when off, and older servers omit it- // too, so the app shows no Browse entry and makes no store requests.+ // themes through /api/theme-store. Omitted when the store could not start+ // (an invalid MULTICA_THEME_REGISTRY_URL), and older servers omit it too,+ // so the app shows no Browse entry and makes no store requests.ThemeStoreEnabled bool `json:"theme_store_enabled,omitempty"`// PostHog public config for the frontend. The key is the same Projectdiff --git a/server/internal/handler/handler.go b/server/internal/handler/handler.goindex 60ebb5b588..b163ea0e66 100644--- a/server/internal/handler/handler.go+++ b/server/internal/handler/handler.go@@ -246,8 +246,9 @@ type Handler struct {LocalSkillListStore LocalSkillListStoreLocalSkillImportStore LocalSkillImportStoreFeatureFlags *featureflag.Service- // ThemeStore serves the community theme registry. Nil when the operator- // turned the store off: its routes return 404 and /api/config omits it.+ // ThemeStore serves the community theme registry. Nil only when+ // MULTICA_THEME_REGISTRY_URL is invalid: its routes return 404 and+ // /api/config omits it.ThemeStore *themestore.Store// IssueStatusCatalog reads the workspace status catalog. Defaults to// Queries; a test can substitute a counting wrapper to assert HOW MANY