OpenViking icon indicating copy to clipboard operation
OpenViking copied to clipboard

[Bug]: Openclaw plugin autoRecallTimeoutMs config is parsed but never used — auto-recall always times out at hardcoded 5s

Open hhspiny opened this issue 5 months ago • 1 comments

Bug Description

The autoRecallTimeoutMs configuration option in openclaw plugin is properly defined, parsed, and clamped in config.ts, but the auto-recall function in auto-recall.ts ignores it entirely. The withTimeout() wrapper uses the hardcoded constant AUTO_RECALL_TIMEOUT_MS = 5_000 instead of the configured cfg.autoRecallTimeoutMs value.

Setting autoRecallTimeoutMs: 30000 in config has no effect — auto-recall still aborts after 5 seconds.

Steps to Reproduce

Set autoRecallTimeoutMs to >5000 (e.g., 30000) in OpenViking config Ensure the backend takes >5s to respond to /find (e.g., cold start with local Ollama) Send a message triggering auto-recall (≥12 chars with task-execution intent) Auto-recall silently fails after ~5s, ignoring the configured value

Expected Behavior

withTimeout() uses cfg.autoRecallTimeoutMs

Actual Behavior

Uses hardcoded AUTO_RECALL_TIMEOUT_MS = 5_000

Minimal Reproducible Example


Error Logs


OpenViking Version

OpenViking 0.4.4, Plugin 2026.6.18, Python 3.12.3, Linux

Python Version

3.12.3

Operating System

Linux

Model Backend

Other

Additional Context

No response

hhspiny avatar Jun 18 '26 15:06 hhspiny

A feature request was previous submitted for this against plugin version 2026.6.2 In openclaw plugin 2026.6.11, the timeout configuration was actually effective. This is a regression.

hhspiny avatar Jun 18 '26 15:06 hhspiny