bots-garden/sidekickspublic Fork
⑂ release/v1.5.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
🛟 Updated. 1d19377 · on release/v1.5.0 · k33g · 26d ago
test-milestone-m1-on-macos.md · 112 lines · 5.2 KBmarkdown
Blame HistoryOpen raw

How to test milestone M1 on macOS

This guide checks on a Mac (Apple Silicon) what milestone M1 (Foundations) produced: the build, the automated checks, the configuration loading, the agent manager and the panel shell. It assumes the Mac was prepared for milestone Initialize (Go, Node, Xcode tools, Wails CLI, mm, llmman and the models) and the repository is on the M1 branch. Allow 30 minutes.

0. Prepare

npm install -g pnpm@12.11.2
pnpm --version                    # 12.11.2
make install

make install installs the frontend dependencies with the native binaries of macOS and Linux, so the shared folder keeps working in the Linux sandbox.

  • make install ends without errors.

1. The automated checks (#8)

make check

Expected at the end: 14 passed, 0 failed and all licence header tests passed, with 0 issues. from golangci-lint before.

make test-real

Expected: ok … internal/acp — the ACP handshake with the real Alice. scripts/agents.sh ps lists no agent afterwards.

  • make check passes.
  • make test-real passes.

2. The application with the test agents (#10, #11, #12, #13)

SIDEKICKS_CONFIG="$PWD/examples/test-agents.yaml" make dev

Check, in order:

  1. Window: the left dock starts below the red/orange/green buttons; the status bar says "0 active agents" and shows the configuration path.
  2. Agents: Alice, Bob, Riker, Garfield are listed, "stopped".
  3. Start: hover Alice, click ▶ — orange ("starting…"), then green ("ready"); "1 active agent".
  4. Log: click Log — the panel opens at a comfortable size with Alice's mm v1.0.3 | … lines; the selector shows Alice.
  5. Limit: start Bob, then Riker. Riker starts and Alice (the least recently used) goes back to "stopped": two agents at most. In a terminal, scripts/agents.sh ps lists two agents.
  6. Stop: hover Bob, click ■ — "stopped".
  7. Docks: click Agents, Log, Settings in the status bar — each dock folds and unfolds; drag the separators, quit (⌘Q) and relaunch: the sizes are kept.
  8. Quit with agents running: with Riker still running, quit (⌘Q). scripts/agents.sh ps lists no agent and no model.
  9. Theme: System Settings → Appearance → Light / Dark: the whole window follows.
  • Points 1 to 9 are as described.

3. The configuration (#9)

Follow steps 5 and 6 of the tutorial Your first launch of Sidekicks: a typo in the file shows a red banner and located messages within a second, and fixing it removes them without restarting.

Then check the default file: quit, move your configuration away if you have one, and run without SIDEKICKS_CONFIG:

mv ~/Library/Application\ Support/sidekicks/config.yaml /tmp/ 2>/dev/null
make dev

Settings shows the full path /Users/<you>/Library/Application Support/sidekicks/config.yaml, "default location — created for you" and "✓ Valid configuration". Open the file to check that every key has a comment — without quotes around ~, or the shell does not replace it with your home folder:

open ~/Library/Application\ Support/sidekicks/            # the folder, in the Finder
open -e ~/Library/Application\ Support/sidekicks/config.yaml   # the file, in TextEdit

To make the default configuration work with the test agents, write it with absolute paths to the repository (the empty file is kept as .bak):

make install-test-config

It also gives each agent MM_BIN and your PATH: an application opened from the Finder only gets a minimal PATH and would find neither mm nor jq. If you would rather get your own file back, put it back instead:

mv /tmp/config.yaml ~/Library/Application\ Support/sidekicks/config.yaml
  • Problems are located and the file reloads on save.
  • The default file is created, commented and valid.

4. The packaged application

make package
open bin/sidekicks.app

Without SIDEKICKS_CONFIG, it opens the default configuration — the test agents' one after make install-test-config. Repeat points 1, 3 and 7 of part 2.

  • bin/sidekicks.app opens and behaves as in development mode.

If everything is as described, M1 is confirmed: close issue #12 and set milestone M1 · Fondations to closed in .tickets/milestones.yaml — or ask the assistant to do it. Otherwise, comment the issue concerned with what differs.

Troubleshooting

Symptom Likely cause Fix
pnpm: command not found pnpm not installed npm install -g pnpm@12.11.2
Cannot find native binding during the frontend build node_modules installed with npm, or before pnpm-workspace.yaml existed delete frontend/node_modules, run make install
wails3: command not found GOPATH/bin not on PATH export PATH="$(go env GOPATH)/bin:$PATH"
An agent goes to "error" at once mm or llmman missing read the message under the agent and its Log
make check fails in bindings code bindings older than the Go code make bindings

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
100
101
102
103
104
105
106
107
108
109
110
111
112
# How to test milestone M1 on macOS

This guide checks on a Mac (Apple Silicon) what milestone M1 (Foundations) produced: the build, the automated checks, the configuration loading, the agent manager and the panel shell. It assumes the Mac was prepared for [milestone Initialize](test-milestone-initialize-on-macos.md) (Go, Node, Xcode tools, Wails CLI, `mm`, llmman and the models) and the repository is on the M1 branch. Allow 30 minutes.

## 0. Prepare

```bash
npm install -g pnpm@12.11.2
pnpm --version                    # 12.11.2
make install
```

`make install` installs the frontend dependencies with the native binaries of macOS **and** Linux, so the shared folder keeps working in the Linux sandbox.

- [ ] `make install` ends without errors.

## 1. The automated checks (#8)

```bash
make check
```

Expected at the end: `14 passed, 0 failed` and `all licence header tests passed`, with `0 issues.` from golangci-lint before.

```bash
make test-real
```

Expected: `ok … internal/acp` — the ACP handshake with the real Alice. `scripts/agents.sh ps` lists no agent afterwards.

- [ ] `make check` passes.
- [ ] `make test-real` passes.

## 2. The application with the test agents (#10, #11, #12, #13)

```bash
SIDEKICKS_CONFIG="$PWD/examples/test-agents.yaml" make dev
```

Check, in order:

1. **Window**: the left dock starts below the red/orange/green buttons; the status bar says "0 active agents" and shows the configuration path.
2. **Agents**: Alice, Bob, Riker, Garfield are listed, "stopped".
3. **Start**: hover Alice, click ▶ — orange ("starting…"), then green ("ready"); "1 active agent".
4. **Log**: click **Log** — the panel opens at a comfortable size with Alice's `mm v1.0.3 | …` lines; the selector shows Alice.
5. **Limit**: start Bob, then Riker. Riker starts and **Alice** (the least recently used) goes back to "stopped": two agents at most. In a terminal, `scripts/agents.sh ps` lists two agents.
6. **Stop**: hover Bob, click ■ — "stopped".
7. **Docks**: click **Agents**, **Log**, **Settings** in the status bar — each dock folds and unfolds; drag the separators, quit (⌘Q) and relaunch: the sizes are kept.
8. **Quit with agents running**: with Riker still running, quit (⌘Q). `scripts/agents.sh ps` lists no agent and no model.
9. **Theme**: System Settings → Appearance → Light / Dark: the whole window follows.

- [ ] Points 1 to 9 are as described.

## 3. The configuration (#9)

Follow steps 5 and 6 of the tutorial [Your first launch of Sidekicks](../tutorials/first-launch.md): a typo in the file shows a red banner and located messages within a second, and fixing it removes them without restarting.

Then check the default file: quit, move your configuration away if you have one, and run without `SIDEKICKS_CONFIG`:

```bash
mv ~/Library/Application\ Support/sidekicks/config.yaml /tmp/ 2>/dev/null
make dev
```

Settings shows the full path `/Users/<you>/Library/Application Support/sidekicks/config.yaml`, "default location — created for you" and "✓ Valid configuration". Open the file to check that every key has a comment — without quotes around `~`, or the shell does not replace it with your home folder:

```bash
open ~/Library/Application\ Support/sidekicks/            # the folder, in the Finder
open -e ~/Library/Application\ Support/sidekicks/config.yaml   # the file, in TextEdit
```

To make the default configuration work with the test agents, write it with absolute paths to the repository (the empty file is kept as `.bak`):

```bash
make install-test-config
```

It also gives each agent `MM_BIN` and your `PATH`: an application opened from the Finder only gets a minimal `PATH` and would find neither `mm` nor `jq`. If you would rather get your own file back, put it back instead:

```bash
mv /tmp/config.yaml ~/Library/Application\ Support/sidekicks/config.yaml
```

- [ ] Problems are located and the file reloads on save.
- [ ] The default file is created, commented and valid.

## 4. The packaged application

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

Without `SIDEKICKS_CONFIG`, it opens the default configuration — the test agents' one after `make install-test-config`. Repeat points 1, 3 and 7 of part 2.

- [ ] `bin/sidekicks.app` opens and behaves as in development mode.

If everything is as described, M1 is confirmed: close issue #12 and set milestone **M1 · Fondations** to `closed` in `.tickets/milestones.yaml` — or ask the assistant to do it. Otherwise, comment the issue concerned with what differs.

## Troubleshooting

| Symptom | Likely cause | Fix |
| --- | --- | --- |
| `pnpm: command not found` | pnpm not installed | `npm install -g pnpm@12.11.2` |
| `Cannot find native binding` during the frontend build | `node_modules` installed with npm, or before `pnpm-workspace.yaml` existed | delete `frontend/node_modules`, run `make install` |
| `wails3: command not found` | `GOPATH/bin` not on `PATH` | `export PATH="$(go env GOPATH)/bin:$PATH"` |
| An agent goes to "error" at once | `mm` or llmman missing | read the message under the agent and its Log |
| `make check` fails in `bindings` code | bindings older than the Go code | `make bindings` |

## See also

- [How to develop the application](develop-the-application.md) · [Reference: agents, channels and events](../reference/agents-and-events.md)