← Back to PRs

#20527: feat(mabos): complete setup_auto_fix and wire real channel testing

by kingler open 2026-02-19 02:01 View on GitHub →
cli size: XL
## Summary - Add shared `httpRequest()` with `AbortController` timeout to `common.ts` - Wire real API calls in `testChannelConnection()` for all 5 channels (Telegram, Discord, Slack, Signal, WhatsApp) with graceful network degradation - Add credential schemas for signal, slack, and whatsapp to `SetupChannelParams` - Fix channel detection in `setup_wizard_start` to scan `workspace/channels/*.json` - Implement calver version comparison in `checkGatewayVersion()` reading version from `package.json` - Complete `setup_auto_fix` token_mismatch: validates all stored tokens, updates config status to `active`/`token_invalid` - Complete `setup_auto_fix` config_drift: validates channel JSON structure, checks agent cognitive files, checks business manifests, backs up before restoring stubs - Improve `setup_auto_fix` service_unit_stale: uses `systemctl --user`, detects stale ExecStart paths, tries `openclaw gateway install` with fallback to generating minimal systemd unit - Add `setup-wizard.test.ts` with 13 tests (format validation, mocked API calls, network failure degradation, dry_run behavior, config drift restoration, channel detection) ## Test plan - [x] All 13 new setup-wizard tests pass - [x] All 108 existing MABOS extension tests pass (6 test files) - [x] TypeScript compiles cleanly (`tsc --noEmit`) - [ ] Manual: run `setup_channel` with real Telegram/Discord token to verify live API call - [ ] Manual: run `setup_auto_fix` with `config_drift` on a workspace with missing cognitive files 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Most Similar PRs