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-issue-52-on-macos.md · 98 lines · 5.4 KBmarkdown
Blame HistoryOpen raw

How to test issue #52 on macOS (the Danger zone)

This guide checks on a Mac the Danger zone of Settings: resetting the configuration, the history of one configuration or of all of them, while keeping a dated copy of each thing. To leave your real configuration alone, the tests use a copy in /tmp. Allow 15 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. SK is the Sidekicks folder:

SK=~/Library/Application\ Support/sidekicks

0. Prepare

make check              # expected: 0 issues, Tests 101 passed, 15 passed, licence headers ok
mkdir -p /tmp/sk-reset && cp examples/test-agents.yaml /tmp/sk-reset/config.yaml
cp "$SK/preferences.json" /tmp/sk-reset/preferences.before.json 2>/dev/null   # to put it back at the end
make dev

In Settings, click Open… and open /tmp/sk-reset/config.yaml. Note the path of your usual configuration, to open it again at the end. "program not found" warnings may show (the example's relative paths lead nowhere from /tmp): they do not matter here.

  • make check passes and /tmp/sk-reset/config.yaml is open.

1. The section

  1. At the bottom of Settings, a Danger zone section is folded, with a red border. Unfold it.
  2. It explains that nothing is deleted, and offers four choices, each with a sentence: Reset the settings, Clear the history of this configuration, Clear the history of every configuration, Reset everything.
  3. Click Reset…: the confirmation says what will be lost for the chosen option, and that a dated copy is kept. Pick another choice: the confirmation closes. Reset… then Cancel: nothing happens.
  • Steps 1 to 3 behave as described.

2. Clear the history of this configuration

  1. Create a channel scratch and write a message in it (no agent needs to answer). Write a message in #general too.
  2. Danger zone → Clear the history of this configuration → Reset… → Reset.
  3. "Done. The copies kept:" lists a folder …/sidekicks/data/<hash>.<date> (a date like 2026-10-31T08-15-00). In the Terminal: ls "$SK/data" shows it next to a new <hash> folder.
  4. In Channels, scratch is gone; the channels the file declares (#general, #translations) are there, empty. No conversation is left on screen.
  5. Write in #general: the message shows, the application works without a restart.
  6. If an agent was running, it is now stopped.
  • Steps 1 to 6 behave as described.

3. Reset the settings

  1. Create a channel keep. In the editor, add a line # draft without saving.

  2. Danger zone → Reset the settings → Reset…: the confirmation warns "Your unsaved changes in the editor are lost." → Reset.

  3. The copies listed are /tmp/sk-reset/config.<date>.yaml and …/sidekicks/preferences.<date>.json.

  4. The editor shows the commented default configuration, without # draft; the state is valid. The Agents panel is empty. The recent files menu is gone.

  5. keep is still in Channels: this choice does not touch the history.

  6. In the Terminal:

    diff examples/test-agents.yaml /tmp/sk-reset/config.20*.yaml && echo identical
    ls "$SK"/preferences*
    

    The copy is identical to the starting configuration; preferences.json no longer exists, its dated copy does.

  • Steps 1 to 6 behave as described.

4. Every configuration (optional)

These two choices rename all the history, your real configurations' included. It can be got back (step 4), but only test them if you accept that.

  1. Clear the history of every configuration → Reset… → Reset: the copy listed is …/sidekicks/data.<date>. ls "$SK" shows data.<date> and a new data.

  2. Reset everything → Reset… → Reset: three copies (configuration, preferences if any, data.<date>). The default configuration and an empty #general show.

  3. Run Clear the history of every configuration twice in a row, quickly: the second copy may get a -2 suffix, with no error.

  4. To get the earlier history back: quit Sidekicks (⌘Q), then

    cd "$SK" && mv data data.empty && mv data.<the-first-date> data
    
  • Steps 1 to 4 behave as described (or skipped).

5. In French

With ui.language: fr, the section is called Zone de danger, and the choices, confirmations and messages are in French.

  • This behaves as described.

6. Put things back

  1. In Settings, Open… your usual configuration again.
  2. Put your recent files back: cp /tmp/sk-reset/preferences.before.json "$SK/preferences.json" (with Sidekicks quit).
  3. Delete the copies: rm -rf /tmp/sk-reset "$SK"/data/*.20* "$SK"/preferences.20*.json (and "$SK"/data.20* if you did step 4 without getting it back).

If something differs

Symptom Likely cause What to do
"The reset did not fully succeed: …" a file or folder could not be copied or renamed (permissions, disk) read the message; nothing is deleted, the copies already made are listed
A cleared conversation is still on screen the interface was not refreshed note the steps in issue #52
#general is not created again after section 2 the configuration in use does not declare it check the file's channels: section

Close the issue

If everything behaves as described, close issue #52 (or ask the assistant to). Otherwise, comment on it 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
# How to test issue #52 on macOS (the Danger zone)

This guide checks on a Mac the **Danger zone** of Settings: resetting the configuration, the history of one configuration or of all of them, while keeping a dated copy of each thing. To leave your real configuration alone, the tests use a copy in `/tmp`. Allow 15 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. `SK` is the Sidekicks folder:

```bash
SK=~/Library/Application\ Support/sidekicks
```

## 0. Prepare

```bash
make check              # expected: 0 issues, Tests 101 passed, 15 passed, licence headers ok
mkdir -p /tmp/sk-reset && cp examples/test-agents.yaml /tmp/sk-reset/config.yaml
cp "$SK/preferences.json" /tmp/sk-reset/preferences.before.json 2>/dev/null   # to put it back at the end
make dev
```

In **Settings**, click **Open…** and open `/tmp/sk-reset/config.yaml`. Note the path of your usual configuration, to open it again at the end. "program not found" warnings may show (the example's relative paths lead nowhere from `/tmp`): they do not matter here.

- [ ] `make check` passes and `/tmp/sk-reset/config.yaml` is open.

## 1. The section

1. At the bottom of **Settings**, a **Danger zone** section is folded, with a red border. Unfold it.
2. It explains that nothing is deleted, and offers four choices, each with a sentence: **Reset the settings**, **Clear the history of this configuration**, **Clear the history of every configuration**, **Reset everything**.
3. Click **Reset…**: the confirmation says what will be lost for the chosen option, and that a dated copy is kept. Pick another choice: the confirmation closes. **Reset…** then **Cancel**: nothing happens.

- [ ] Steps 1 to 3 behave as described.

## 2. Clear the history of this configuration

1. Create a channel `scratch` and write a message in it (no agent needs to answer). Write a message in `#general` too.
2. **Danger zone** → **Clear the history of this configuration** → **Reset…** → **Reset**.
3. "Done. The copies kept:" lists a folder `…/sidekicks/data/<hash>.<date>` (a date like `2026-10-31T08-15-00`). In the Terminal: `ls "$SK/data"` shows it next to a new `<hash>` folder.
4. In **Channels**, `scratch` is gone; the channels the file declares (`#general`, `#translations`) are there, empty. No conversation is left on screen.
5. Write in `#general`: the message shows, the application works without a restart.
6. If an agent was running, it is now stopped.

- [ ] Steps 1 to 6 behave as described.

## 3. Reset the settings

1. Create a channel `keep`. In the editor, add a line `# draft` **without saving**.
2. **Danger zone** → **Reset the settings** → **Reset…**: the confirmation warns "Your unsaved changes in the editor are lost." → **Reset**.
3. The copies listed are `/tmp/sk-reset/config.<date>.yaml` and `…/sidekicks/preferences.<date>.json`.
4. The editor shows the commented default configuration, without `# draft`; the state is valid. The **Agents** panel is empty. The recent files menu is gone.
5. `keep` is still in **Channels**: this choice does not touch the history.
6. In the Terminal:

   ```bash
   diff examples/test-agents.yaml /tmp/sk-reset/config.20*.yaml && echo identical
   ls "$SK"/preferences*
   ```

   The copy is identical to the starting configuration; `preferences.json` no longer exists, its dated copy does.

- [ ] Steps 1 to 6 behave as described.

## 4. Every configuration (optional)

These two choices rename **all** the history, your real configurations' included. It can be got back (step 4), but only test them if you accept that.

1. **Clear the history of every configuration** → **Reset…** → **Reset**: the copy listed is `…/sidekicks/data.<date>`. `ls "$SK"` shows `data.<date>` and a new `data`.
2. **Reset everything** → **Reset…** → **Reset**: three copies (configuration, preferences if any, `data.<date>`). The default configuration and an empty `#general` show.
3. Run **Clear the history of every configuration** twice in a row, quickly: the second copy may get a `-2` suffix, with no error.
4. To get the earlier history back: quit Sidekicks (⌘Q), then

   ```bash
   cd "$SK" && mv data data.empty && mv data.<the-first-date> data
   ```

- [ ] Steps 1 to 4 behave as described (or skipped).

## 5. In French

With `ui.language: fr`, the section is called **Zone de danger**, and the choices, confirmations and messages are in French.

- [ ] This behaves as described.

## 6. Put things back

1. In **Settings**, **Open…** your usual configuration again.
2. Put your recent files back: `cp /tmp/sk-reset/preferences.before.json "$SK/preferences.json"` (with Sidekicks quit).
3. Delete the copies: `rm -rf /tmp/sk-reset "$SK"/data/*.20* "$SK"/preferences.20*.json` (and `"$SK"/data.20*` if you did step 4 without getting it back).

## If something differs

| Symptom | Likely cause | What to do |
| --- | --- | --- |
| "The reset did not fully succeed: …" | a file or folder could not be copied or renamed (permissions, disk) | read the message; nothing is deleted, the copies already made are listed |
| A cleared conversation is still on screen | the interface was not refreshed | note the steps in issue #52 |
| `#general` is not created again after section 2 | the configuration in use does not declare it | check the file's `channels:` section |

## Close the issue

If everything behaves as described, close issue #52 (or ask the assistant to). Otherwise, comment on it with what differs.