Skip to content

fix(cron): handle whitespace-only responses (#28151)#28352

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-3ad7d98a
May 19, 2026
Merged

fix(cron): handle whitespace-only responses (#28151)#28352
teknium1 merged 1 commit into
mainfrom
hermes/hermes-3ad7d98a

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Salvage of #28151 by @joe102084.

What: Cron jobs that returned whitespace-only final responses (" \n\t ") were delivered as blank messages and recorded as successful runs. The empty-response soft-failure guard checked not final_response (truthy) instead of not final_response.strip().

How: Strip before both the delivery decision and the soft-failure marker so whitespace-only output is treated the same as empty output. Test added covering the regression.

Original PR: #28151

@teknium1 teknium1 merged commit 6143013 into main May 19, 2026
@teknium1 teknium1 deleted the hermes/hermes-3ad7d98a branch May 19, 2026 03:08
@github-actions

Copy link
Copy Markdown
Contributor

🔎 Lint report: hermes/hermes-3ad7d98a vs origin/main

ruff

Total: 0 on HEAD, 0 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 0 pre-existing issues carried over.

ty (type checker)

Total: 8791 on HEAD, 8791 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 4626 pre-existing issues carried over.

Diagnostics are surfaced as warnings — this check never fails the build.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants