Repository navigation
Conversation
Greptile SummaryThis PR hardens the isolated cron delivery path by (1) replacing a hand-rolled case-insensitive Key observations:
Confidence Score: 3/5
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 37d78433f1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -390,7 +390,7 @@ export async function dispatchCronDelivery( | |||
| ...params.telemetry, | |||
| }); | |||
| } | |||
| if (synthesizedText.toUpperCase() === SILENT_REPLY_TOKEN.toUpperCase()) { | |||
| if (isSilentReplyText(synthesizedText, SILENT_REPLY_TOKEN)) { | |||
There was a problem hiding this comment.
Keep silent-token detection case-insensitive
This change swaps a case-insensitive equality check for isSilentReplyText, which only matches the exact token casing; as a result, responses like no_reply/No_Reply now fall through and can be delivered to users instead of being suppressed. In this path synthesizedText comes directly from model output, so casing drift is enough to leak sentinel text and break the silent-no-data contract that this function previously enforced.
Useful? React with 👍 / 👎.
|
|
||
| // If the final text still looks like an interim/status narration, | ||
| // suppress announce delivery instead of leaking chatty no-data updates. | ||
| if (isLikelyInterimCronMessage(synthesizedText)) { |
There was a problem hiding this comment.
Restrict interim suppression to verified interim replies
The new unconditional isLikelyInterimCronMessage guard suppresses delivery even when no descendant follow-up is active, so any short final answer that includes one of these hint substrings (for example Korean summaries containing 결과 요약) is dropped. Because isLikelyInterimCronMessage is substring-based and allows up to 45 words, this can hide legitimate cron results and turn successful runs into silent runs unexpectedly.
Useful? React with 👍 / 👎.
|
Closing and reopening per reporter request to reset review flow. |
|
Superseded by new PR from a fresh branch as requested. |
What
This PR hardens isolated cron announce delivery to prevent chatty no-data/status text from being sent to users.
Changes
isSilentReplyText(...)(instead of exact token equality) when checking silent responses insrc/cron/isolated-agent/delivery-dispatch.ts.isLikelyInterimCronMessage(...)) infinalizeTextDelivery.Why
In Telegram + isolated cron workflows, runs that should be silent (
NO_REPLY/ no-data) can leak narration/status messages. This change adds a stronger guard in the delivery layer so those interim/no-data texts are not announced.Related
Notes
pnpm ... vitestunavailable before install).