bots-garden/sidekickspublic Fork
⑂ feature/m2-chat
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
🛟 Updated. 6713ff0 · on feature/m2-chat · k33g · 26d ago
test-milestone-m2-on-macos.md · 99 lines · 6.5 KBmarkdown
Blame HistoryOpen raw

How to test milestone M2 on macOS

This guide checks on a Mac what milestone M2 (Conversation with an agent) produced: talking with an agent in streaming, Markdown rendering, tool calls and permissions, the configuration editor and opening another file. It assumes the Mac was prepared for milestone M1 (pnpm, Wails, mm, llmman and the models) and the repository is on the M2 branch. Allow 30 to 40 minutes.

Open Activity Monitor (Memory tab) and keep a terminal for scripts/agents.sh ps.

0. Prepare

make install            # new frontend dependencies (CodeMirror, Shiki, markdown-it…)
make check              # expected: 0 issues, Tests 43 passed, 14 passed, licence headers ok
make test-real          # expected: ok … internal/acp and ok … internal/conversations (Alice then Riker)
make install-test-config
make dev
  • make check and make test-real pass; scripts/agents.sh ps lists no model afterwards.

1. Talk with Alice (#14, #15, #16)

  1. Click Alice: her conversation opens in the centre; nothing is hidden under the window buttons.
  2. Send: Donne un tableau markdown de 2 lignes (nom, rôle) puis un bloc de code Go qui affiche hello. — the answer arrives word by word; meanwhile "writing…", an orange dot and a ■ Stop button.
  3. At the end: a table, a coloured Go block with its language and Copier; click Copier, then paste in TextEdit (⌘V).
  4. Theme: System Settings → Appearance → Dark: the code changes colours with the rest.
  5. Send: Mets un lien vers https://wails.io and click the link: it opens in your browser, not in Sidekicks.
  6. Send Je m'appelle <your first name>. then Comment je m'appelle ? — Alice remembers (same session).
  7. Composer: Shift+Enter makes a new line; ↑ in the empty box brings back the previous message.
  8. Send two messages in a row: the second shows "waiting" and leaves when the first answer ends; the header says "1 waiting".
  • Points 1 to 8 are as described.

2. Tools and permissions with Riker (#17)

  1. Click Riker, send: Utilise l'outil bash pour exécuter la commande ls dans le dossier courant, puis dis-moi combien d'entrées il y a.
  2. A framed card: "Riker (tools) wants to run a command on your computer", ls, buttons in this order Allow once · Always allow here · Never propose this here · Reject once, and ■ Stop Riker (tools). Click Allow once: a line "🛠 bash: ls ✓ done" (unfold it: command and output), then the answer.
  3. Send: Utilise l'outil bash pour supprimer les fichiers .tmp du dossier courant avec rm -f *.tmp — the card shows "⚠ This may not be undoable: check before allowing." in red. Click Never propose this here.
  4. Depending on the model: the answer ends, or Riker insists and its tools fail one after another — at the third failure in a row, a banner "Riker (tools) is going in circles…" offers ■ Stop. Click it: "Answer stopped.". Check that no file was deleted in agents/riker.
  5. Send Écris un poème de 60 vers sur la mer. and click ■ Stop while it writes: "Answer stopped.", green dot.
  6. If an answer ends with an mm error, the message is readable (e.g. "generation timed out (stalled)"), not JSON.
  • Points 1 to 6 are as described.

3. Garfield and his skills

Click Garfield, send /idioms Il pleut des cordes. — a line "🛠 read_skill: idioms ✓ done" then a translation such as "It's raining cats and dogs".

  • The skill is used.

4. The memory limit with conversations

With Alice and Riker started, write to Garfield: the idle agent used least recently is stopped to make room. Then go back to that agent and write to it: a grey message says it restarted and no longer remembers the beginning.

  • Two agents at most (scripts/agents.sh ps), and the restart message appears.

5. The configuration editor (#18)

  1. Click Settings: the panel opens wide enough; the file is coloured, Revert / Save are visible at the bottom.
  2. On the line stopIdleAgentsAfter: 5m, add x at the end: red underline within a second, a dot in the gutter, an explanation on hover.
  3. ⌘S: "Not saved: fix the errors first." and the problem listed; click it: the caret goes to the line.
  4. Delete the x: the message disappears; Revert is greyed out (nothing changed).
  5. Under maxRunningAgents: 2, new line, type sto: completion offers stopIdleAgentsAfter. In ui: (add it), type theme: then Ctrl+Space: system, light, dark. Choose dark, ⌘S: "Saved…" and the whole window turns dark.
  6. Change the file with another editor (open -e ~/Library/Application\ Support/sidekicks/config.yaml) and save: the panel shows the new text (if it had no change in progress).
  • Points 1 to 6 are as described.

6. Open another configuration (#19)

  1. Settings → Open…: the macOS file dialog opens; choose examples/test-agents.yaml in the repository.
  2. Conversations are emptied, agents stopped, the path shown is the chosen file's, the source "opened from Sidekicks".
  3. Recent… lists that file; quit (⌘Q) and run make dev again: it opens that file.
  4. Go back to the default configuration with Open… (~/Library/Application Support/sidekicks/config.yaml — ⇧⌘G in the dialog to type the path).
  • Points 1 to 4 are as described.

7. The packaged application

make package && open bin/sidekicks.app

Quickly repeat 1.2 and 2.2. Quit with agents running: scripts/agents.sh ps lists no agent and no model.

  • As described; no model stays loaded.

If everything is as described, M2 is confirmed: close issue #15 and milestone M2 · Conversation avec un agent (or ask the assistant). Otherwise, comment the issue concerned.

Troubleshooting

Symptom Likely cause Fix
The frontend does not build after the merge dependencies not reinstalled make install
A model stays loaded after quitting a busy agent was stopped abruptly scripts/agents.sh unload --all, and note in issue #15 what the agent was doing
Code is not coloured in the first message Shiki is still loading it is coloured as soon as it is ready (under a second)
make test-real fails on Riker the model answered without asking permission run it again; small models vary from one run to the next

See also

 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
# How to test milestone M2 on macOS

This guide checks on a Mac what milestone M2 (Conversation with an agent) produced: talking with an agent in streaming, Markdown rendering, tool calls and permissions, the configuration editor and opening another file. It assumes the Mac was prepared for [milestone M1](test-milestone-m1-on-macos.md) (pnpm, Wails, `mm`, llmman and the models) and the repository is on the M2 branch. Allow 30 to 40 minutes.

Open **Activity Monitor** (Memory tab) and keep a terminal for `scripts/agents.sh ps`.

## 0. Prepare

```bash
make install            # new frontend dependencies (CodeMirror, Shiki, markdown-it…)
make check              # expected: 0 issues, Tests 43 passed, 14 passed, licence headers ok
make test-real          # expected: ok … internal/acp and ok … internal/conversations (Alice then Riker)
make install-test-config
make dev
```

- [ ] `make check` and `make test-real` pass; `scripts/agents.sh ps` lists no model afterwards.

## 1. Talk with Alice (#14, #15, #16)

1. Click **Alice**: her conversation opens in the centre; nothing is hidden under the window buttons.
2. Send: `Donne un tableau markdown de 2 lignes (nom, rôle) puis un bloc de code Go qui affiche hello.` — the answer arrives word by word; meanwhile "writing…", an orange dot and a **■ Stop** button.
3. At the end: a table, a coloured Go block with its language and **Copier**; click **Copier**, then paste in TextEdit (⌘V).
4. Theme: System Settings → Appearance → Dark: the code changes colours with the rest.
5. Send: `Mets un lien vers https://wails.io` and click the link: it opens in your browser, not in Sidekicks.
6. Send `Je m'appelle <your first name>.` then `Comment je m'appelle ?` — Alice remembers (same session).
7. Composer: Shift+Enter makes a new line; ↑ in the empty box brings back the previous message.
8. Send two messages in a row: the second shows "waiting" and leaves when the first answer ends; the header says "1 waiting".

- [ ] Points 1 to 8 are as described.

## 2. Tools and permissions with Riker (#17)

1. Click **Riker**, send: `Utilise l'outil bash pour exécuter la commande ls dans le dossier courant, puis dis-moi combien d'entrées il y a.`
2. A framed card: "Riker (tools) wants to run a command on your computer", `ls`, buttons in this order **Allow once · Always allow here · Never propose this here · Reject once**, and **■ Stop Riker (tools)**. Click **Allow once**: a line "🛠 bash: ls ✓ done" (unfold it: command and output), then the answer.
3. Send: `Utilise l'outil bash pour supprimer les fichiers .tmp du dossier courant avec rm -f *.tmp` — the card shows "⚠ This may not be undoable: check before allowing." in red. Click **Never propose this here**.
4. Depending on the model: the answer ends, or Riker insists and its tools fail one after another — at the third failure in a row, a banner "Riker (tools) is going in circles…" offers **■ Stop**. Click it: "Answer stopped.". Check that no file was deleted in `agents/riker`.
5. Send `Écris un poème de 60 vers sur la mer.` and click **■ Stop** while it writes: "Answer stopped.", green dot.
6. If an answer ends with an mm error, the message is readable (e.g. "generation timed out (stalled)"), not JSON.

- [ ] Points 1 to 6 are as described.

## 3. Garfield and his skills

Click **Garfield**, send `/idioms Il pleut des cordes.` — a line "🛠 read_skill: idioms ✓ done" then a translation such as "It's raining cats and dogs".

- [ ] The skill is used.

## 4. The memory limit with conversations

With Alice and Riker started, write to **Garfield**: the idle agent used least recently is stopped to make room. Then go back to that agent and write to it: a grey message says it restarted and no longer remembers the beginning.

- [ ] Two agents at most (`scripts/agents.sh ps`), and the restart message appears.

## 5. The configuration editor (#18)

1. Click **Settings**: the panel opens wide enough; the file is coloured, **Revert / Save** are visible at the bottom.
2. On the line `stopIdleAgentsAfter: 5m`, add `x` at the end: red underline within a second, a dot in the gutter, an explanation on hover.
3. **⌘S**: "Not saved: fix the errors first." and the problem listed; click it: the caret goes to the line.
4. Delete the `x`: the message disappears; **Revert** is greyed out (nothing changed).
5. Under `maxRunningAgents: 2`, new line, type `sto`: completion offers `stopIdleAgentsAfter`. In `ui:` (add it), type `theme: ` then Ctrl+Space: `system, light, dark`. Choose `dark`, **⌘S**: "Saved…" and the whole window turns dark.
6. Change the file with another editor (`open -e ~/Library/Application\ Support/sidekicks/config.yaml`) and save: the panel shows the new text (if it had no change in progress).

- [ ] Points 1 to 6 are as described.

## 6. Open another configuration (#19)

1. **Settings → Open…**: the macOS file dialog opens; choose `examples/test-agents.yaml` in the repository.
2. Conversations are emptied, agents stopped, the path shown is the chosen file's, the source "opened from Sidekicks".
3. **Recent…** lists that file; quit (⌘Q) and run `make dev` again: it opens that file.
4. Go back to the default configuration with **Open…** (`~/Library/Application Support/sidekicks/config.yaml` — ⇧⌘G in the dialog to type the path).

- [ ] Points 1 to 4 are as described.

## 7. The packaged application

```bash
make package && open bin/sidekicks.app
```

Quickly repeat 1.2 and 2.2. Quit with agents running: `scripts/agents.sh ps` lists no agent and no model.

- [ ] As described; no model stays loaded.

If everything is as described, M2 is confirmed: close issue #15 and milestone **M2 · Conversation avec un agent** (or ask the assistant). Otherwise, comment the issue concerned.

## Troubleshooting

| Symptom | Likely cause | Fix |
| --- | --- | --- |
| The frontend does not build after the merge | dependencies not reinstalled | `make install` |
| A model stays loaded after quitting | a busy agent was stopped abruptly | `scripts/agents.sh unload --all`, and note in issue #15 what the agent was doing |
| Code is not coloured in the first message | Shiki is still loading | it is coloured as soon as it is ready (under a second) |
| `make test-real` fails on Riker | the model answered without asking permission | run it again; small models vary from one run to the next |

## See also

- [Your first conversation](../tutorials/first-conversation.md) · [Edit or switch the configuration](edit-or-switch-the-configuration.md)
- [Reference: agent states and events](../reference/agents-and-events.md) · [Permissions and trust](../explanation/permissions.md)