fix(voice-call): add staleCallReaperSeconds and webhookSecurity to co…#39109
fix(voice-call): add staleCallReaperSeconds and webhookSecurity to co…#39109deepujain wants to merge 1 commit into
Conversation
…nfigSchema Sync openclaw.plugin.json configSchema with Zod VoiceCallConfigSchema. Fix pre-commit pytest dependency spec (pytest>=8,<9 as single string). Fixes openclaw#39101
Greptile SummaryThis PR correctly patches two distinct bugs: the voice-call plugin's JSON configSchema was missing Key changes:
Confidence Score: 4/5
|
|
Closing as duplicate/superseded by #38892 for the voice-call schema fix. Notes:
Thanks for the contribution. |
[pytest>=8, <9] is parsed as two items; pip fails on '<9'. Use ["pytest>=8,<9"] so pip gets one valid PEP 440 spec. Pre-commit-only fix from closed openclaw#39109.
[pytest>=8, <9] is parsed as two items; pip fails on '<9'. Use ["pytest>=8,<9"] so pip gets one valid PEP 440 spec. Pre-commit-only fix from closed openclaw#39109.
[pytest>=8, <9] is parsed as two items; pip fails on '<9'. Use ["pytest>=8,<9"] so pip gets one valid PEP 440 spec. Pre-commit-only fix from closed openclaw#39109.
[pytest>=8, <9] is parsed as two items; pip fails on '<9'. Use ["pytest>=8,<9"] so pip gets one valid PEP 440 spec. Pre-commit-only fix from closed openclaw#39109.
[pytest>=8, <9] is parsed as two items; pip fails on '<9'. Use ["pytest>=8,<9"] so pip gets one valid PEP 440 spec. Pre-commit-only fix from closed openclaw#39109.
[pytest>=8, <9] is parsed as two items; pip fails on '<9'. Use ["pytest>=8,<9"] so pip gets one valid PEP 440 spec. Pre-commit-only fix from closed openclaw#39109.
[pytest>=8, <9] is parsed as two items; pip fails on '<9'. Use ["pytest>=8,<9"] so pip gets one valid PEP 440 spec. Pre-commit-only fix from closed openclaw#39109.
[pytest>=8, <9] is parsed as two items; pip fails on '<9'. Use ["pytest>=8,<9"] so pip gets one valid PEP 440 spec. Pre-commit-only fix from closed openclaw#39109.
[pytest>=8, <9] is parsed as two items; pip fails on '<9'. Use ["pytest>=8,<9"] so pip gets one valid PEP 440 spec. Pre-commit-only fix from closed openclaw#39109.
[pytest>=8, <9] is parsed as two items; pip fails on '<9'. Use ["pytest>=8,<9"] so pip gets one valid PEP 440 spec. Pre-commit-only fix from closed openclaw#39109.
[pytest>=8, <9] is parsed as two items; pip fails on '<9'. Use ["pytest>=8,<9"] so pip gets one valid PEP 440 spec. Pre-commit-only fix from closed openclaw#39109.
[pytest>=8, <9] is parsed as two items; pip fails on '<9'. Use ["pytest>=8,<9"] so pip gets one valid PEP 440 spec. Pre-commit-only fix from closed openclaw#39109.
[pytest>=8, <9] is parsed as two items; pip fails on '<9'. Use ["pytest>=8,<9"] so pip gets one valid PEP 440 spec. Pre-commit-only fix from closed openclaw#39109.
[pytest>=8, <9] is parsed as two items; pip fails on '<9'. Use ["pytest>=8,<9"] so pip gets one valid PEP 440 spec. Pre-commit-only fix from closed #39109.
[pytest>=8, <9] is parsed as two items; pip fails on '<9'. Use ["pytest>=8,<9"] so pip gets one valid PEP 440 spec. Pre-commit-only fix from closed openclaw#39109.
Summary
staleCallReaperSecondsandwebhookSecurityare defined in the voice-call Zod config (extensions/voice-call/src/config.ts) but were missing from the plugin’sopenclaw.plugin.jsonconfigSchema. WithadditionalProperties: false, setting them in config caused "must NOT have additional properties" and gateway crash loops. Separately, the pre-commit config had[pytest>=8, <9], so pip treated<9as a package name and failed.staleCallReaperSecondsandwebhookSecurityto the voice-call plugin’s configSchema inopenclaw.plugin.json. Fixed the pytest dependency to a single specifier["pytest>=8,<9"]in.pre-commit-config.yaml.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
None. Config that was previously invalid (and crashed the gateway) is now valid. Defaults and runtime behavior are unchanged.
Security Impact (required)
Yes, explain risk + mitigation: N/ARepro + Verification
Environment
staleCallReaperSecondsand/orwebhookSecurityunderplugins.entries.voice-call.config.Steps
staleCallReaperSecondsorwebhookSecurityin voice-call plugin config.openclaw gateway).Expected
Gateway starts and uses the new options when set.
Actual
Before: crash. After: works as expected.
Evidence
staleCallReaperSeconds/webhookSecuritycaused validation error and crash; after the change, same config is accepted and gateway runs.Human Verification (required)
openclaw.plugin.jsonto add the two properties; confirmed schema matches Zod (types, nesting forwebhookSecurity). Confirmed pytest pre-commit dependency is a single string so pip install succeeds.webhookSecuritysub-properties (allowedHosts,trustForwardingHeaders,trustedProxyIPs) andstaleCallReaperSecondsminimum 0.Compatibility / Migration
Failure Recovery (if this breaks)
extensions/voice-call/openclaw.plugin.json,.pre-commit-config.yaml.Risks and Mitigations
None. Additive schema and dependency spec only; no new runtime behavior or security surface.