#82 Codex : programme codex-acp (dans le PATH du kit v3), vérifié sur le Mac
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fe37b10 parent: 5f2aced modified
.memory/history.md +1 -0 | @@ -225,3 +225,4 @@ | ||
| 225 | 225 | - **2026-11-10 — #84 fix** (owner: "propose only gemini, --acp goes in the arguments"): `sbxPrograms.gemini = 'gemini'`, `sbxArguments` (gemini: `--acp`); choosing an sbx agent's program fills Arguments unless other arguments were typed. |
| 226 | 226 | - **2026-11-10 — #82 fix**: Claude and Gemini work on the Mac; Codex failed (`cannot mix v3 kits with v1/v2 kits`: sbx's `codex` agent is now the v3 kit docker.io/sbx/codex). Kit changed to the v3 `docker.io/sbx/codex-acp:latest` everywhere (snippet, note, guides); the error is documented in the Codex guide. |
| 227 | 227 | - **2026-11-10 — #82 wrong sandbox**: the Codex entry made by the assistant pointed at claude-acp (Claude's sbxenv.yaml was read; no code path keeps old values, the form restarts empty each time — cause on the Mac not established: dropped/chosen file?). Guard: `SbxEnv.Agent`/`SandboxEnv.agent`, `sandboxMismatch` blocks adding Claude/Codex/Gemini with another agent's sbxenv.yaml. |
| 228 | +- **2026-11-10 — #82 verified on the Mac**: Codex works with `codex-acp` alone (v3 kit puts it in the PATH; `/home/agent/.local/bin/codex-acp` was the v2 launcher). Assistant, snippet README, guides updated. Claude, Codex and Gemini in sbx all work on the Mac. | |
| @@ -225,3 +225,4 @@ | |||
| 225 | - **2026-11-10 — #84 fix** (owner: "propose only gemini, --acp goes in the arguments"): `sbxPrograms.gemini = 'gemini'`, `sbxArguments` (gemini: `--acp`); choosing an sbx agent's program fills Arguments unless other arguments were typed. | 225 | - **2026-11-10 — #84 fix** (owner: "propose only gemini, --acp goes in the arguments"): `sbxPrograms.gemini = 'gemini'`, `sbxArguments` (gemini: `--acp`); choosing an sbx agent's program fills Arguments unless other arguments were typed. |
| 226 | - **2026-11-10 — #82 fix**: Claude and Gemini work on the Mac; Codex failed (`cannot mix v3 kits with v1/v2 kits`: sbx's `codex` agent is now the v3 kit docker.io/sbx/codex). Kit changed to the v3 `docker.io/sbx/codex-acp:latest` everywhere (snippet, note, guides); the error is documented in the Codex guide. | 226 | - **2026-11-10 — #82 fix**: Claude and Gemini work on the Mac; Codex failed (`cannot mix v3 kits with v1/v2 kits`: sbx's `codex` agent is now the v3 kit docker.io/sbx/codex). Kit changed to the v3 `docker.io/sbx/codex-acp:latest` everywhere (snippet, note, guides); the error is documented in the Codex guide. |
| 227 | - **2026-11-10 — #82 wrong sandbox**: the Codex entry made by the assistant pointed at claude-acp (Claude's sbxenv.yaml was read; no code path keeps old values, the form restarts empty each time — cause on the Mac not established: dropped/chosen file?). Guard: `SbxEnv.Agent`/`SandboxEnv.agent`, `sandboxMismatch` blocks adding Claude/Codex/Gemini with another agent's sbxenv.yaml. | 227 | - **2026-11-10 — #82 wrong sandbox**: the Codex entry made by the assistant pointed at claude-acp (Claude's sbxenv.yaml was read; no code path keeps old values, the form restarts empty each time — cause on the Mac not established: dropped/chosen file?). Guard: `SbxEnv.Agent`/`SandboxEnv.agent`, `sandboxMismatch` blocks adding Claude/Codex/Gemini with another agent's sbxenv.yaml. |
| 228 | +- **2026-11-10 — #82 verified on the Mac**: Codex works with `codex-acp` alone (v3 kit puts it in the PATH; `/home/agent/.local/bin/codex-acp` was the v2 launcher). Assistant, snippet README, guides updated. Claude, Codex and Gemini in sbx all work on the Mac. | ||
modified
.tickets/issues/0082-simplifier-l-ajout-d-une-sbx-avec-codex-acp.yaml +11 -2 | @@ -6,7 +6,7 @@ author: | ||
| 6 | 6 | name: k33g |
| 7 | 7 | email: ph.charriere@gmail.com |
| 8 | 8 | createdAt: 2026-11-09T06:11:54.000Z |
| 9 | -updatedAt: 2026-11-10T05:21:14.000Z | |
| 9 | +updatedAt: 2026-11-10T05:27:33.000Z | |
| 10 | 10 | labels: |
| 11 | 11 | - kind::feature |
| 12 | 12 | - area::config |
| @@ -42,7 +42,7 @@ body: | | ||
| 42 | 42 | - Tests (formulaire, YAML produit) ; textes EN + FR ; guide « ajouter un agent » et « agent dans une sandbox » EN + FR. |
| 43 | 43 | tasks: |
| 44 | 44 | - id: 1 |
| 45 | - title: "Proposer /home/agent/.local/bin/codex-acp dans la liste des programmes en mode sbx (codex-acp seul reconnu aussi)" | |
| 45 | + title: "Proposer codex-acp dans la liste des programmes en mode sbx" | |
| 46 | 46 | state: closed |
| 47 | 47 | priority: high |
| 48 | 48 | author: |
| @@ -114,3 +114,12 @@ comments: | ||
| 114 | 114 | Garde-fou : `ReadSandboxEnv` renvoie aussi l'`agent:` du fichier ; l'assistant refuse d'ajouter l'agent quand il ne |
| 115 | 115 | correspond pas au programme (`sandboxMismatch` dans [agentform.ts](frontend/src/lib/agentform.ts)) et le dit sous le programme. |
| 116 | 116 | Guide Codex EN + FR : l'erreur et quoi vérifier. |
| 117 | + - id: 4 | |
| 118 | + author: | |
| 119 | + name: k33g | |
| 120 | + email: ph.charriere@gmail.com | |
| 121 | + createdAt: 2026-11-10T05:27:33.000Z | |
| 122 | + body: | | |
| 123 | + Vérifié sur le Mac : Codex démarre et répond avec `codex-acp` seul. Le kit v3 `docker.io/sbx/codex-acp` (image Docker Hardened Images) | |
| 124 | + met l'adaptateur dans le `PATH` ; `/home/agent/.local/bin/codex-acp` était le script de l'ancien kit v2. | |
| 125 | + L'assistant propose `codex-acp` (l'ancien chemin reste reconnu) ; exemple, guides EN + FR et « Ajouter un agent » mis à jour. | |
| @@ -6,7 +6,7 @@ author: | |||
| 6 | name: k33g | 6 | name: k33g |
| 7 | email: ph.charriere@gmail.com | 7 | email: ph.charriere@gmail.com |
| 8 | createdAt: 2026-11-09T06:11:54.000Z | 8 | createdAt: 2026-11-09T06:11:54.000Z |
| 9 | -updatedAt: 2026-11-10T05:21:14.000Z | 9 | +updatedAt: 2026-11-10T05:27:33.000Z |
| 10 | labels: | 10 | labels: |
| 11 | - kind::feature | 11 | - kind::feature |
| 12 | - area::config | 12 | - area::config |
| @@ -42,7 +42,7 @@ body: | | |||
| 42 | - Tests (formulaire, YAML produit) ; textes EN + FR ; guide « ajouter un agent » et « agent dans une sandbox » EN + FR. | 42 | - Tests (formulaire, YAML produit) ; textes EN + FR ; guide « ajouter un agent » et « agent dans une sandbox » EN + FR. |
| 43 | tasks: | 43 | tasks: |
| 44 | - id: 1 | 44 | - id: 1 |
| 45 | - title: "Proposer /home/agent/.local/bin/codex-acp dans la liste des programmes en mode sbx (codex-acp seul reconnu aussi)" | 45 | + title: "Proposer codex-acp dans la liste des programmes en mode sbx" |
| 46 | state: closed | 46 | state: closed |
| 47 | priority: high | 47 | priority: high |
| 48 | author: | 48 | author: |
| @@ -114,3 +114,12 @@ comments: | |||
| 114 | Garde-fou : `ReadSandboxEnv` renvoie aussi l'`agent:` du fichier ; l'assistant refuse d'ajouter l'agent quand il ne | 114 | Garde-fou : `ReadSandboxEnv` renvoie aussi l'`agent:` du fichier ; l'assistant refuse d'ajouter l'agent quand il ne |
| 115 | correspond pas au programme (`sandboxMismatch` dans [agentform.ts](frontend/src/lib/agentform.ts)) et le dit sous le programme. | 115 | correspond pas au programme (`sandboxMismatch` dans [agentform.ts](frontend/src/lib/agentform.ts)) et le dit sous le programme. |
| 116 | Guide Codex EN + FR : l'erreur et quoi vérifier. | 116 | Guide Codex EN + FR : l'erreur et quoi vérifier. |
| 117 | + - id: 4 | ||
| 118 | + author: | ||
| 119 | + name: k33g | ||
| 120 | + email: ph.charriere@gmail.com | ||
| 121 | + createdAt: 2026-11-10T05:27:33.000Z | ||
| 122 | + body: | | ||
| 123 | + Vérifié sur le Mac : Codex démarre et répond avec `codex-acp` seul. Le kit v3 `docker.io/sbx/codex-acp` (image Docker Hardened Images) | ||
| 124 | + met l'adaptateur dans le `PATH` ; `/home/agent/.local/bin/codex-acp` était le script de l'ancien kit v2. | ||
| 125 | + L'assistant propose `codex-acp` (l'ancien chemin reste reconnu) ; exemple, guides EN + FR et « Ajouter un agent » mis à jour. | ||
modified
docs/en/how-to/add-a-codex-agent-in-a-sandbox.md +5 -4 | @@ -6,14 +6,14 @@ A ready-made example is in the repository: [`agents/snippets/codex-acp`](../../. | ||
| 6 | 6 | |
| 7 | 7 | ## A kit provided by a third party |
| 8 | 8 | |
| 9 | -The sandbox is built from the `docker.io/sbx/codex-acp` kit. This kit is provided by a third party, **not by Sidekicks**: what it contains (Codex, `codex-acp`), its updates (the sandbox pulls `latest` each time it is created) and whether it stays available depend on that third party. Sidekicks only creates the sandbox from the `sbxenv.yaml` that names it and starts `/home/agent/.local/bin/codex-acp` inside it. If the kit changes or disappears, the sandbox may no longer be created, or Codex may no longer start: the **Log** tab then shows what sbx said. | |
| 9 | +The sandbox is built from the `docker.io/sbx/codex-acp` kit. This kit is provided by a third party, **not by Sidekicks**: what it contains (Codex, `codex-acp`), its updates (the sandbox pulls `latest` each time it is created) and whether it stays available depend on that third party. Sidekicks only creates the sandbox from the `sbxenv.yaml` that names it and starts `codex-acp` inside it. If the kit changes or disappears, the sandbox may no longer be created, or Codex may no longer start: the **Log** tab then shows what sbx said. | |
| 10 | 10 | |
| 11 | 11 | ## What you need |
| 12 | 12 | |
| 13 | 13 | | | Role | |
| 14 | 14 | | --- | --- | |
| 15 | 15 | | A folder for the agent, e.g. `/Users/me/agents/codex-acp` | holds the sandbox's `sbxenv.yaml` and the `workspace/` folder Codex works in. | |
| 16 | -| The `docker.io/sbx/codex-acp` kit | the sandbox's image, with Codex installed and `codex-acp` in `/home/agent/.local/bin` (outside the `PATH`: that is why the program is written with its folder). | | |
| 16 | +| The `docker.io/sbx/codex-acp` kit | the sandbox's image, with Codex and `codex-acp` installed. | | |
| 17 | 17 | | Your OpenAI credentials, stored in sbx | sbx adds them to Codex's requests to OpenAI: they are written neither in the sandbox nor in Sidekicks' configuration. | |
| 18 | 18 | |
| 19 | 19 | ## With the assistant |
| @@ -29,7 +29,7 @@ The sandbox is built from the `docker.io/sbx/codex-acp` kit. This kit is provide | ||
| 29 | 29 | If you store them after the sandbox exists, **🗑 Remove the sandbox** in the agent's header, then start the agent again. |
| 30 | 30 | 3. In the **Agents** panel, click **+ Add an agent**. Fill in **Name shown** (`Codex`) and, if you like, an icon (📗). |
| 31 | 31 | 4. **Where does it run?** Choose **In an sbx sandbox**, then drop the `sbxenv.yaml` on **Recreate the sandbox when it is gone (optional)** (or click **Choose an sbxenv.yaml…**). The sandbox, the agent's folder (`…/workspace`) and the `sbx env` commands are filled in from it. |
| 32 | -5. **Program**: choose `/home/agent/.local/bin/codex-acp` in the list (it is offered in an sbx sandbox only; `codex-acp` alone is recognised too, if the kit puts it in the `PATH`). Leave **Arguments** empty. | |
| 32 | +5. **Program**: choose `codex-acp` in the list (it is offered in an sbx sandbox only). Leave **Arguments** empty. | |
| 33 | 33 | 6. Click **Add the agent**, then start Codex from the **Agents** panel (▶), or write to it. The first time, the **Log** tab shows `sandbox codex-acp not found: creating it`, then the kit being pulled — this can take a minute or two. |
| 34 | 34 | |
| 35 | 35 | ## By hand |
| @@ -66,7 +66,7 @@ And the agent's entry, under `agents:` in **Settings**: | ||
| 66 | 66 | title: Codex |
| 67 | 67 | icon: "📗" |
| 68 | 68 | command: sbx |
| 69 | - args: [exec, -i, codex-acp, /home/agent/.local/bin/codex-acp] | |
| 69 | + args: [exec, -i, codex-acp, codex-acp] | |
| 70 | 70 | workspace: /Users/me/agents/codex-acp/workspace |
| 71 | 71 | runtime: |
| 72 | 72 | type: sbx |
| @@ -86,6 +86,7 @@ And the agent's entry, under `agents:` in **Settings**: | ||
| 86 | 86 | - When Codex asks for permission to change a file or run a command, Sidekicks shows the request and waits for your answer. |
| 87 | 87 | - **`cannot mix v3 kits with v1/v2 kits in one sandbox`** when the sandbox is created: the `sbxenv.yaml` names the older `docker.io/sbx/codex-acp-kit`. sbx now gives the `codex` agent as a kit of the new format (v3), which only composes with v3 kits: name `docker.io/sbx/codex-acp:latest` instead, then start the agent again. |
| 88 | 88 | - **`executable file … codex-acp not found`** (exit status 127): the agent runs in another sandbox — the log then shows another sandbox being started, such as `claude-acp`. The assistant now refuses an `sbxenv.yaml` whose `agent:` is not the program's; in **Settings**, check that the sandbox name is `codex-acp` in `args`, `runtime.sandbox` and `lifecycle`, and that `workspace` and `lifecycle.folder` are Codex's folders. |
| 89 | +- **``executable file `/home/agent/.local/bin/codex-acp` not found``** with the right sandbox: the agent's entry was made for the older `docker.io/sbx/codex-acp-kit`. The v3 kit puts `codex-acp` in the `PATH`: write `codex-acp` alone as the last argument. | |
| 89 | 90 | - **An authentication error** in the **Log** tab: the credentials are not stored in sbx, or were stored after the sandbox was created. Store them again, then **🗑 Remove the sandbox** and start the agent. |
| 90 | 91 | |
| 91 | 92 | ## See also |
| @@ -6,14 +6,14 @@ A ready-made example is in the repository: [`agents/snippets/codex-acp`](../../. | |||
| 6 | 6 | ||
| 7 | ## A kit provided by a third party | 7 | ## A kit provided by a third party |
| 8 | 8 | ||
| 9 | -The sandbox is built from the `docker.io/sbx/codex-acp` kit. This kit is provided by a third party, **not by Sidekicks**: what it contains (Codex, `codex-acp`), its updates (the sandbox pulls `latest` each time it is created) and whether it stays available depend on that third party. Sidekicks only creates the sandbox from the `sbxenv.yaml` that names it and starts `/home/agent/.local/bin/codex-acp` inside it. If the kit changes or disappears, the sandbox may no longer be created, or Codex may no longer start: the **Log** tab then shows what sbx said. | 9 | +The sandbox is built from the `docker.io/sbx/codex-acp` kit. This kit is provided by a third party, **not by Sidekicks**: what it contains (Codex, `codex-acp`), its updates (the sandbox pulls `latest` each time it is created) and whether it stays available depend on that third party. Sidekicks only creates the sandbox from the `sbxenv.yaml` that names it and starts `codex-acp` inside it. If the kit changes or disappears, the sandbox may no longer be created, or Codex may no longer start: the **Log** tab then shows what sbx said. |
| 10 | 10 | ||
| 11 | ## What you need | 11 | ## What you need |
| 12 | 12 | ||
| 13 | | | Role | | 13 | | | Role | |
| 14 | | --- | --- | | 14 | | --- | --- | |
| 15 | | A folder for the agent, e.g. `/Users/me/agents/codex-acp` | holds the sandbox's `sbxenv.yaml` and the `workspace/` folder Codex works in. | | 15 | | A folder for the agent, e.g. `/Users/me/agents/codex-acp` | holds the sandbox's `sbxenv.yaml` and the `workspace/` folder Codex works in. | |
| 16 | -| The `docker.io/sbx/codex-acp` kit | the sandbox's image, with Codex installed and `codex-acp` in `/home/agent/.local/bin` (outside the `PATH`: that is why the program is written with its folder). | | 16 | +| The `docker.io/sbx/codex-acp` kit | the sandbox's image, with Codex and `codex-acp` installed. | |
| 17 | | Your OpenAI credentials, stored in sbx | sbx adds them to Codex's requests to OpenAI: they are written neither in the sandbox nor in Sidekicks' configuration. | | 17 | | Your OpenAI credentials, stored in sbx | sbx adds them to Codex's requests to OpenAI: they are written neither in the sandbox nor in Sidekicks' configuration. | |
| 18 | 18 | ||
| 19 | ## With the assistant | 19 | ## With the assistant |
| @@ -29,7 +29,7 @@ The sandbox is built from the `docker.io/sbx/codex-acp` kit. This kit is provide | |||
| 29 | If you store them after the sandbox exists, **🗑 Remove the sandbox** in the agent's header, then start the agent again. | 29 | If you store them after the sandbox exists, **🗑 Remove the sandbox** in the agent's header, then start the agent again. |
| 30 | 3. In the **Agents** panel, click **+ Add an agent**. Fill in **Name shown** (`Codex`) and, if you like, an icon (📗). | 30 | 3. In the **Agents** panel, click **+ Add an agent**. Fill in **Name shown** (`Codex`) and, if you like, an icon (📗). |
| 31 | 4. **Where does it run?** Choose **In an sbx sandbox**, then drop the `sbxenv.yaml` on **Recreate the sandbox when it is gone (optional)** (or click **Choose an sbxenv.yaml…**). The sandbox, the agent's folder (`…/workspace`) and the `sbx env` commands are filled in from it. | 31 | 4. **Where does it run?** Choose **In an sbx sandbox**, then drop the `sbxenv.yaml` on **Recreate the sandbox when it is gone (optional)** (or click **Choose an sbxenv.yaml…**). The sandbox, the agent's folder (`…/workspace`) and the `sbx env` commands are filled in from it. |
| 32 | -5. **Program**: choose `/home/agent/.local/bin/codex-acp` in the list (it is offered in an sbx sandbox only; `codex-acp` alone is recognised too, if the kit puts it in the `PATH`). Leave **Arguments** empty. | 32 | +5. **Program**: choose `codex-acp` in the list (it is offered in an sbx sandbox only). Leave **Arguments** empty. |
| 33 | 6. Click **Add the agent**, then start Codex from the **Agents** panel (▶), or write to it. The first time, the **Log** tab shows `sandbox codex-acp not found: creating it`, then the kit being pulled — this can take a minute or two. | 33 | 6. Click **Add the agent**, then start Codex from the **Agents** panel (▶), or write to it. The first time, the **Log** tab shows `sandbox codex-acp not found: creating it`, then the kit being pulled — this can take a minute or two. |
| 34 | 34 | ||
| 35 | ## By hand | 35 | ## By hand |
| @@ -66,7 +66,7 @@ And the agent's entry, under `agents:` in **Settings**: | |||
| 66 | title: Codex | 66 | title: Codex |
| 67 | icon: "📗" | 67 | icon: "📗" |
| 68 | command: sbx | 68 | command: sbx |
| 69 | - args: [exec, -i, codex-acp, /home/agent/.local/bin/codex-acp] | 69 | + args: [exec, -i, codex-acp, codex-acp] |
| 70 | workspace: /Users/me/agents/codex-acp/workspace | 70 | workspace: /Users/me/agents/codex-acp/workspace |
| 71 | runtime: | 71 | runtime: |
| 72 | type: sbx | 72 | type: sbx |
| @@ -86,6 +86,7 @@ And the agent's entry, under `agents:` in **Settings**: | |||
| 86 | - When Codex asks for permission to change a file or run a command, Sidekicks shows the request and waits for your answer. | 86 | - When Codex asks for permission to change a file or run a command, Sidekicks shows the request and waits for your answer. |
| 87 | - **`cannot mix v3 kits with v1/v2 kits in one sandbox`** when the sandbox is created: the `sbxenv.yaml` names the older `docker.io/sbx/codex-acp-kit`. sbx now gives the `codex` agent as a kit of the new format (v3), which only composes with v3 kits: name `docker.io/sbx/codex-acp:latest` instead, then start the agent again. | 87 | - **`cannot mix v3 kits with v1/v2 kits in one sandbox`** when the sandbox is created: the `sbxenv.yaml` names the older `docker.io/sbx/codex-acp-kit`. sbx now gives the `codex` agent as a kit of the new format (v3), which only composes with v3 kits: name `docker.io/sbx/codex-acp:latest` instead, then start the agent again. |
| 88 | - **`executable file … codex-acp not found`** (exit status 127): the agent runs in another sandbox — the log then shows another sandbox being started, such as `claude-acp`. The assistant now refuses an `sbxenv.yaml` whose `agent:` is not the program's; in **Settings**, check that the sandbox name is `codex-acp` in `args`, `runtime.sandbox` and `lifecycle`, and that `workspace` and `lifecycle.folder` are Codex's folders. | 88 | - **`executable file … codex-acp not found`** (exit status 127): the agent runs in another sandbox — the log then shows another sandbox being started, such as `claude-acp`. The assistant now refuses an `sbxenv.yaml` whose `agent:` is not the program's; in **Settings**, check that the sandbox name is `codex-acp` in `args`, `runtime.sandbox` and `lifecycle`, and that `workspace` and `lifecycle.folder` are Codex's folders. |
| 89 | +- **``executable file `/home/agent/.local/bin/codex-acp` not found``** with the right sandbox: the agent's entry was made for the older `docker.io/sbx/codex-acp-kit`. The v3 kit puts `codex-acp` in the `PATH`: write `codex-acp` alone as the last argument. | ||
| 89 | - **An authentication error** in the **Log** tab: the credentials are not stored in sbx, or were stored after the sandbox was created. Store them again, then **🗑 Remove the sandbox** and start the agent. | 90 | - **An authentication error** in the **Log** tab: the credentials are not stored in sbx, or were stored after the sandbox was created. Store them again, then **🗑 Remove the sandbox** and start the agent. |
| 90 | 91 | ||
| 91 | ## See also | 92 | ## See also |
modified
docs/en/how-to/add-an-agent.md +2 -2 | @@ -7,7 +7,7 @@ This guide shows how to add an agent from the Sidekicks window, with the "Add an | ||
| 7 | 7 | 1. Open the assistant: **+ Add my first agent** on the welcome screen, **+ Add an agent** under the agents list, or **⇧⌘N** (Ctrl+Shift+N on Linux and Windows). |
| 8 | 8 | 2. **Who is it?** Fill in **Name shown** (e.g. `Garfield (translator)`). **Name used with @** follows it; change it if you want a shorter one (lowercase letters, digits, `-` and `_`, starting with a letter). The icon and the description are optional: the icon is an emoji, or a letter shown in a coloured circle; left empty, the circle holds the first letter of the name shown. |
| 9 | 9 | 3. **Where does it run?** Choose the environment, then fill in what it asks for (see below). |
| 10 | -4. **How is it started?** Fill in **Program** (choose `mm`, `docker-agent` or `docker agent` in the list — plus `claude-agent-acp`, `/home/agent/.local/bin/codex-acp` and `gemini` in an sbx sandbox — or type another), **Arguments** (on one line, as in a terminal; quotes group words) and **Agent's folder**. The folder is created when it does not exist. | |
| 10 | +4. **How is it started?** Fill in **Program** (choose `mm`, `docker-agent` or `docker agent` in the list — plus `claude-agent-acp`, `codex-acp` and `gemini` in an sbx sandbox — or type another), **Arguments** (on one line, as in a terminal; quotes group words) and **Agent's folder**. The folder is created when it does not exist. | |
| 11 | 11 | 5. Click **Add the agent**. Its direct conversation opens once the configuration is reloaded. |
| 12 | 12 | |
| 13 | 13 | When the agent cannot be added (a name already used, for instance), the assistant says why and writes nothing. |
| @@ -19,7 +19,7 @@ When the agent cannot be added (a name already used, for instance), the assistan | ||
| 19 | 19 | - **In a Docker container**: give the **Container name**. The container must exist (Sidekicks starts it if it is stopped), with the agent's folder mounted at the same path, and contain the program: see [How to run an agent in a Docker container](run-an-agent-in-docker.md). Sidekicks starts the agent with `docker exec -i <container> <program> <arguments>`. To have the container recreated when it is gone, drop its `compose.yaml` on **Recreate the container when it is gone** and pick the service, or type the commands: see [Restart or recreate the container](run-an-agent-in-docker.md#restart-or-recreate-the-container). |
| 20 | 20 | - **In an sbx sandbox**: give the **Sandbox name**. The sandbox must exist, with the agent's folder at the same path: see [How to run an agent in an sbx sandbox](run-an-agent-in-a-sandbox.md). Sidekicks starts the agent with `sbx exec -i <sandbox> <program> <arguments>`. To have the sandbox recreated when it is gone, drop its `sbxenv.yaml` on **Recreate the sandbox when it is gone**, or type the commands: see [Recreate the sandbox when it is gone](run-an-agent-in-a-sandbox.md#recreate-the-sandbox-when-it-is-gone). |
| 21 | 21 | - **Claude in an sbx sandbox**: choose **In an sbx sandbox**, drop the sandbox's `sbxenv.yaml` (the sandbox, the folder and the commands are filled in), then choose the program `claude-agent-acp`, with no arguments. It relies on the `docker.io/sbx/claude-acp` kit, provided by a third party, not by Sidekicks. See [How to add a Claude agent in an sbx sandbox](add-a-claude-agent-in-a-sandbox.md). |
| 22 | -- **Codex or Gemini in an sbx sandbox**: the same, with the program `/home/agent/.local/bin/codex-acp` (kit `docker.io/sbx/codex-acp`) or `gemini` with the argument `--acp` (kit `docker.io/sbx/gemini-kit`). See [How to add a Codex agent in an sbx sandbox](add-a-codex-agent-in-a-sandbox.md) and [How to add a Gemini agent in an sbx sandbox](add-a-gemini-agent-in-a-sandbox.md). | |
| 22 | +- **Codex or Gemini in an sbx sandbox**: the same, with the program `codex-acp` (kit `docker.io/sbx/codex-acp`) or `gemini` with the argument `--acp` (kit `docker.io/sbx/gemini-kit`). See [How to add a Codex agent in an sbx sandbox](add-a-codex-agent-in-a-sandbox.md) and [How to add a Gemini agent in an sbx sandbox](add-a-gemini-agent-in-a-sandbox.md). | |
| 23 | 23 | - **Options the assistant does not ask for** (`env`, `afterStop`, a different `workspacePath`): add the agent with the assistant, then complete its entry in **Settings**. |
| 24 | 24 | |
| 25 | 25 | ## See also |
| @@ -7,7 +7,7 @@ This guide shows how to add an agent from the Sidekicks window, with the "Add an | |||
| 7 | 1. Open the assistant: **+ Add my first agent** on the welcome screen, **+ Add an agent** under the agents list, or **⇧⌘N** (Ctrl+Shift+N on Linux and Windows). | 7 | 1. Open the assistant: **+ Add my first agent** on the welcome screen, **+ Add an agent** under the agents list, or **⇧⌘N** (Ctrl+Shift+N on Linux and Windows). |
| 8 | 2. **Who is it?** Fill in **Name shown** (e.g. `Garfield (translator)`). **Name used with @** follows it; change it if you want a shorter one (lowercase letters, digits, `-` and `_`, starting with a letter). The icon and the description are optional: the icon is an emoji, or a letter shown in a coloured circle; left empty, the circle holds the first letter of the name shown. | 8 | 2. **Who is it?** Fill in **Name shown** (e.g. `Garfield (translator)`). **Name used with @** follows it; change it if you want a shorter one (lowercase letters, digits, `-` and `_`, starting with a letter). The icon and the description are optional: the icon is an emoji, or a letter shown in a coloured circle; left empty, the circle holds the first letter of the name shown. |
| 9 | 3. **Where does it run?** Choose the environment, then fill in what it asks for (see below). | 9 | 3. **Where does it run?** Choose the environment, then fill in what it asks for (see below). |
| 10 | -4. **How is it started?** Fill in **Program** (choose `mm`, `docker-agent` or `docker agent` in the list — plus `claude-agent-acp`, `/home/agent/.local/bin/codex-acp` and `gemini` in an sbx sandbox — or type another), **Arguments** (on one line, as in a terminal; quotes group words) and **Agent's folder**. The folder is created when it does not exist. | 10 | +4. **How is it started?** Fill in **Program** (choose `mm`, `docker-agent` or `docker agent` in the list — plus `claude-agent-acp`, `codex-acp` and `gemini` in an sbx sandbox — or type another), **Arguments** (on one line, as in a terminal; quotes group words) and **Agent's folder**. The folder is created when it does not exist. |
| 11 | 5. Click **Add the agent**. Its direct conversation opens once the configuration is reloaded. | 11 | 5. Click **Add the agent**. Its direct conversation opens once the configuration is reloaded. |
| 12 | 12 | ||
| 13 | When the agent cannot be added (a name already used, for instance), the assistant says why and writes nothing. | 13 | When the agent cannot be added (a name already used, for instance), the assistant says why and writes nothing. |
| @@ -19,7 +19,7 @@ When the agent cannot be added (a name already used, for instance), the assistan | |||
| 19 | - **In a Docker container**: give the **Container name**. The container must exist (Sidekicks starts it if it is stopped), with the agent's folder mounted at the same path, and contain the program: see [How to run an agent in a Docker container](run-an-agent-in-docker.md). Sidekicks starts the agent with `docker exec -i <container> <program> <arguments>`. To have the container recreated when it is gone, drop its `compose.yaml` on **Recreate the container when it is gone** and pick the service, or type the commands: see [Restart or recreate the container](run-an-agent-in-docker.md#restart-or-recreate-the-container). | 19 | - **In a Docker container**: give the **Container name**. The container must exist (Sidekicks starts it if it is stopped), with the agent's folder mounted at the same path, and contain the program: see [How to run an agent in a Docker container](run-an-agent-in-docker.md). Sidekicks starts the agent with `docker exec -i <container> <program> <arguments>`. To have the container recreated when it is gone, drop its `compose.yaml` on **Recreate the container when it is gone** and pick the service, or type the commands: see [Restart or recreate the container](run-an-agent-in-docker.md#restart-or-recreate-the-container). |
| 20 | - **In an sbx sandbox**: give the **Sandbox name**. The sandbox must exist, with the agent's folder at the same path: see [How to run an agent in an sbx sandbox](run-an-agent-in-a-sandbox.md). Sidekicks starts the agent with `sbx exec -i <sandbox> <program> <arguments>`. To have the sandbox recreated when it is gone, drop its `sbxenv.yaml` on **Recreate the sandbox when it is gone**, or type the commands: see [Recreate the sandbox when it is gone](run-an-agent-in-a-sandbox.md#recreate-the-sandbox-when-it-is-gone). | 20 | - **In an sbx sandbox**: give the **Sandbox name**. The sandbox must exist, with the agent's folder at the same path: see [How to run an agent in an sbx sandbox](run-an-agent-in-a-sandbox.md). Sidekicks starts the agent with `sbx exec -i <sandbox> <program> <arguments>`. To have the sandbox recreated when it is gone, drop its `sbxenv.yaml` on **Recreate the sandbox when it is gone**, or type the commands: see [Recreate the sandbox when it is gone](run-an-agent-in-a-sandbox.md#recreate-the-sandbox-when-it-is-gone). |
| 21 | - **Claude in an sbx sandbox**: choose **In an sbx sandbox**, drop the sandbox's `sbxenv.yaml` (the sandbox, the folder and the commands are filled in), then choose the program `claude-agent-acp`, with no arguments. It relies on the `docker.io/sbx/claude-acp` kit, provided by a third party, not by Sidekicks. See [How to add a Claude agent in an sbx sandbox](add-a-claude-agent-in-a-sandbox.md). | 21 | - **Claude in an sbx sandbox**: choose **In an sbx sandbox**, drop the sandbox's `sbxenv.yaml` (the sandbox, the folder and the commands are filled in), then choose the program `claude-agent-acp`, with no arguments. It relies on the `docker.io/sbx/claude-acp` kit, provided by a third party, not by Sidekicks. See [How to add a Claude agent in an sbx sandbox](add-a-claude-agent-in-a-sandbox.md). |
| 22 | -- **Codex or Gemini in an sbx sandbox**: the same, with the program `/home/agent/.local/bin/codex-acp` (kit `docker.io/sbx/codex-acp`) or `gemini` with the argument `--acp` (kit `docker.io/sbx/gemini-kit`). See [How to add a Codex agent in an sbx sandbox](add-a-codex-agent-in-a-sandbox.md) and [How to add a Gemini agent in an sbx sandbox](add-a-gemini-agent-in-a-sandbox.md). | 22 | +- **Codex or Gemini in an sbx sandbox**: the same, with the program `codex-acp` (kit `docker.io/sbx/codex-acp`) or `gemini` with the argument `--acp` (kit `docker.io/sbx/gemini-kit`). See [How to add a Codex agent in an sbx sandbox](add-a-codex-agent-in-a-sandbox.md) and [How to add a Gemini agent in an sbx sandbox](add-a-gemini-agent-in-a-sandbox.md). |
| 23 | - **Options the assistant does not ask for** (`env`, `afterStop`, a different `workspacePath`): add the agent with the assistant, then complete its entry in **Settings**. | 23 | - **Options the assistant does not ask for** (`env`, `afterStop`, a different `workspacePath`): add the agent with the assistant, then complete its entry in **Settings**. |
| 24 | 24 | ||
| 25 | ## See also | 25 | ## See also |
modified
docs/fr/how-to/ajouter-un-agent-codex-dans-une-sandbox.md +5 -4 | @@ -6,14 +6,14 @@ Un exemple prêt à l'emploi est dans le dépôt : [`agents/snippets/codex-acp`] | ||
| 6 | 6 | |
| 7 | 7 | ## Un kit fourni par un tiers |
| 8 | 8 | |
| 9 | -La sandbox est construite à partir du kit `docker.io/sbx/codex-acp`. Ce kit est fourni par un tiers, **pas par Sidekicks** : son contenu (Codex, `codex-acp`), ses mises à jour (la sandbox télécharge `latest` à chaque création) et sa disponibilité dépendent de ce tiers. Sidekicks se contente de créer la sandbox à partir du `sbxenv.yaml` qui le nomme et de lancer `/home/agent/.local/bin/codex-acp` dedans. Si le kit change ou disparaît, la sandbox peut ne plus pouvoir être créée, ou Codex ne plus démarrer : l'onglet **Log** montre alors ce que sbx a répondu. | |
| 9 | +La sandbox est construite à partir du kit `docker.io/sbx/codex-acp`. Ce kit est fourni par un tiers, **pas par Sidekicks** : son contenu (Codex, `codex-acp`), ses mises à jour (la sandbox télécharge `latest` à chaque création) et sa disponibilité dépendent de ce tiers. Sidekicks se contente de créer la sandbox à partir du `sbxenv.yaml` qui le nomme et de lancer `codex-acp` dedans. Si le kit change ou disparaît, la sandbox peut ne plus pouvoir être créée, ou Codex ne plus démarrer : l'onglet **Log** montre alors ce que sbx a répondu. | |
| 10 | 10 | |
| 11 | 11 | ## Ce qu'il faut |
| 12 | 12 | |
| 13 | 13 | | | Rôle | |
| 14 | 14 | | --- | --- | |
| 15 | 15 | | Un dossier pour l'agent, par exemple `/Users/moi/agents/codex-acp` | contient le `sbxenv.yaml` de la sandbox et le dossier `workspace/` où Codex travaille. | |
| 16 | -| Le kit `docker.io/sbx/codex-acp` | l'image de la sandbox, avec Codex installé et `codex-acp` dans `/home/agent/.local/bin` (hors du `PATH` : c'est pourquoi le programme est écrit avec son dossier). | | |
| 16 | +| Le kit `docker.io/sbx/codex-acp` | l'image de la sandbox, avec Codex et `codex-acp` installés. | | |
| 17 | 17 | | Vos identifiants OpenAI, enregistrés dans sbx | sbx les ajoute aux requêtes de Codex vers OpenAI : ils ne sont écrits ni dans la sandbox, ni dans la configuration de Sidekicks. | |
| 18 | 18 | |
| 19 | 19 | ## Avec l'assistant |
| @@ -29,7 +29,7 @@ La sandbox est construite à partir du kit `docker.io/sbx/codex-acp`. Ce kit est | ||
| 29 | 29 | Si vous les enregistrez alors que la sandbox existe déjà, cliquez sur **🗑 Supprimer la sandbox** dans l'en-tête de l'agent, puis redémarrez l'agent. |
| 30 | 30 | 3. Dans le panneau **Agents**, cliquez sur **+ Ajouter un agent**. Remplissez **Nom affiché** (`Codex`) et, si vous voulez, une icône (📗). |
| 31 | 31 | 4. **Où tourne-t-il ?** Choisissez **Dans une sandbox sbx**, puis déposez le `sbxenv.yaml` sur **Recréer la sandbox si elle a disparu (facultatif)** (ou cliquez sur **Choisir un sbxenv.yaml…**). La sandbox, le dossier de l'agent (`…/workspace`) et les commandes `sbx env` sont remplis à partir de lui. |
| 32 | -5. **Programme** : choisissez `/home/agent/.local/bin/codex-acp` dans la liste (il n'est proposé que dans une sandbox sbx ; `codex-acp` seul est reconnu aussi, si le kit le met dans le `PATH`). Laissez **Arguments** vide. | |
| 32 | +5. **Programme** : choisissez `codex-acp` dans la liste (il n'est proposé que dans une sandbox sbx). Laissez **Arguments** vide. | |
| 33 | 33 | 6. Cliquez sur **Ajouter l'agent**, puis démarrez Codex depuis le panneau **Agents** (▶), ou écrivez-lui. La première fois, l'onglet **Log** montre `sandbox codex-acp not found: creating it`, puis le téléchargement du kit — cela peut prendre une minute ou deux. |
| 34 | 34 | |
| 35 | 35 | ## À la main |
| @@ -66,7 +66,7 @@ Et l'entrée de l'agent, sous `agents:` dans **Settings** : | ||
| 66 | 66 | title: Codex |
| 67 | 67 | icon: "📗" |
| 68 | 68 | command: sbx |
| 69 | - args: [exec, -i, codex-acp, /home/agent/.local/bin/codex-acp] | |
| 69 | + args: [exec, -i, codex-acp, codex-acp] | |
| 70 | 70 | workspace: /Users/moi/agents/codex-acp/workspace |
| 71 | 71 | runtime: |
| 72 | 72 | type: sbx |
| @@ -86,6 +86,7 @@ Et l'entrée de l'agent, sous `agents:` dans **Settings** : | ||
| 86 | 86 | - Quand Codex demande l'autorisation de modifier un fichier ou de lancer une commande, Sidekicks affiche la demande et attend votre réponse. |
| 87 | 87 | - **`cannot mix v3 kits with v1/v2 kits in one sandbox`** à la création de la sandbox : le `sbxenv.yaml` nomme l'ancien kit `docker.io/sbx/codex-acp-kit`. sbx fournit maintenant l'agent `codex` sous forme de kit au nouveau format (v3), qui ne se combine qu'avec des kits v3 : nommez plutôt `docker.io/sbx/codex-acp:latest`, puis redémarrez l'agent. |
| 88 | 88 | - **`executable file … codex-acp not found`** (exit status 127) : l'agent tourne dans une autre sandbox — le log montre alors le démarrage d'une autre sandbox, par exemple `claude-acp`. L'assistant refuse désormais un `sbxenv.yaml` dont l'`agent:` n'est pas celui du programme ; dans **Settings**, vérifiez que le nom de la sandbox est `codex-acp` dans `args`, `runtime.sandbox` et `lifecycle`, et que `workspace` et `lifecycle.folder` sont les dossiers de Codex. |
| 89 | +- **``executable file `/home/agent/.local/bin/codex-acp` not found``** avec la bonne sandbox : l'entrée de l'agent a été faite pour l'ancien kit `docker.io/sbx/codex-acp-kit`. Le kit v3 met `codex-acp` dans le `PATH` : écrivez `codex-acp` seul comme dernier argument. | |
| 89 | 90 | - **Une erreur d'authentification** dans l'onglet **Log** : les identifiants ne sont pas enregistrés dans sbx, ou l'ont été après la création de la sandbox. Enregistrez-les de nouveau, puis **🗑 Supprimer la sandbox** et démarrez l'agent. |
| 90 | 91 | |
| 91 | 92 | ## Voir aussi |
| @@ -6,14 +6,14 @@ Un exemple prêt à l'emploi est dans le dépôt : [`agents/snippets/codex-acp`] | |||
| 6 | 6 | ||
| 7 | ## Un kit fourni par un tiers | 7 | ## Un kit fourni par un tiers |
| 8 | 8 | ||
| 9 | -La sandbox est construite à partir du kit `docker.io/sbx/codex-acp`. Ce kit est fourni par un tiers, **pas par Sidekicks** : son contenu (Codex, `codex-acp`), ses mises à jour (la sandbox télécharge `latest` à chaque création) et sa disponibilité dépendent de ce tiers. Sidekicks se contente de créer la sandbox à partir du `sbxenv.yaml` qui le nomme et de lancer `/home/agent/.local/bin/codex-acp` dedans. Si le kit change ou disparaît, la sandbox peut ne plus pouvoir être créée, ou Codex ne plus démarrer : l'onglet **Log** montre alors ce que sbx a répondu. | 9 | +La sandbox est construite à partir du kit `docker.io/sbx/codex-acp`. Ce kit est fourni par un tiers, **pas par Sidekicks** : son contenu (Codex, `codex-acp`), ses mises à jour (la sandbox télécharge `latest` à chaque création) et sa disponibilité dépendent de ce tiers. Sidekicks se contente de créer la sandbox à partir du `sbxenv.yaml` qui le nomme et de lancer `codex-acp` dedans. Si le kit change ou disparaît, la sandbox peut ne plus pouvoir être créée, ou Codex ne plus démarrer : l'onglet **Log** montre alors ce que sbx a répondu. |
| 10 | 10 | ||
| 11 | ## Ce qu'il faut | 11 | ## Ce qu'il faut |
| 12 | 12 | ||
| 13 | | | Rôle | | 13 | | | Rôle | |
| 14 | | --- | --- | | 14 | | --- | --- | |
| 15 | | Un dossier pour l'agent, par exemple `/Users/moi/agents/codex-acp` | contient le `sbxenv.yaml` de la sandbox et le dossier `workspace/` où Codex travaille. | | 15 | | Un dossier pour l'agent, par exemple `/Users/moi/agents/codex-acp` | contient le `sbxenv.yaml` de la sandbox et le dossier `workspace/` où Codex travaille. | |
| 16 | -| Le kit `docker.io/sbx/codex-acp` | l'image de la sandbox, avec Codex installé et `codex-acp` dans `/home/agent/.local/bin` (hors du `PATH` : c'est pourquoi le programme est écrit avec son dossier). | | 16 | +| Le kit `docker.io/sbx/codex-acp` | l'image de la sandbox, avec Codex et `codex-acp` installés. | |
| 17 | | Vos identifiants OpenAI, enregistrés dans sbx | sbx les ajoute aux requêtes de Codex vers OpenAI : ils ne sont écrits ni dans la sandbox, ni dans la configuration de Sidekicks. | | 17 | | Vos identifiants OpenAI, enregistrés dans sbx | sbx les ajoute aux requêtes de Codex vers OpenAI : ils ne sont écrits ni dans la sandbox, ni dans la configuration de Sidekicks. | |
| 18 | 18 | ||
| 19 | ## Avec l'assistant | 19 | ## Avec l'assistant |
| @@ -29,7 +29,7 @@ La sandbox est construite à partir du kit `docker.io/sbx/codex-acp`. Ce kit est | |||
| 29 | Si vous les enregistrez alors que la sandbox existe déjà, cliquez sur **🗑 Supprimer la sandbox** dans l'en-tête de l'agent, puis redémarrez l'agent. | 29 | Si vous les enregistrez alors que la sandbox existe déjà, cliquez sur **🗑 Supprimer la sandbox** dans l'en-tête de l'agent, puis redémarrez l'agent. |
| 30 | 3. Dans le panneau **Agents**, cliquez sur **+ Ajouter un agent**. Remplissez **Nom affiché** (`Codex`) et, si vous voulez, une icône (📗). | 30 | 3. Dans le panneau **Agents**, cliquez sur **+ Ajouter un agent**. Remplissez **Nom affiché** (`Codex`) et, si vous voulez, une icône (📗). |
| 31 | 4. **Où tourne-t-il ?** Choisissez **Dans une sandbox sbx**, puis déposez le `sbxenv.yaml` sur **Recréer la sandbox si elle a disparu (facultatif)** (ou cliquez sur **Choisir un sbxenv.yaml…**). La sandbox, le dossier de l'agent (`…/workspace`) et les commandes `sbx env` sont remplis à partir de lui. | 31 | 4. **Où tourne-t-il ?** Choisissez **Dans une sandbox sbx**, puis déposez le `sbxenv.yaml` sur **Recréer la sandbox si elle a disparu (facultatif)** (ou cliquez sur **Choisir un sbxenv.yaml…**). La sandbox, le dossier de l'agent (`…/workspace`) et les commandes `sbx env` sont remplis à partir de lui. |
| 32 | -5. **Programme** : choisissez `/home/agent/.local/bin/codex-acp` dans la liste (il n'est proposé que dans une sandbox sbx ; `codex-acp` seul est reconnu aussi, si le kit le met dans le `PATH`). Laissez **Arguments** vide. | 32 | +5. **Programme** : choisissez `codex-acp` dans la liste (il n'est proposé que dans une sandbox sbx). Laissez **Arguments** vide. |
| 33 | 6. Cliquez sur **Ajouter l'agent**, puis démarrez Codex depuis le panneau **Agents** (▶), ou écrivez-lui. La première fois, l'onglet **Log** montre `sandbox codex-acp not found: creating it`, puis le téléchargement du kit — cela peut prendre une minute ou deux. | 33 | 6. Cliquez sur **Ajouter l'agent**, puis démarrez Codex depuis le panneau **Agents** (▶), ou écrivez-lui. La première fois, l'onglet **Log** montre `sandbox codex-acp not found: creating it`, puis le téléchargement du kit — cela peut prendre une minute ou deux. |
| 34 | 34 | ||
| 35 | ## À la main | 35 | ## À la main |
| @@ -66,7 +66,7 @@ Et l'entrée de l'agent, sous `agents:` dans **Settings** : | |||
| 66 | title: Codex | 66 | title: Codex |
| 67 | icon: "📗" | 67 | icon: "📗" |
| 68 | command: sbx | 68 | command: sbx |
| 69 | - args: [exec, -i, codex-acp, /home/agent/.local/bin/codex-acp] | 69 | + args: [exec, -i, codex-acp, codex-acp] |
| 70 | workspace: /Users/moi/agents/codex-acp/workspace | 70 | workspace: /Users/moi/agents/codex-acp/workspace |
| 71 | runtime: | 71 | runtime: |
| 72 | type: sbx | 72 | type: sbx |
| @@ -86,6 +86,7 @@ Et l'entrée de l'agent, sous `agents:` dans **Settings** : | |||
| 86 | - Quand Codex demande l'autorisation de modifier un fichier ou de lancer une commande, Sidekicks affiche la demande et attend votre réponse. | 86 | - Quand Codex demande l'autorisation de modifier un fichier ou de lancer une commande, Sidekicks affiche la demande et attend votre réponse. |
| 87 | - **`cannot mix v3 kits with v1/v2 kits in one sandbox`** à la création de la sandbox : le `sbxenv.yaml` nomme l'ancien kit `docker.io/sbx/codex-acp-kit`. sbx fournit maintenant l'agent `codex` sous forme de kit au nouveau format (v3), qui ne se combine qu'avec des kits v3 : nommez plutôt `docker.io/sbx/codex-acp:latest`, puis redémarrez l'agent. | 87 | - **`cannot mix v3 kits with v1/v2 kits in one sandbox`** à la création de la sandbox : le `sbxenv.yaml` nomme l'ancien kit `docker.io/sbx/codex-acp-kit`. sbx fournit maintenant l'agent `codex` sous forme de kit au nouveau format (v3), qui ne se combine qu'avec des kits v3 : nommez plutôt `docker.io/sbx/codex-acp:latest`, puis redémarrez l'agent. |
| 88 | - **`executable file … codex-acp not found`** (exit status 127) : l'agent tourne dans une autre sandbox — le log montre alors le démarrage d'une autre sandbox, par exemple `claude-acp`. L'assistant refuse désormais un `sbxenv.yaml` dont l'`agent:` n'est pas celui du programme ; dans **Settings**, vérifiez que le nom de la sandbox est `codex-acp` dans `args`, `runtime.sandbox` et `lifecycle`, et que `workspace` et `lifecycle.folder` sont les dossiers de Codex. | 88 | - **`executable file … codex-acp not found`** (exit status 127) : l'agent tourne dans une autre sandbox — le log montre alors le démarrage d'une autre sandbox, par exemple `claude-acp`. L'assistant refuse désormais un `sbxenv.yaml` dont l'`agent:` n'est pas celui du programme ; dans **Settings**, vérifiez que le nom de la sandbox est `codex-acp` dans `args`, `runtime.sandbox` et `lifecycle`, et que `workspace` et `lifecycle.folder` sont les dossiers de Codex. |
| 89 | +- **``executable file `/home/agent/.local/bin/codex-acp` not found``** avec la bonne sandbox : l'entrée de l'agent a été faite pour l'ancien kit `docker.io/sbx/codex-acp-kit`. Le kit v3 met `codex-acp` dans le `PATH` : écrivez `codex-acp` seul comme dernier argument. | ||
| 89 | - **Une erreur d'authentification** dans l'onglet **Log** : les identifiants ne sont pas enregistrés dans sbx, ou l'ont été après la création de la sandbox. Enregistrez-les de nouveau, puis **🗑 Supprimer la sandbox** et démarrez l'agent. | 90 | - **Une erreur d'authentification** dans l'onglet **Log** : les identifiants ne sont pas enregistrés dans sbx, ou l'ont été après la création de la sandbox. Enregistrez-les de nouveau, puis **🗑 Supprimer la sandbox** et démarrez l'agent. |
| 90 | 91 | ||
| 91 | ## Voir aussi | 92 | ## Voir aussi |
modified
docs/fr/how-to/ajouter-un-agent.md +2 -2 | @@ -7,7 +7,7 @@ Ce guide montre comment ajouter un agent depuis la fenêtre de Sidekicks, avec l | ||
| 7 | 7 | 1. Ouvrez l'assistant : **+ Ajouter mon premier agent** sur l'écran d'accueil, **+ Ajouter un agent** sous la liste des agents, ou **⇧⌘N** (Ctrl+Maj+N sous Linux et Windows). |
| 8 | 8 | 2. **Qui est-ce ?** Remplissez **Nom affiché** (par exemple `Garfield (traducteur)`). **Nom utilisé avec @** le suit ; changez-le si vous en voulez un plus court (minuscules, chiffres, `-` et `_`, en commençant par une lettre). L'icône et la description sont facultatives : l'icône est un emoji, ou une lettre affichée dans un rond coloré ; laissée vide, le rond contient la première lettre du nom affiché. |
| 9 | 9 | 3. **Où tourne-t-il ?** Choisissez l'environnement, puis remplissez ce qu'il demande (voir plus bas). |
| 10 | -4. **Comment le démarrer ?** Remplissez **Programme** (choisissez `mm`, `docker-agent` ou `docker agent` dans la liste — plus `claude-agent-acp`, `/home/agent/.local/bin/codex-acp` et `gemini` dans une sandbox sbx — ou tapez-en un autre), **Arguments** (sur une ligne, comme dans un terminal ; les guillemets regroupent des mots) et **Dossier de l'agent**. Le dossier est créé s'il n'existe pas. | |
| 10 | +4. **Comment le démarrer ?** Remplissez **Programme** (choisissez `mm`, `docker-agent` ou `docker agent` dans la liste — plus `claude-agent-acp`, `codex-acp` et `gemini` dans une sandbox sbx — ou tapez-en un autre), **Arguments** (sur une ligne, comme dans un terminal ; les guillemets regroupent des mots) et **Dossier de l'agent**. Le dossier est créé s'il n'existe pas. | |
| 11 | 11 | 5. Cliquez sur **Ajouter l'agent**. Sa conversation directe s'ouvre dès que la configuration est rechargée. |
| 12 | 12 | |
| 13 | 13 | Quand l'agent ne peut pas être ajouté (un nom déjà pris, par exemple), l'assistant dit pourquoi et n'écrit rien. |
| @@ -19,7 +19,7 @@ Quand l'agent ne peut pas être ajouté (un nom déjà pris, par exemple), l'ass | ||
| 19 | 19 | - **Dans un conteneur Docker** : indiquez le **Nom du conteneur**. Le conteneur doit exister (Sidekicks le démarre s'il est arrêté), avec le dossier de l'agent monté au même chemin, et contenir le programme : voir [Lancer un agent dans un conteneur Docker](lancer-un-agent-dans-docker.md). Sidekicks démarre l'agent avec `docker exec -i <conteneur> <programme> <arguments>`. Pour que le conteneur soit recréé quand il a disparu, déposez son `compose.yaml` sur **Recréer le conteneur s'il a disparu** et choisissez le service, ou tapez les commandes : voir [Redémarrer ou recréer le conteneur](lancer-un-agent-dans-docker.md#redémarrer-ou-recréer-le-conteneur). |
| 20 | 20 | - **Dans une sandbox sbx** : indiquez le **Nom de la sandbox**. Elle doit exister, avec le dossier de l'agent au même chemin : voir [Lancer un agent dans une sandbox sbx](lancer-un-agent-dans-une-sandbox.md). Sidekicks démarre l'agent avec `sbx exec -i <sandbox> <programme> <arguments>`. Pour que la sandbox soit recréée quand elle a disparu, déposez son `sbxenv.yaml` sur **Recréer la sandbox si elle a disparu**, ou tapez les commandes : voir [Recréer la sandbox quand elle a disparu](lancer-un-agent-dans-une-sandbox.md#recréer-la-sandbox-quand-elle-a-disparu). |
| 21 | 21 | - **Claude dans une sandbox sbx** : choisissez **Dans une sandbox sbx**, déposez le `sbxenv.yaml` de la sandbox (la sandbox, le dossier et les commandes sont remplis), puis choisissez le programme `claude-agent-acp`, sans argument. Cela repose sur le kit `docker.io/sbx/claude-acp`, fourni par un tiers et non par Sidekicks. Voir [Ajouter un agent Claude dans une sandbox sbx](ajouter-un-agent-claude-dans-une-sandbox.md). |
| 22 | -- **Codex ou Gemini dans une sandbox sbx** : de même, avec le programme `/home/agent/.local/bin/codex-acp` (kit `docker.io/sbx/codex-acp`) ou `gemini` avec l'argument `--acp` (kit `docker.io/sbx/gemini-kit`). Voir [Ajouter un agent Codex dans une sandbox sbx](ajouter-un-agent-codex-dans-une-sandbox.md) et [Ajouter un agent Gemini dans une sandbox sbx](ajouter-un-agent-gemini-dans-une-sandbox.md). | |
| 22 | +- **Codex ou Gemini dans une sandbox sbx** : de même, avec le programme `codex-acp` (kit `docker.io/sbx/codex-acp`) ou `gemini` avec l'argument `--acp` (kit `docker.io/sbx/gemini-kit`). Voir [Ajouter un agent Codex dans une sandbox sbx](ajouter-un-agent-codex-dans-une-sandbox.md) et [Ajouter un agent Gemini dans une sandbox sbx](ajouter-un-agent-gemini-dans-une-sandbox.md). | |
| 23 | 23 | - **Les options que l'assistant ne demande pas** (`env`, `afterStop`, un autre `workspacePath`) : ajoutez l'agent avec l'assistant, puis complétez son entrée dans **Settings**. |
| 24 | 24 | |
| 25 | 25 | ## Voir aussi |
| @@ -7,7 +7,7 @@ Ce guide montre comment ajouter un agent depuis la fenêtre de Sidekicks, avec l | |||
| 7 | 1. Ouvrez l'assistant : **+ Ajouter mon premier agent** sur l'écran d'accueil, **+ Ajouter un agent** sous la liste des agents, ou **⇧⌘N** (Ctrl+Maj+N sous Linux et Windows). | 7 | 1. Ouvrez l'assistant : **+ Ajouter mon premier agent** sur l'écran d'accueil, **+ Ajouter un agent** sous la liste des agents, ou **⇧⌘N** (Ctrl+Maj+N sous Linux et Windows). |
| 8 | 2. **Qui est-ce ?** Remplissez **Nom affiché** (par exemple `Garfield (traducteur)`). **Nom utilisé avec @** le suit ; changez-le si vous en voulez un plus court (minuscules, chiffres, `-` et `_`, en commençant par une lettre). L'icône et la description sont facultatives : l'icône est un emoji, ou une lettre affichée dans un rond coloré ; laissée vide, le rond contient la première lettre du nom affiché. | 8 | 2. **Qui est-ce ?** Remplissez **Nom affiché** (par exemple `Garfield (traducteur)`). **Nom utilisé avec @** le suit ; changez-le si vous en voulez un plus court (minuscules, chiffres, `-` et `_`, en commençant par une lettre). L'icône et la description sont facultatives : l'icône est un emoji, ou une lettre affichée dans un rond coloré ; laissée vide, le rond contient la première lettre du nom affiché. |
| 9 | 3. **Où tourne-t-il ?** Choisissez l'environnement, puis remplissez ce qu'il demande (voir plus bas). | 9 | 3. **Où tourne-t-il ?** Choisissez l'environnement, puis remplissez ce qu'il demande (voir plus bas). |
| 10 | -4. **Comment le démarrer ?** Remplissez **Programme** (choisissez `mm`, `docker-agent` ou `docker agent` dans la liste — plus `claude-agent-acp`, `/home/agent/.local/bin/codex-acp` et `gemini` dans une sandbox sbx — ou tapez-en un autre), **Arguments** (sur une ligne, comme dans un terminal ; les guillemets regroupent des mots) et **Dossier de l'agent**. Le dossier est créé s'il n'existe pas. | 10 | +4. **Comment le démarrer ?** Remplissez **Programme** (choisissez `mm`, `docker-agent` ou `docker agent` dans la liste — plus `claude-agent-acp`, `codex-acp` et `gemini` dans une sandbox sbx — ou tapez-en un autre), **Arguments** (sur une ligne, comme dans un terminal ; les guillemets regroupent des mots) et **Dossier de l'agent**. Le dossier est créé s'il n'existe pas. |
| 11 | 5. Cliquez sur **Ajouter l'agent**. Sa conversation directe s'ouvre dès que la configuration est rechargée. | 11 | 5. Cliquez sur **Ajouter l'agent**. Sa conversation directe s'ouvre dès que la configuration est rechargée. |
| 12 | 12 | ||
| 13 | Quand l'agent ne peut pas être ajouté (un nom déjà pris, par exemple), l'assistant dit pourquoi et n'écrit rien. | 13 | Quand l'agent ne peut pas être ajouté (un nom déjà pris, par exemple), l'assistant dit pourquoi et n'écrit rien. |
| @@ -19,7 +19,7 @@ Quand l'agent ne peut pas être ajouté (un nom déjà pris, par exemple), l'ass | |||
| 19 | - **Dans un conteneur Docker** : indiquez le **Nom du conteneur**. Le conteneur doit exister (Sidekicks le démarre s'il est arrêté), avec le dossier de l'agent monté au même chemin, et contenir le programme : voir [Lancer un agent dans un conteneur Docker](lancer-un-agent-dans-docker.md). Sidekicks démarre l'agent avec `docker exec -i <conteneur> <programme> <arguments>`. Pour que le conteneur soit recréé quand il a disparu, déposez son `compose.yaml` sur **Recréer le conteneur s'il a disparu** et choisissez le service, ou tapez les commandes : voir [Redémarrer ou recréer le conteneur](lancer-un-agent-dans-docker.md#redémarrer-ou-recréer-le-conteneur). | 19 | - **Dans un conteneur Docker** : indiquez le **Nom du conteneur**. Le conteneur doit exister (Sidekicks le démarre s'il est arrêté), avec le dossier de l'agent monté au même chemin, et contenir le programme : voir [Lancer un agent dans un conteneur Docker](lancer-un-agent-dans-docker.md). Sidekicks démarre l'agent avec `docker exec -i <conteneur> <programme> <arguments>`. Pour que le conteneur soit recréé quand il a disparu, déposez son `compose.yaml` sur **Recréer le conteneur s'il a disparu** et choisissez le service, ou tapez les commandes : voir [Redémarrer ou recréer le conteneur](lancer-un-agent-dans-docker.md#redémarrer-ou-recréer-le-conteneur). |
| 20 | - **Dans une sandbox sbx** : indiquez le **Nom de la sandbox**. Elle doit exister, avec le dossier de l'agent au même chemin : voir [Lancer un agent dans une sandbox sbx](lancer-un-agent-dans-une-sandbox.md). Sidekicks démarre l'agent avec `sbx exec -i <sandbox> <programme> <arguments>`. Pour que la sandbox soit recréée quand elle a disparu, déposez son `sbxenv.yaml` sur **Recréer la sandbox si elle a disparu**, ou tapez les commandes : voir [Recréer la sandbox quand elle a disparu](lancer-un-agent-dans-une-sandbox.md#recréer-la-sandbox-quand-elle-a-disparu). | 20 | - **Dans une sandbox sbx** : indiquez le **Nom de la sandbox**. Elle doit exister, avec le dossier de l'agent au même chemin : voir [Lancer un agent dans une sandbox sbx](lancer-un-agent-dans-une-sandbox.md). Sidekicks démarre l'agent avec `sbx exec -i <sandbox> <programme> <arguments>`. Pour que la sandbox soit recréée quand elle a disparu, déposez son `sbxenv.yaml` sur **Recréer la sandbox si elle a disparu**, ou tapez les commandes : voir [Recréer la sandbox quand elle a disparu](lancer-un-agent-dans-une-sandbox.md#recréer-la-sandbox-quand-elle-a-disparu). |
| 21 | - **Claude dans une sandbox sbx** : choisissez **Dans une sandbox sbx**, déposez le `sbxenv.yaml` de la sandbox (la sandbox, le dossier et les commandes sont remplis), puis choisissez le programme `claude-agent-acp`, sans argument. Cela repose sur le kit `docker.io/sbx/claude-acp`, fourni par un tiers et non par Sidekicks. Voir [Ajouter un agent Claude dans une sandbox sbx](ajouter-un-agent-claude-dans-une-sandbox.md). | 21 | - **Claude dans une sandbox sbx** : choisissez **Dans une sandbox sbx**, déposez le `sbxenv.yaml` de la sandbox (la sandbox, le dossier et les commandes sont remplis), puis choisissez le programme `claude-agent-acp`, sans argument. Cela repose sur le kit `docker.io/sbx/claude-acp`, fourni par un tiers et non par Sidekicks. Voir [Ajouter un agent Claude dans une sandbox sbx](ajouter-un-agent-claude-dans-une-sandbox.md). |
| 22 | -- **Codex ou Gemini dans une sandbox sbx** : de même, avec le programme `/home/agent/.local/bin/codex-acp` (kit `docker.io/sbx/codex-acp`) ou `gemini` avec l'argument `--acp` (kit `docker.io/sbx/gemini-kit`). Voir [Ajouter un agent Codex dans une sandbox sbx](ajouter-un-agent-codex-dans-une-sandbox.md) et [Ajouter un agent Gemini dans une sandbox sbx](ajouter-un-agent-gemini-dans-une-sandbox.md). | 22 | +- **Codex ou Gemini dans une sandbox sbx** : de même, avec le programme `codex-acp` (kit `docker.io/sbx/codex-acp`) ou `gemini` avec l'argument `--acp` (kit `docker.io/sbx/gemini-kit`). Voir [Ajouter un agent Codex dans une sandbox sbx](ajouter-un-agent-codex-dans-une-sandbox.md) et [Ajouter un agent Gemini dans une sandbox sbx](ajouter-un-agent-gemini-dans-une-sandbox.md). |
| 23 | - **Les options que l'assistant ne demande pas** (`env`, `afterStop`, un autre `workspacePath`) : ajoutez l'agent avec l'assistant, puis complétez son entrée dans **Settings**. | 23 | - **Les options que l'assistant ne demande pas** (`env`, `afterStop`, un autre `workspacePath`) : ajoutez l'agent avec l'assistant, puis complétez son entrée dans **Settings**. |
| 24 | 24 | ||
| 25 | ## Voir aussi | 25 | ## Voir aussi |
modified
frontend/src/lib/agentform.test.ts +2 -2 | @@ -114,7 +114,7 @@ describe('Claude in an sbx sandbox (issue #81)', () => { | ||
| 114 | 114 | |
| 115 | 115 | describe('Codex and Gemini in an sbx sandbox (issues #82, #84)', () => { |
| 116 | 116 | it('offers their programs in a sandbox only', () => { |
| 117 | - expect(programsFor('sbx')).toEqual(expect.arrayContaining(['/home/agent/.local/bin/codex-acp', 'gemini'])) | |
| 117 | + expect(programsFor('sbx')).toEqual(expect.arrayContaining(['codex-acp', 'gemini'])) | |
| 118 | 118 | expect(programsFor('local')).not.toContain('gemini') |
| 119 | 119 | expect(sbxArguments.gemini).toBe('--acp') |
| 120 | 120 | expect(sbxArguments.codex).toBe('') |
| @@ -132,7 +132,7 @@ describe('Codex and Gemini in an sbx sandbox (issues #82, #84)', () => { | ||
| 132 | 132 | }) |
| 133 | 133 | |
| 134 | 134 | describe('sandboxMismatch', () => { |
| 135 | - const codex = { ...emptyForm(), environment: 'sbx' as const, program: '/home/agent/.local/bin/codex-acp' } | |
| 135 | + const codex = { ...emptyForm(), environment: 'sbx' as const, program: 'codex-acp' } | |
| 136 | 136 | it("names the file's agent when it is not the program's", () => { |
| 137 | 137 | expect(sandboxMismatch(codex, 'claude')).toBe('claude') |
| 138 | 138 | }) |
| @@ -114,7 +114,7 @@ describe('Claude in an sbx sandbox (issue #81)', () => { | |||
| 114 | 114 | ||
| 115 | describe('Codex and Gemini in an sbx sandbox (issues #82, #84)', () => { | 115 | describe('Codex and Gemini in an sbx sandbox (issues #82, #84)', () => { |
| 116 | it('offers their programs in a sandbox only', () => { | 116 | it('offers their programs in a sandbox only', () => { |
| 117 | - expect(programsFor('sbx')).toEqual(expect.arrayContaining(['/home/agent/.local/bin/codex-acp', 'gemini'])) | 117 | + expect(programsFor('sbx')).toEqual(expect.arrayContaining(['codex-acp', 'gemini'])) |
| 118 | expect(programsFor('local')).not.toContain('gemini') | 118 | expect(programsFor('local')).not.toContain('gemini') |
| 119 | expect(sbxArguments.gemini).toBe('--acp') | 119 | expect(sbxArguments.gemini).toBe('--acp') |
| 120 | expect(sbxArguments.codex).toBe('') | 120 | expect(sbxArguments.codex).toBe('') |
| @@ -132,7 +132,7 @@ describe('Codex and Gemini in an sbx sandbox (issues #82, #84)', () => { | |||
| 132 | }) | 132 | }) |
| 133 | 133 | ||
| 134 | describe('sandboxMismatch', () => { | 134 | describe('sandboxMismatch', () => { |
| 135 | - const codex = { ...emptyForm(), environment: 'sbx' as const, program: '/home/agent/.local/bin/codex-acp' } | 135 | + const codex = { ...emptyForm(), environment: 'sbx' as const, program: 'codex-acp' } |
| 136 | it("names the file's agent when it is not the program's", () => { | 136 | it("names the file's agent when it is not the program's", () => { |
| 137 | expect(sandboxMismatch(codex, 'claude')).toBe('claude') | 137 | expect(sandboxMismatch(codex, 'claude')).toBe('claude') |
| 138 | }) | 138 | }) |
modified
frontend/src/lib/agentform.ts +7 -6 | @@ -118,13 +118,13 @@ export type SbxAgent = 'claude' | 'codex' | 'gemini' | ||
| 118 | 118 | /** |
| 119 | 119 | * The program of each of them inside its sandbox, as the "Program" field |
| 120 | 120 | * offers it in an sbx sandbox only: Claude Code's and Codex's ACP adapters |
| 121 | - * (the docker.io/sbx/claude-acp and docker.io/sbx/codex-acp kits; the | |
| 122 | - * latter installs codex-acp outside the PATH), and Gemini CLI, which speaks | |
| 121 | + * (the docker.io/sbx/claude-acp and docker.io/sbx/codex-acp kits, both in | |
| 122 | + * the PATH), and Gemini CLI, which speaks | |
| 123 | 123 | * ACP itself with the argument --acp (docker.io/sbx/gemini-kit). |
| 124 | 124 | */ |
| 125 | 125 | export const sbxPrograms: Record<SbxAgent, string> = { |
| 126 | 126 | claude: 'claude-agent-acp', |
| 127 | - codex: '/home/agent/.local/bin/codex-acp', | |
| 127 | + codex: 'codex-acp', | |
| 128 | 128 | gemini: 'gemini', |
| 129 | 129 | } |
| 130 | 130 | |
| @@ -139,7 +139,7 @@ export const claudeProgram = sbxPrograms.claude | ||
| 139 | 139 | * sandbox, also the coding agents of sbxPrograms. |
| 140 | 140 | * |
| 141 | 141 | * @example |
| 142 | - * programsFor('sbx') // ['mm', 'docker-agent', 'docker agent', 'claude-agent-acp', '/home/agent/.local/bin/codex-acp', 'gemini'] | |
| 142 | + * programsFor('sbx') // ['mm', 'docker-agent', 'docker agent', 'claude-agent-acp', 'codex-acp', 'gemini'] | |
| 143 | 143 | */ |
| 144 | 144 | export function programsFor(environment: Environment): string[] { |
| 145 | 145 | return environment === 'sbx' ? [...knownPrograms, ...Object.values(sbxPrograms)] : [...knownPrograms] |
| @@ -148,7 +148,8 @@ export function programsFor(environment: Environment): string[] { | ||
| 148 | 148 | /** |
| 149 | 149 | * Which coding agent of sbxPrograms the form describes, in an sbx sandbox: |
| 150 | 150 | * its sbxenv.yaml gives the rest, it takes no configuration file. Codex is |
| 151 | - * recognised by its program's name alone, with or without its folder. | |
| 151 | + * also recognised with the folder the older docker.io/sbx/codex-acp-kit | |
| 152 | + * installed it in. | |
| 152 | 153 | * |
| 153 | 154 | * @example |
| 154 | 155 | * sbxAgentOf({ ...form, environment: 'sbx', program: 'codex-acp' }) // 'codex' |
| @@ -157,7 +158,7 @@ export function sbxAgentOf(form: AgentFormValues): SbxAgent | undefined { | ||
| 157 | 158 | if (form.environment !== 'sbx') return undefined |
| 158 | 159 | const program = form.program.trim() |
| 159 | 160 | if (program === sbxPrograms.claude) return 'claude' |
| 160 | - if (program === sbxPrograms.codex || program === 'codex-acp') return 'codex' | |
| 161 | + if (program === sbxPrograms.codex || program === '/home/agent/.local/bin/codex-acp') return 'codex' | |
| 161 | 162 | if (program === sbxPrograms.gemini) return 'gemini' |
| 162 | 163 | return undefined |
| 163 | 164 | } |
| @@ -118,13 +118,13 @@ export type SbxAgent = 'claude' | 'codex' | 'gemini' | |||
| 118 | /** | 118 | /** |
| 119 | * The program of each of them inside its sandbox, as the "Program" field | 119 | * The program of each of them inside its sandbox, as the "Program" field |
| 120 | * offers it in an sbx sandbox only: Claude Code's and Codex's ACP adapters | 120 | * offers it in an sbx sandbox only: Claude Code's and Codex's ACP adapters |
| 121 | - * (the docker.io/sbx/claude-acp and docker.io/sbx/codex-acp kits; the | 121 | + * (the docker.io/sbx/claude-acp and docker.io/sbx/codex-acp kits, both in |
| 122 | - * latter installs codex-acp outside the PATH), and Gemini CLI, which speaks | 122 | + * the PATH), and Gemini CLI, which speaks |
| 123 | * ACP itself with the argument --acp (docker.io/sbx/gemini-kit). | 123 | * ACP itself with the argument --acp (docker.io/sbx/gemini-kit). |
| 124 | */ | 124 | */ |
| 125 | export const sbxPrograms: Record<SbxAgent, string> = { | 125 | export const sbxPrograms: Record<SbxAgent, string> = { |
| 126 | claude: 'claude-agent-acp', | 126 | claude: 'claude-agent-acp', |
| 127 | - codex: '/home/agent/.local/bin/codex-acp', | 127 | + codex: 'codex-acp', |
| 128 | gemini: 'gemini', | 128 | gemini: 'gemini', |
| 129 | } | 129 | } |
| 130 | 130 | ||
| @@ -139,7 +139,7 @@ export const claudeProgram = sbxPrograms.claude | |||
| 139 | * sandbox, also the coding agents of sbxPrograms. | 139 | * sandbox, also the coding agents of sbxPrograms. |
| 140 | * | 140 | * |
| 141 | * @example | 141 | * @example |
| 142 | - * programsFor('sbx') // ['mm', 'docker-agent', 'docker agent', 'claude-agent-acp', '/home/agent/.local/bin/codex-acp', 'gemini'] | 142 | + * programsFor('sbx') // ['mm', 'docker-agent', 'docker agent', 'claude-agent-acp', 'codex-acp', 'gemini'] |
| 143 | */ | 143 | */ |
| 144 | export function programsFor(environment: Environment): string[] { | 144 | export function programsFor(environment: Environment): string[] { |
| 145 | return environment === 'sbx' ? [...knownPrograms, ...Object.values(sbxPrograms)] : [...knownPrograms] | 145 | return environment === 'sbx' ? [...knownPrograms, ...Object.values(sbxPrograms)] : [...knownPrograms] |
| @@ -148,7 +148,8 @@ export function programsFor(environment: Environment): string[] { | |||
| 148 | /** | 148 | /** |
| 149 | * Which coding agent of sbxPrograms the form describes, in an sbx sandbox: | 149 | * Which coding agent of sbxPrograms the form describes, in an sbx sandbox: |
| 150 | * its sbxenv.yaml gives the rest, it takes no configuration file. Codex is | 150 | * its sbxenv.yaml gives the rest, it takes no configuration file. Codex is |
| 151 | - * recognised by its program's name alone, with or without its folder. | 151 | + * also recognised with the folder the older docker.io/sbx/codex-acp-kit |
| 152 | + * installed it in. | ||
| 152 | * | 153 | * |
| 153 | * @example | 154 | * @example |
| 154 | * sbxAgentOf({ ...form, environment: 'sbx', program: 'codex-acp' }) // 'codex' | 155 | * sbxAgentOf({ ...form, environment: 'sbx', program: 'codex-acp' }) // 'codex' |
| @@ -157,7 +158,7 @@ export function sbxAgentOf(form: AgentFormValues): SbxAgent | undefined { | |||
| 157 | if (form.environment !== 'sbx') return undefined | 158 | if (form.environment !== 'sbx') return undefined |
| 158 | const program = form.program.trim() | 159 | const program = form.program.trim() |
| 159 | if (program === sbxPrograms.claude) return 'claude' | 160 | if (program === sbxPrograms.claude) return 'claude' |
| 160 | - if (program === sbxPrograms.codex || program === 'codex-acp') return 'codex' | 161 | + if (program === sbxPrograms.codex || program === '/home/agent/.local/bin/codex-acp') return 'codex' |
| 161 | if (program === sbxPrograms.gemini) return 'gemini' | 162 | if (program === sbxPrograms.gemini) return 'gemini' |
| 162 | return undefined | 163 | return undefined |
| 163 | } | 164 | } |