-
-
Notifications
You must be signed in to change notification settings - Fork 82.1k
cron_run_logs can drop session_id, provider, and model on early agent failure #95873
Copy link
Copy link
Closed
Closed
Copy link
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
Activity
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
Summary
When a cron agent run fails early during tool execution,
cron_run_logscan record the wrapper timeout/error row withoutsession_id,provider, ormodel.That makes the failure look like an un-attributed cron timeout even when the underlying run had already resolved a concrete model/runtime and even when a real session artifact exists.
Environment
2026.6.8(844f405)Observed behavior
For the same cron job (
buffalo-fact), successful and failed rows differed like this:Schema columns exist for these fields:
session_idprovidermodelBut the failed rows left them blank even though the underlying failed run did have a concrete session and model path.
Why this is misleading
In the same incident, the missing fields initially made the problem look like a generic cron timeout or pre-session failure.
After live investigation, the failed run was traceable to a concrete session:
fe78f578-0acc-4324-a4f9-4224950b0d9fopenai/gpt-5.4web_searchSo the bookkeeping gap materially obscured root cause.
Expected behavior
Even when the embedded run later fails,
cron_run_logsshould persist whatever run metadata is already known, especially:session_idprovidermodelAt minimum, once a run session exists, the cron log row should not lose that identity on failure.
Suggested fix areas
cron_run_logsmetadata earlier in the run lifecycleWhy this matters
This is an observability bug. It turns a debuggable model/tool failure into a vague cron timeout, forcing operators into transcript and live-log spelunking to recover the missing context.
Separate issue
This is distinct from the underlying
missing_tool_result/ incomplete-turn bug. That bug caused the failure; this issue is about whycron_run_logsobscured it.