Skip to content

fix(cron): treat webui origin as local delivery + failure messages (#45360) - #45459

Closed
kyssta-exe wants to merge 1 commit into
NousResearch:mainfrom
kyssta-exe:auto-fix/issue-45360
Closed

fix(cron): treat webui origin as local delivery + failure messages (#45360)#45459
kyssta-exe wants to merge 1 commit into
NousResearch:mainfrom
kyssta-exe:auto-fix/issue-45360

Conversation

@kyssta-exe

Copy link
Copy Markdown
Contributor

Fixes #45360. Two fixes for WebUI-created cron jobs: (1) When deliver=origin and origin.platform is webui/desktop/cli, treat it as local delivery instead of routing through gateway platform adapters, which would record 'unknown platform' errors since these platforms read sessions from the local DB. (2) When the cron agent fails before producing a response, append a concise assistant failure message to the session so WebUI/Desktop show a readable transcript instead of a prompt-only chat.

@alt-glitch alt-glitch added type/bug Something isn't working comp/cron Cron scheduler and job management P2 Medium — degraded but workaround exists duplicate This issue or pull request already exists labels Jun 13, 2026

@tonydwb tonydwb left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review Summary

Verdict: Approved

Fix: treats WebUI-origin cron jobs as local delivery and includes proper failure message handling. Previously WebUI-originated cron jobs were incorrectly treated as remote, causing delivery mismatches.

Looks Good

  • Well-scoped fix targeting the WebUI origin detection path
  • Clear failure message for delivery errors
  • No security concerns

@alt-glitch

Copy link
Copy Markdown
Collaborator

Duplicate of #45363 — same scope/approach for #45360 (treat WebUI/desktop/cli cron origin as local delivery + persist a concise assistant failure message), both in cron/scheduler.py. #45363 is the earliest open PR. Competing layer-split: #45392 (delivery-only).

@kyssta-exe

Copy link
Copy Markdown
Contributor Author

Duplicate of #45363 — same WebUI origin local delivery + failure message fix in cron/scheduler.py for #45360. Closing as superseded.

@kyssta-exe kyssta-exe closed this Jun 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cron Cron scheduler and job management duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cron WebUI runs can show prompt-only sessions and unknown platform 'webui' delivery errors

3 participants