bots-garden/sidekickspublic Fork
⑂ v1.6.0
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/sidekicks.git
git clone ssh://git@rickub.com/bots-garden/sidekicks.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP
📦️ Create a release. 0a53b99 · on v1.6.0 · k33g · 24d ago
test-issues-49-and-50-on-macos.md · 117 lines · 7.6 KBmarkdown
Blame HistoryOpen raw

How to test issues #49 and #50 on macOS (an agent's configuration file, avatars)

This guide checks on a Mac what two issues of milestone M5 bring:

  • #49: in the "Add an agent" assistant, the Program field offers mm, docker-agent and docker agent, and dropping the agent's YAML file fills in its folder and its arguments;
  • #50: an agent whose icon is not an emoji is shown as a letter in a coloured circle.

It assumes the Mac is set up for milestone M4, with Garfield in the configuration and some history with him. Allow 20 minutes. The labels quoted are those of the interface in English, its default language.

Keep a macOS Terminal window open at the root of the repository.

0. Prepare

make check              # expected: 0 issues, Tests 101 passed, 15 passed, licence headers ok
mkdir -p "/tmp/my agent" && cp agents/milo/workspace/agent.yaml "/tmp/my agent/agent.yaml"
make dev
  • make check passes.

1. The Program field (#49)

  1. Open the assistant (⇧⌘N). On this computer is chosen.
  2. Click in Program: the list offers mm, docker-agent, docker agent. Type go: free typing still works. Clear the field.
  3. A dashed area The agent's configuration file (optional) sits under Program. Choose In a Docker container: it stays, with the note "The file must be in a folder the container mounts at the same path…". Choose In an sbx sandbox: the note becomes "The file must be in a folder the sandbox shares…". Go back to On this computer.
  • Steps 1 to 3 behave as described.

2. Dropping the agent's file (#49)

  1. With Program empty, drag agents/milo/workspace/agent.yaml from the Finder over the area: its border takes the accent colour. Drop it:
    • Agent's folder: …/agents/milo/workspace;
    • Arguments stays empty;
    • the message "The agent's folder is filled from …/agent.yaml. Choose mm, docker-agent or docker agent to fill the arguments too, or type them."
  2. Choose mm in Program: Arguments becomes --acp --config /…/agents/milo/workspace/agent.yaml (absolute path), and the message becomes "Filled from …/agent.yaml. You can still change every field."
  3. Choose docker-agent: serve acp /…/agent.yaml. Choose docker agent: serve acp /…/agent.yaml too.
  4. Type goose in Program: Arguments does not change. Type an argument by hand: the field stays editable.
  5. Change Agent's folder by hand, then go back to mm: the typed folder is kept and --config still points to the dropped file.
  6. Drop agents/milo/README.md on the area: "Drop the agent's YAML configuration file (.yaml or .yml).", and the fields do not change.
  7. Drop agent.yaml elsewhere in the window (outside the area): nothing changes, and the window does not navigate to the file.
  8. Click Choose a file…: the file dialog opens on your home folder (titled "Choose the agent's configuration file", if macOS shows the title). Pick /tmp/my agent/agent.yaml with mm: Arguments becomes --acp --config "/tmp/my agent/agent.yaml" (quoted) and Agent's folder /tmp/my agent.
  • Steps 1 to 8 behave as described.

3. What the assistant writes (#49)

  1. Still in the assistant: Name shown Dag test, Program docker agent, then drop /tmp/my agent/agent.yaml. Click Add the agent.

  2. In Settings, the dag-test entry holds:

    command: docker
    args: [agent, serve, acp, /tmp/my agent/agent.yaml]
    workspace: /tmp/my agent
    

    The path may be written in quotes. A "program not found" warning may show if docker is not in the PATH; it does not matter here.

  3. Add an agent Name shown App test, with Program /Applications/My Agent/agent (a path, even one that does not exist), Agent's folder /tmp/my agent. In Settings, command: /Applications/My Agent/agent is kept whole, with no args. A "program not found" warning is expected.

  4. Remove both agents in Settings and save.

  • Steps 1 to 4 behave as described.

3b. The same in an sbx sandbox (#49)

  1. In the assistant, choose In an sbx sandbox, Sandbox name milo-sbx, Program mm, then drop agents/milo/workspace/agent.yaml on The agent's configuration file: Agent's folder and Arguments are filled as in section 2.
  2. Drop agents/milo/sbxenv.yaml on the sandbox area: the sandbox commands are filled, and Agent's folder is kept.
  3. Name shown Milo sbx test, Add the agent. In Settings: command: sbx, args: [exec, -i, milo-sbx, mm, --acp, --config, /…/agents/milo/workspace/agent.yaml]. With the sandbox running, write to the agent: it answers (optional). Remove milo-sbx-test.
  • Steps 1 to 3 behave as described.

4. A real mm agent from its file (#49, optional)

Never run more than two mm agents at once.

  1. In the assistant: Name shown Milo local, Program mm, drop agents/milo/workspace/agent.yaml, Add the agent.
  2. Its direct conversation opens: write to it, it answers.
  3. Remove milo-local in Settings.
  • Steps 1 to 3 behave as described (or mm is not installed).

5. The avatar preview in the assistant (#50)

  1. Open the assistant: the Icon field is empty, with 🤖 / A as a hint, and the help "An emoji, or a letter shown in a coloured circle. Left empty, the first letter of the name shown is used." Next to it, the preview is a coloured circle with ?.
  2. Type Hélène in Name shown: the preview becomes H (no accent), and its colour may change as the @ name fills in.
  3. Type 🐙 in Icon: the preview is the emoji, with no circle. Replace it with z: a circle with Z. Clear Icon: H again.
  4. Cancel.
  • Steps 1 to 4 behave as described.

6. Avatars in the application (#50)

  1. In Settings, replace Garfield's icon with g (icon: "g") and save.
  2. A coloured circle with G, of the same colour everywhere, shows:
    • in the Agents panel, before Garfield (translator);
    • in Channels, before the direct conversation with Garfield;
    • in the header of that direct conversation;
    • before Garfield's name in his messages;
    • in the header of 📂 (the agent's view);
    • in the member list of #translations.
  3. In a channel, type @ in the message field: the list shows each agent's avatar, the G circle for Garfield and their emoji for the others. Open the palette (⌘K): Garfield shows as Garfield (translator), with no letter (text only). The Invite menu of a channel Garfield is not in shows him without an icon too.
  4. The other agents keep their emoji, in messages too.
  5. Switch to the dark theme (ui.theme: dark in Settings): the white letter stays readable on the circle. Put your theme back.
  6. Delete Garfield's icon line and save: the circle shows G (the first letter of his title), of the same colour. Put icon: "🐮" back.
  • Steps 1 to 6 behave as described.

If something differs

Symptom Likely cause What to do
The Program list does not open on click WebKit shows the list only while typing or with the ↓ key type a letter or press ↓; note the macOS version in the issue
Nothing happens when the file is dropped dropped outside the dashed area, or the environment is not On this computer drop it on the area
An emoji shows as a letter in a circle a symbol the detection does not take for an emoji note the character in issue #50

Close the issues

If everything behaves as described, close issues #49 and #50 (or ask the assistant to). Otherwise, comment on the issue concerned with what differs.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# How to test issues #49 and #50 on macOS (an agent's configuration file, avatars)

This guide checks on a Mac what two issues of milestone M5 bring:

- **#49**: in the "Add an agent" assistant, the **Program** field offers `mm`, `docker-agent` and `docker agent`, and dropping the agent's YAML file fills in its folder and its arguments;
- **#50**: an agent whose icon is not an emoji is shown as a letter in a coloured circle.

It assumes the Mac is set up for [milestone M4](test-milestone-m4-on-macos.md), with Garfield in the configuration and some history with him. Allow 20 minutes. The labels quoted are those of the interface in English, its default language.

Keep a macOS Terminal window open at the root of the repository.

## 0. Prepare

```bash
make check              # expected: 0 issues, Tests 101 passed, 15 passed, licence headers ok
mkdir -p "/tmp/my agent" && cp agents/milo/workspace/agent.yaml "/tmp/my agent/agent.yaml"
make dev
```

- [ ] `make check` passes.

## 1. The Program field (#49)

1. Open the assistant (**⇧⌘N**). **On this computer** is chosen.
2. Click in **Program**: the list offers `mm`, `docker-agent`, `docker agent`. Type `go`: free typing still works. Clear the field.
3. A dashed area **The agent's configuration file (optional)** sits under **Program**. Choose **In a Docker container**: it stays, with the note "The file must be in a folder the container mounts at the same path…". Choose **In an sbx sandbox**: the note becomes "The file must be in a folder the sandbox shares…". Go back to **On this computer**.

- [ ] Steps 1 to 3 behave as described.

## 2. Dropping the agent's file (#49)

1. With **Program** empty, drag `agents/milo/workspace/agent.yaml` from the Finder over the area: its border takes the accent colour. Drop it:
   - **Agent's folder**: `…/agents/milo/workspace`;
   - **Arguments** stays empty;
   - the message "The agent's folder is filled from …/agent.yaml. Choose mm, docker-agent or docker agent to fill the arguments too, or type them."
2. Choose `mm` in **Program**: **Arguments** becomes `--acp --config /…/agents/milo/workspace/agent.yaml` (absolute path), and the message becomes "Filled from …/agent.yaml. You can still change every field."
3. Choose `docker-agent`: `serve acp /…/agent.yaml`. Choose `docker agent`: `serve acp /…/agent.yaml` too.
4. Type `goose` in **Program**: **Arguments** does not change. Type an argument by hand: the field stays editable.
5. Change **Agent's folder** by hand, then go back to `mm`: the typed folder is kept and `--config` still points to the dropped file.
6. Drop `agents/milo/README.md` on the area: "Drop the agent's YAML configuration file (.yaml or .yml).", and the fields do not change.
7. Drop `agent.yaml` **elsewhere** in the window (outside the area): nothing changes, and the window does not navigate to the file.
8. Click **Choose a file…**: the file dialog opens on your home folder (titled "Choose the agent's configuration file", if macOS shows the title). Pick `/tmp/my agent/agent.yaml` with `mm`: **Arguments** becomes `--acp --config "/tmp/my agent/agent.yaml"` (quoted) and **Agent's folder** `/tmp/my agent`.

- [ ] Steps 1 to 8 behave as described.

## 3. What the assistant writes (#49)

1. Still in the assistant: **Name shown** `Dag test`, **Program** `docker agent`, then drop `/tmp/my agent/agent.yaml`. Click **Add the agent**.
2. In **Settings**, the `dag-test` entry holds:

   ```yaml
   command: docker
   args: [agent, serve, acp, /tmp/my agent/agent.yaml]
   workspace: /tmp/my agent
   ```

   The path may be written in quotes. A "program not found" warning may show if `docker` is not in the `PATH`; it does not matter here.
3. Add an agent **Name shown** `App test`, with **Program** `/Applications/My Agent/agent` (a path, even one that does not exist), **Agent's folder** `/tmp/my agent`. In **Settings**, `command: /Applications/My Agent/agent` is kept whole, with no `args`. A "program not found" warning is expected.
4. Remove both agents in **Settings** and save.

- [ ] Steps 1 to 4 behave as described.

## 3b. The same in an sbx sandbox (#49)

1. In the assistant, choose **In an sbx sandbox**, **Sandbox name** `milo-sbx`, **Program** `mm`, then drop `agents/milo/workspace/agent.yaml` on **The agent's configuration file**: **Agent's folder** and **Arguments** are filled as in section 2.
2. Drop `agents/milo/sbxenv.yaml` on the sandbox area: the sandbox commands are filled, and **Agent's folder** is kept.
3. **Name shown** `Milo sbx test`, **Add the agent**. In **Settings**: `command: sbx`, `args: [exec, -i, milo-sbx, mm, --acp, --config, /…/agents/milo/workspace/agent.yaml]`. With the sandbox running, write to the agent: it answers (optional). Remove `milo-sbx-test`.

- [ ] Steps 1 to 3 behave as described.

## 4. A real mm agent from its file (#49, optional)

Never run more than two mm agents at once.

1. In the assistant: **Name shown** `Milo local`, **Program** `mm`, drop `agents/milo/workspace/agent.yaml`, **Add the agent**.
2. Its direct conversation opens: write to it, it answers.
3. Remove `milo-local` in **Settings**.

- [ ] Steps 1 to 3 behave as described (or mm is not installed).

## 5. The avatar preview in the assistant (#50)

1. Open the assistant: the **Icon** field is empty, with `🤖 / A` as a hint, and the help "An emoji, or a letter shown in a coloured circle. Left empty, the first letter of the name shown is used." Next to it, the preview is a coloured circle with `?`.
2. Type `Hélène` in **Name shown**: the preview becomes `H` (no accent), and its colour may change as the @ name fills in.
3. Type `🐙` in **Icon**: the preview is the emoji, with no circle. Replace it with `z`: a circle with `Z`. Clear **Icon**: `H` again.
4. **Cancel**.

- [ ] Steps 1 to 4 behave as described.

## 6. Avatars in the application (#50)

1. In **Settings**, replace Garfield's icon with `g` (`icon: "g"`) and save.
2. A coloured circle with `G`, **of the same colour everywhere**, shows:
   - in the **Agents** panel, before `Garfield (translator)`;
   - in **Channels**, before the direct conversation with Garfield;
   - in the header of that direct conversation;
   - before Garfield's name in his messages;
   - in the header of **📂** (the agent's view);
   - in the member list of `#translations`.
3. In a channel, type `@` in the message field: the list shows each agent's avatar, the `G` circle for Garfield and their emoji for the others. Open the palette (**⌘K**): Garfield shows as `Garfield (translator)`, with no letter (text only). The **Invite** menu of a channel Garfield is not in shows him without an icon too.
4. The other agents keep their emoji, in messages too.
5. Switch to the dark theme (`ui.theme: dark` in **Settings**): the white letter stays readable on the circle. Put your theme back.
6. Delete Garfield's `icon` line and save: the circle shows `G` (the first letter of his title), of the same colour. Put `icon: "🐮"` back.

- [ ] Steps 1 to 6 behave as described.

## If something differs

| Symptom | Likely cause | What to do |
| --- | --- | --- |
| The **Program** list does not open on click | WebKit shows the list only while typing or with the ↓ key | type a letter or press ↓; note the macOS version in the issue |
| Nothing happens when the file is dropped | dropped outside the dashed area, or the environment is not **On this computer** | drop it on the area |
| An emoji shows as a letter in a circle | a symbol the detection does not take for an emoji | note the character in issue #50 |

## Close the issues

If everything behaves as described, close issues #49 and #50 (or ask the assistant to). Otherwise, comment on the issue concerned with what differs.