Skip to content

fix: skip ingest-reply-assist for cron maintenance tasks#1017

Open
Suidge wants to merge 1 commit intovolcengine:mainfrom
Suidge:fix/cron-ingest-reply-assist-guard
Open

fix: skip ingest-reply-assist for cron maintenance tasks#1017
Suidge wants to merge 1 commit intovolcengine:mainfrom
Suidge:fix/cron-ingest-reply-assist-guard

Conversation

@Suidge
Copy link
Copy Markdown

@Suidge Suidge commented Mar 27, 2026

Summary

Fixes #982

Cron maintenance tasks (Daily Memory Distillation, Weekly Synthesis) were being misclassified as transcript-like ingestion and receiving unwanted ingest-reply-assist prompt augmentation.

Problem

When running cron maintenance tasks like:

Daily memory maintenance. Read skills/opencortex/references/distillation.md for full instructions and follow them. Workspace: /path/to/workspace

The plugin would:

  1. Misclassify this as a multi-speaker transcript
  2. Inject the ingest-reply-assist prompt block
  3. Cause the cron task to deviate from its intended behavior

Solution

Added pattern detection in index.ts to identify cron maintenance tasks and skip the ingest-reply-assist injection. The detection checks for:

  • [cron:xxx] prefix
  • Daily memory maintenance / Weekly synthesis phrases
  • References to distillation or weekly-synthesis instruction files
  • Workspace: lines

When a cron maintenance task is detected, the plugin logs:

openviking: skipping ingest-reply-assist for cron maintenance task

Testing

Verified in production environment:

  • Before fix: ingest-reply-assist applied (reason=transcript_like_ingest, speakerTurns=2, chars=452)
  • After fix: skipping ingest-reply-assist for cron maintenance task

The cron tasks now execute correctly without prompt injection.

Changes

  • examples/openclaw-plugin/index.ts: Added cron maintenance task detection before isTranscriptLikeIngest() call

Cron maintenance tasks (distillation, weekly synthesis) were being
misclassified as transcript-like ingestion and receiving unwanted
prompt augmentation. This fix adds pattern detection to identify
cron maintenance tasks and skip the ingest-reply-assist injection.

Fixes volcengine#982

The fix detects cron tasks by checking for:
- [cron:xxx] prefix
- 'Daily memory maintenance' / 'Weekly synthesis' phrases
- References to distillation/weekly-synthesis instruction files
- Workspace: lines
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 27, 2026

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link
Copy Markdown

Failed to generate code suggestions for PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

OpenClaw memory plugin misclassifies cron distillation tasks as transcript-ingest and injects ingest-reply-assist

3 participants