Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
MUL-7713: docs(troubleshooting): explain macOS TCC re-prompt after CLI upgrade (#8843)
Danila Katalshov692dd019acbe
diff --git a/apps/docs/content/docs/troubleshooting.fr.mdx b/apps/docs/content/docs/troubleshooting.fr.mdxindex 994cc5d431..278beb5afd 100644--- a/apps/docs/content/docs/troubleshooting.fr.mdx+++ b/apps/docs/content/docs/troubleshooting.fr.mdx@@ -97,6 +97,20 @@ Un daemon en ligne ne signifie pas que l'outil lui-même fonctionne. Ouvrez l'enExécutez d'abord ce même outil directement dans un terminal sur l'ordinateur d'exécution. Si l'outil ne démarre pas seul, corrigez sa connexion ou sa configuration, puis relancez l'exécution depuis le journal d'exécution.+## Les exécutions se bloquent sur macOS après une mise à jour du CLI++Après la mise à jour du CLI `multica` installé avec Homebrew, par `brew upgrade`, `multica update`, **Mettre à jour** sur la page **Runtimes** ou la mise à jour automatique du daemon, une exécution qui lit `~/Desktop`, `~/Documents`, `~/Downloads`, iCloud Drive ou un autre dossier protégé peut cesser de progresser : le processus de l'agent n'utilise plus de CPU, et l'exécution ne se termine ni n'échoue.++Cela se produit lorsque macOS attribue les autorisations de confidentialité (TCC) au daemon lui-même, comme pour un daemon lancé par launchd (par exemple un LaunchAgent) : la boîte de dialogue en attente affiche `multica`, et chaque outil lancé par un agent utilise les autorisations du daemon. Le binaire du CLI Homebrew n'est pas signé avec une identité stable : macOS lie donc ces autorisations à ce build précis et à son chemin résolu, par exemple `/opt/homebrew/Cellar/multica/<version>/bin/multica`. Après une mise à jour, macOS considère le nouveau binaire comme une autre application et redemande l'autorisation. L'accès au fichier reste bloqué jusqu'à ce que quelqu'un réponde, et le daemon ne peut pas savoir qu'une demande est en attente.++Pour rétablir l'accès :++1. Sur ce Mac, répondez **Autoriser** à la boîte de dialogue « souhaite accéder » en attente. L'exécution bloquée reprend.+2. Pour un Mac sans surveillance, accordez l'accès complet au disque au nouveau binaire. Affichez son chemin avec `realpath "$(command -v multica)"`, puis dans **Réglages Système → Confidentialité et sécurité → Accès complet au disque**, supprimez l'ancienne entrée `multica` et ajoutez ce chemin (appuyez sur ⌘⇧G dans le sélecteur de fichiers pour le coller).+3. Redémarrez le daemon de la même façon que vous l'avez lancé : `multica daemon restart`, ou `launchctl kickstart -k gui/$(id -u)/<label>` pour un LaunchAgent.++Répétez ces étapes après chaque mise à jour du CLI. La mise à jour automatique n'est activée par défaut que pour les daemons connectés à Multica Cloud ; démarrez le daemon avec `--no-auto-update` pour que les mises à jour n'aient lieu que lorsque vous les lancez. Le CLI intégré à [Multica Desktop](/desktop-app) est signé avec un Developer ID, ses autorisations survivent donc aux mises à jour.+## Les mises à jour en temps réel ne fonctionnent plusSi les exécutions se déroulent toujours mais que les commentaires et les changements de statut n'apparaissent plus en direct, c'est généralement que le WebSocket n'est pas connecté.diff --git a/apps/docs/content/docs/troubleshooting.ja.mdx b/apps/docs/content/docs/troubleshooting.ja.mdxindex f0bda2c4f8..9ef86fb432 100644--- a/apps/docs/content/docs/troubleshooting.ja.mdx+++ b/apps/docs/content/docs/troubleshooting.ja.mdx@@ -97,6 +97,20 @@ multica issue runs <issue-id>まず実行用コンピューターのターミナルで、同じツールを直接実行してください。ツール単体でも起動できない場合は、先にツールのログインや設定を修復してから、実行ログから実行を再試行します。+## CLI のアップグレード後に macOS で実行が止まる++Homebrew でインストールした `multica` CLI が `brew upgrade`、`multica update`、**ランタイム**ページの**更新**、またはデーモンの自動更新でアップグレードされた後、`~/Desktop`、`~/Documents`、`~/Downloads`、iCloud Drive などの保護されたフォルダーを読み取る実行が進まなくなることがあります。エージェントのプロセスは CPU を使わず、実行は完了も失敗もしません。++これは macOS がプライバシー権限(TCC)をデーモン自体に帰属させる場合に起こります。launchd から起動したデーモン(LaunchAgent など)がこれに当たり、待機中のダイアログには `multica` と表示され、エージェントが起動するすべてのツールはデーモンの許可を使います。Homebrew 版 CLI のバイナリは固定の ID で署名されていないため、macOS は許可をそのビルドと解決後のパス(例: `/opt/homebrew/Cellar/multica/<version>/bin/multica`)に結び付けます。アップグレード後、macOS は新しいバイナリを別のアプリとして扱い、再び許可を求めます。誰かが応答するまでファイルアクセスはブロックされ、デーモンは許可ダイアログが待機中であることを検知できません。++アクセスを回復するには:++1. その Mac で待機中の「アクセスしようとしています」ダイアログに**許可**で応答します。止まっていた実行が再開します。+2. 無人で動かす Mac では、新しいバイナリにフルディスクアクセスを付与します。`realpath "$(command -v multica)"` でパスを表示し、**システム設定 → プライバシーとセキュリティ → フルディスクアクセス**で古い `multica` の項目を削除してそのパスを追加します(ファイル選択画面で ⌘⇧G を押すとパスを貼り付けられます)。+3. デーモンを起動したときと同じ方法で再起動します。通常は `multica daemon restart`、LaunchAgent の場合は `launchctl kickstart -k gui/$(id -u)/<label>` です。++CLI をアップグレードするたびにこの手順を繰り返してください。自動更新がデフォルトで有効なのは Multica Cloud に接続したデーモンだけです。`--no-auto-update` を付けてデーモンを起動すると、手動で実行したときだけアップグレードされます。[Multica Desktop](/desktop-app) に同梱の CLI は Developer ID で署名されているため、アップグレード後も許可が維持されます。+## リアルタイム更新が届かない実行は進むのに、コメントやステータスがリアルタイムに反映されない場合は、たいてい WebSocket がつながっていません。diff --git a/apps/docs/content/docs/troubleshooting.ko.mdx b/apps/docs/content/docs/troubleshooting.ko.mdxindex a860919bd0..2bba1eaa44 100644--- a/apps/docs/content/docs/troubleshooting.ko.mdx+++ b/apps/docs/content/docs/troubleshooting.ko.mdx@@ -97,6 +97,20 @@ multica issue runs <issue-id>먼저 실행 컴퓨터의 터미널에서 같은 도구를 직접 실행하세요. 도구 자체도 시작할 수 없다면 도구 로그인 또는 설정을 먼저 수정하고 실행 로그에서 실행을 재시도합니다.+## CLI 업그레이드 후 macOS에서 실행이 멈춤++Homebrew로 설치한 `multica` CLI가 `brew upgrade`, `multica update`, **런타임** 페이지의 **업데이트** 또는 데몬 자동 업데이트로 업그레이드된 뒤, `~/Desktop`, `~/Documents`, `~/Downloads`, iCloud Drive 등 보호된 폴더를 읽는 실행이 더 이상 진행되지 않을 수 있습니다. 에이전트 프로세스는 CPU를 사용하지 않고, 실행은 완료되지도 실패하지도 않습니다.++이 문제는 macOS가 개인정보 보호 권한(TCC)을 데몬 자체에 귀속시킬 때 발생합니다. launchd로 시작한 데몬(예: LaunchAgent)이 여기에 해당하며, 대기 중인 대화상자에는 `multica`가 표시되고 에이전트가 시작하는 모든 도구는 데몬의 권한을 사용합니다. Homebrew CLI 바이너리는 고정된 ID로 서명되어 있지 않아 macOS는 권한을 해당 빌드와 해석된 경로(예: `/opt/homebrew/Cellar/multica/<version>/bin/multica`)에 묶습니다. 업그레이드 후 macOS는 새 바이너리를 다른 앱으로 보고 다시 권한을 요청합니다. 누군가 응답할 때까지 파일 접근이 차단되며, 데몬은 권한 요청이 대기 중이라는 사실을 알 수 없습니다.++접근을 복구하려면:++1. 해당 Mac에서 대기 중인 "접근하려고 합니다" 대화상자에 **허용**으로 응답합니다. 멈춰 있던 실행이 계속됩니다.+2. 무인으로 운영하는 Mac에서는 새 바이너리에 전체 디스크 접근 권한을 부여합니다. `realpath "$(command -v multica)"`로 경로를 출력한 뒤 **시스템 설정 → 개인정보 보호 및 보안 → 전체 디스크 접근 권한**에서 이전 `multica` 항목을 제거하고 해당 경로를 추가합니다(파일 선택 창에서 ⌘⇧G를 눌러 경로를 붙여넣을 수 있습니다).+3. 데몬을 시작했던 방식 그대로 재시작합니다. 일반적으로는 `multica daemon restart`, LaunchAgent라면 `launchctl kickstart -k gui/$(id -u)/<label>`을 사용합니다.++CLI를 업그레이드할 때마다 이 과정을 반복하세요. 자동 업데이트는 Multica Cloud에 연결된 데몬에서만 기본으로 켜져 있습니다. `--no-auto-update`로 데몬을 시작하면 직접 실행할 때만 업그레이드됩니다. [Multica Desktop](/desktop-app)에 번들된 CLI는 Developer ID로 서명되어 있어 업그레이드 후에도 권한이 유지됩니다.+## 실시간 업데이트가 작동하지 않음실행은 진행되지만 댓글과 상태가 실시간으로 나타나지 않는다면 일반적으로 WebSocket이 연결되지 않은 것입니다.diff --git a/apps/docs/content/docs/troubleshooting.mdx b/apps/docs/content/docs/troubleshooting.mdxindex a03f3b4fe1..3f5c2c8860 100644--- a/apps/docs/content/docs/troubleshooting.mdx+++ b/apps/docs/content/docs/troubleshooting.mdx@@ -97,6 +97,20 @@ An online daemon does not mean the tool itself works. Open the run's detailed reRun the same tool directly in a terminal on the executing computer first. If the tool cannot start on its own, fix its sign-in or configuration, then retry the run from the execution log.+## Runs hang on macOS after a CLI upgrade++After the Homebrew `multica` CLI is upgraded, by `brew upgrade`, `multica update`, **Update** on the Runtimes page, or the daemon's auto-update, a run that reads `~/Desktop`, `~/Documents`, `~/Downloads`, iCloud Drive, or another protected folder can stop making progress: the agent's process uses no CPU, and the run neither finishes nor fails.++This happens when macOS attributes privacy permissions (TCC) to the daemon itself, as it does for a daemon started by launchd (for example a LaunchAgent): the pending dialog names `multica`, and every tool an agent starts uses the daemon's grants. The Homebrew CLI binary is not signed with a stable identity, so macOS ties those grants to that exact build at its resolved path, such as `/opt/homebrew/Cellar/multica/<version>/bin/multica`. After an upgrade, macOS treats the new binary as a different app and asks again. The file access blocks until someone answers the prompt, and the daemon cannot tell that a prompt is pending.++To restore access:++1. On that Mac, answer the pending "would like to access" dialog with **Allow**. The stuck run continues.+2. For a Mac that runs unattended, grant Full Disk Access to the new binary. Print its path with `realpath "$(command -v multica)"`, then under **System Settings → Privacy & Security → Full Disk Access** remove the stale `multica` entry and add that path (press ⌘⇧G in the file picker to paste it).+3. Restart the daemon the same way you started it: `multica daemon restart`, or `launchctl kickstart -k gui/$(id -u)/<label>` for a LaunchAgent.++Repeat this after every CLI upgrade. Auto-update is on by default only for daemons connected to Multica Cloud; start the daemon with `--no-auto-update` so upgrades happen only when you run them. The CLI bundled with [Multica Desktop](/desktop-app) is signed with a Developer ID, so its grants survive upgrades.+## Realtime updates stop workingIf runs still execute but comments and status changes no longer appear live, the WebSocket is usually not connected.diff --git a/apps/docs/content/docs/troubleshooting.zh.mdx b/apps/docs/content/docs/troubleshooting.zh.mdxindex a9206ca6aa..54f7a9af0c 100644--- a/apps/docs/content/docs/troubleshooting.zh.mdx+++ b/apps/docs/content/docs/troubleshooting.zh.mdx@@ -97,6 +97,20 @@ multica issue runs <issue-id>先在执行电脑的终端中直接运行同一款工具。工具自身也无法开始时,先修复工具登录或配置,再从执行日志重试运行。+## 升级 CLI 后 macOS 上的运行卡住++通过 Homebrew 安装的 `multica` CLI 升级后(无论是 `brew upgrade`、`multica update`、**运行时**页面上的**更新**,还是守护进程自动更新),读取 `~/Desktop`、`~/Documents`、`~/Downloads`、iCloud 云盘或其他受保护文件夹的运行可能停滞:智能体进程不占用 CPU,运行既不结束也不失败。++这种情况出现在 macOS 把隐私权限(TCC)记在守护进程本身名下时,由 launchd 启动的守护进程(例如 LaunchAgent)就是如此:等待中的弹窗显示的是 `multica`,智能体启动的所有工具都沿用守护进程的授权。Homebrew 版 CLI 没有使用固定身份签名,macOS 只能把授权绑定到这一次构建及其解析后的路径,例如 `/opt/homebrew/Cellar/multica/<version>/bin/multica`。升级后,macOS 把新二进制当作另一个应用,重新请求授权;在有人处理之前文件访问会一直阻塞,守护进程也无法感知有授权弹窗在等待。++恢复访问:++1. 在这台 Mac 上找到等待中的"想要访问"弹窗,点击**允许**,卡住的运行会继续。+2. 无人值守的 Mac 请给新二进制授予完全磁盘访问权限。用 `realpath "$(command -v multica)"` 打印路径,然后在**系统设置 → 隐私与安全性 → 完全磁盘访问权限**中删除旧的 `multica` 条目并添加该路径(在文件选择器中按 ⌘⇧G 粘贴路径)。+3. 按启动守护进程时的方式重启它:`multica daemon restart`;LaunchAgent 则用 `launchctl kickstart -k gui/$(id -u)/<label>`。++每次升级 CLI 后都需要重复这些步骤。只有连接 Multica Cloud 的守护进程默认开启自动更新;用 `--no-auto-update` 启动守护进程后,只在你手动升级时更新。[桌面应用](/desktop-app)内置的 CLI 使用 Developer ID 签名,授权在升级后依然有效。+## 实时更新失效运行仍能执行、但评论和状态不能实时出现,通常是 WebSocket 没有连通。