mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-09 23:33:54 +00:00
* [AI] fix(memory): add batch completed and batch failed logs for embedding ops The embedBatchWithRetry function logged 'batch start' but never logged 'batch completed' or 'batch failed' after the embedding batch call, leaving operators with no post-request feedback. When batches hang or time out, only 'batch start' appears in logs with no diagnostic signal. Add 'batch completed' log after runEmbeddingOperationWithTimeout success and 'batch failed' log in the catch handler. This is an observability improvement, not a functional fix for the underlying hang (#93312). Related to #93312 * [AI] fix(memory): use formatErrorMessage for embedding batch error log Replace String(err) with formatErrorMessage(err) in the batch failed catch handler to redact sensitive provider error text (e.g. API keys and tokens embedded in error messages) before logging. Related to #94732 --------- Co-authored-by: Vincent Koc <vincentkoc@ieee.org>