#10487: fix(line): use snapshot configured flag in collectStatusIssues
channel: line
size: S
trusted-contributor
experienced-contributor
Cluster:
Webhook Configuration and Resilience
## Summary
Fixes #10428
`openclaw doctor` always shows false "LINE channel access token not configured" and "LINE channel secret not configured" warnings even when LINE is correctly configured via `tokenFile`/`secretFile` and functioning normally.
**Root Cause:** `collectStatusIssues` receives `ChannelAccountSnapshot[]` objects (not raw account objects). The LINE implementation was reading `account.channelAccessToken` and `account.channelSecret` directly — but these fields don't exist on `ChannelAccountSnapshot`. Since the snapshot never contains raw credentials (by design), the optional chaining always returns `undefined`, causing the warning to fire unconditionally.
**Fix:** Use `account.configured` (the snapshot boolean) instead of raw credential fields, matching other channel plugins (Tlon, Google Chat, etc.). Also updated `isConfigured` and `describeAccount.configured` to check both `channelAccessToken` and `channelSecret` for consistency with `buildAccountSnapshot`.
## Tests
All 8 new tests fail before, pass after:
- `collectStatusIssues` and `buildAccountSnapshot` coverage for configured/unconfigured/mixed accounts
- `isConfigured` and `describeAccount` consistency
```
pnpm build ✅
pnpm check ✅
pnpm test ✅
```
Most Similar PRs
#11110: fix(line): false 'not configured' warnings when tokenSource=file
by lailoo · 2026-02-07
81.7%
#12803: fix(line): avoid false 'not configured' warnings for file/env token...
by puritysb · 2026-02-09
73.7%
#23621: fix(LINE): keep startAccount promise alive to prevent auto-restart ...
by ttakanawa · 2026-02-22
65.9%
#18777: fix: LINE webhook acknowledges events before processing and drops f...
by coygeek · 2026-02-17
62.9%
#23238: fix(telegram): account named "default" silently breaks inbound polling
by anillBhoi · 2026-02-22
62.0%
#21271: fix(commands): pass channel/capabilities/shell/os to runtime in com...
by evansantos · 2026-02-19
61.9%
#17327: fix: LINE mixed rich reply order is reversed
by MisterGuy420 · 2026-02-15
61.5%
#17593: security: fail closed when LINE webhook secret is missing
by davidahmann · 2026-02-15
60.8%
#17182: security(line): fail closed when webhook token/secret are missing
by davidahmann · 2026-02-15
60.6%
#22342: fix(doctor): --fix now actually removes unrecognized config keys
by MisterGuy420 · 2026-02-21
59.6%