install: a fresh box's opencode gets a config, and a lane added later its provider

- A box with no ~/.config/opencode/opencode.json gets this repo's (it was a
  printed cp: a first install left opencode answering "Provider not found:
  qwen38"). A config that exists is never overwritten.
- A config with one of this repo's providers gains the provider of a lane
  installed since (oc-merge-limits.py --add-providers: targeted edit, backup,
  read back and compared, restored if anything else moved). The 27B first and
  the flash lane later left opencode sending the 27B's limits to the flash lane.
- A missing opencode is said plainly where a first-time user meets it: the
  installer's step 7 and last lines, the oc launcher, the cockpit's Agent tab.
- The last lines name a command the user's shell can run, and the config
  opencode actually reads.
- CI: the unittest step prints what failed instead of dying silently.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hasan BasbunarandClaude Opus 5.5 committed 2026-09-23 15:17:30 +02:00
1 parent caa596ad79
commit f89f4f31c2
9 files changed
+416 -20

No files matched your search

+6 -1
View File
@@ -1001,7 +1001,12 @@ jobs:
mods=$(for f in $files; do printf 'tests.%s ' "${f%.py}"; done)
echo "unittest suites: $mods"
declared=$(cd tests && cat $files | grep -c 'def test_')
out=$(python3 -m unittest $mods 2>&1)
# Under bash -e a failing run used to end the step right here, having
# printed nothing but the list above (2026-09-23): say what failed.
out=$(python3 -m unittest $mods 2>&1) || {
echo "$out" | grep -vF ResourceWarning | tail -80
echo "the unittest suites failed:"; echo "$out" | grep -E '^(FAIL|ERROR):' || true
exit 1; }
echo "$out" | grep -vF ResourceWarning | tail -5
ran=$(echo "$out" | grep -oE '^Ran [0-9]+' | grep -oE '[0-9]+' || echo 0)
echo "declared $declared, ran $ran"