docs(feishu): remove nonexistent disabled value from dmPolicy options#97640
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 28, 2026, 11:15 PM ET / 03:15 UTC. Summary PR surface: Docs -1. Total -1 across 1 file. Reproducibility: yes. Source inspection shows current main and Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Merge the docs correction, then track the existing setup wizard/schema mismatch separately if maintainers want Feishu setup to hide Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows current main and Is this the best way to solve the issue? Yes for the docs mismatch: removing the invalid value is the narrowest maintainable correction. It does not solve the separate pre-existing setup prompt inconsistency, which should be handled in a follow-up if desired. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2001b15f5b92. Label changesLabel justifications:
Evidence reviewedPR surface: Docs -1. Total -1 across 1 file. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
What Problem This Solves
docs/channels/feishu.mdline 47 lists"disabled"as a validdmPolicyvalue, but the Zod schema only acceptsopen,pairing,allowlist. Users who configuredmPolicy: "disabled"will hit a schema validation failure at runtime.Evidence
Schema —
disabledis not a validdmPolicyvalueextensions/feishu/src/config-schema.ts:14Only three values are valid for
dmPolicy."disabled"is not in the enum.Schema distinguishes DM policy from group policy
extensions/feishu/src/config-schema.ts:14-18groupPolicysupportsdisabled;dmPolicydoes not. The doc incorrectly applied the group-policy value set to the DM-policy field.Runtime uses
dmPolicy: "disabled"only as an internal routing sentinelextensions/feishu/src/policy.ts:182,212The literal
"disabled"is hardcoded internally to prevent group messages from falling through to DM routing. It is never read from user config.Validated config reference —
dmPolicyhas nodisabledentryThe config schema validation at
extensions/feishu/src/config-schema.ts:326only handlesdmPolicy === "open"for the wildcard check; validation passes through silently forpairingandallowlist:There is no validation branch for
disabledbecause the schema rejects it before this code runs.User Impact
Users who configured
channels.feishu.dmPolicy: "disabled"based on the old docs would encounter a schema validation failure. To disable DMs, usedmPolicy: "allowlist"with an emptyallowFromarray.