Skip to content

fix: add withTimeout protection to auto-recall in openclaw-plugin#753

Closed
Jah-yee wants to merge 1 commit intovolcengine:mainfrom
Jah-yee:fix/openclaw-plugin-timeout
Closed

fix: add withTimeout protection to auto-recall in openclaw-plugin#753
Jah-yee wants to merge 1 commit intovolcengine:mainfrom
Jah-yee:fix/openclaw-plugin-timeout

Conversation

@Jah-yee
Copy link

@Jah-yee Jah-yee commented Mar 18, 2026

Apply same fix from PR #688 to examples/openclaw-plugin/index.ts:

  • Add AUTO_RECALL_TIMEOUT_MS constant (5 seconds)
  • Wrap auto-recall block with withTimeout to prevent indefinite hangs
  • Update error message to mention 'timed out' for clarity

This fixes issue #748 - if OpenViking HTTP calls hang during transient connection issues, the before_prompt_build hook now times out gracefully instead of blocking indefinitely.

Fixes #748

Apply same fix from PR volcengine#688 to examples/openclaw-plugin/index.ts:
- Add AUTO_RECALL_TIMEOUT_MS constant (5 seconds)
- Wrap auto-recall block with withTimeout to prevent indefinite hangs
- Update error message to mention 'timed out' for clarity

This fixes issue volcengine#748 - if OpenViking HTTP calls hang during
transient connection issues, the before_prompt_build hook now
times out gracefully instead of blocking indefinitely.

Fixes volcengine#748
@qin-ctx
Copy link
Collaborator

qin-ctx commented Mar 19, 2026

same to #752, close this pr

@qin-ctx qin-ctx closed this Mar 19, 2026
@github-project-automation github-project-automation bot moved this from Backlog to Done in OpenViking project Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Bug]: examples/openclaw-plugin/index.ts missing withTimeout protection (same as #673)

2 participants