#20527: feat(mabos): complete setup_auto_fix and wire real channel testing
cli
size: XL
Cluster:
Session Management and Fixes
## 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
#21271: fix(commands): pass channel/capabilities/shell/os to runtime in com...
by evansantos · 2026-02-19
63.7%
#20542: Fix all 6 identified bugs: Validation, diagnostics, and documentation
by chilu18 · 2026-02-19
63.1%
#19957: feat(mattermost): add interactive buttons support
by tonydehnke · 2026-02-18
63.0%
#16736: fix: stagger multi-account channel startup to avoid Discord rate li...
by rm289 · 2026-02-15
61.9%
#23226: fix(msteams): proactive messaging, EADDRINUSE fix, tool status, ada...
by TarogStar · 2026-02-22
61.7%
#15569: test: comprehensive test coverage expansion (57 new test files)
by tangcruz · 2026-02-13
61.7%
#17157: feat(messenger): add Facebook Messenger channel integration
by gmjuhasz · 2026-02-15
61.6%
#20904: feat: Cloud.ru FM proxy, MAX Messenger extension, AI Fabric integra...
by dzhechko · 2026-02-19
61.6%
#23727: Fix Telegram channel resolution drift across announce + message sen...
by SmithLabsLLC · 2026-02-22
61.5%
#19885: test(gateway,browser): isolate tests from ambient OPENCLAW_GATEWAY_...
by NewdlDewdl · 2026-02-18
61.1%