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 checkpasses and/tmp/sk-reset/config.yamlis open.
1. The section
- At the bottom of Settings, a Danger zone section is folded, with a red border. Unfold it.
- 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.
- 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
- Create a channel
scratchand write a message in it (no agent needs to answer). Write a message in#generaltoo. - Danger zone → Clear the history of this configuration → Reset… → Reset.
- "Done. The copies kept:" lists a folder
…/sidekicks/data/<hash>.<date>(a date like2026-10-31T08-15-00). In the Terminal:ls "$SK/data"shows it next to a new<hash>folder. - In Channels,
scratchis gone; the channels the file declares (#general,#translations) are there, empty. No conversation is left on screen. - Write in
#general: the message shows, the application works without a restart. - If an agent was running, it is now stopped.
- Steps 1 to 6 behave as described.
3. Reset the settings
-
Create a channel
keep. In the editor, add a line# draftwithout saving. -
Danger zone → Reset the settings → Reset…: the confirmation warns "Your unsaved changes in the editor are lost." → Reset.
-
The copies listed are
/tmp/sk-reset/config.<date>.yamland…/sidekicks/preferences.<date>.json. -
The editor shows the commented default configuration, without
# draft; the state is valid. The Agents panel is empty. The recent files menu is gone. -
keepis still in Channels: this choice does not touch the history. -
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.jsonno 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.
-
Clear the history of every configuration → Reset… → Reset: the copy listed is
…/sidekicks/data.<date>.ls "$SK"showsdata.<date>and a newdata. -
Reset everything → Reset… → Reset: three copies (configuration, preferences if any,
data.<date>). The default configuration and an empty#generalshow. -
Run Clear the history of every configuration twice in a row, quickly: the second copy may get a
-2suffix, with no error. -
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
- In Settings, Open… your usual configuration again.
- Put your recent files back:
cp /tmp/sk-reset/preferences.before.json "$SK/preferences.json"(with Sidekicks quit). - 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 |
|