Files
hermes-agent/contributors/emails/Ehsan.slb@gmail.com
Teknium 165a2f0149 fix: a message typed into a running cron chat says why it was refused (#141348)
A cron session only runs its own frozen fire. Anything else admitted into it
(a message typed into the Desktop chat while the job ran) made
session_cron.execute raise admission_conflict, which _execute_claimed logged
as a traceback and settled as the opaque "The admitted turn failed." card.

session_cron.execute now settles that admission as a failed turn whose text
names the restriction and whose error_surface is
{layer: gateway, code: cron_session_read_only, retryable: false};
completion_payload forwards a captured error_surface on message.complete.
The job itself still never runs for it.

Desktop gives cron_session_read_only its own card copy and the
"Start new chat" action instead of Retry. The TUI already renders the
specific text (no `error` field, so the bare-error rewrite does not apply).

"Copy error details" stamped `time:` with the copy moment, so a stale failure
read as a fresh incident. It now uses the bubble's recorded completion time
(the terminal frame's), or the hydrated row's own timestamp, and omits the
line when neither is known.

en.ts is over its size cap: the error-card layer tables move to
en_error_layers.ts to offset the new copy.

Salvages the idea of #141369 by @Ehsan-hash (cherry-picked as the parent
commit); this trims it to the cron producer, drops the new wire timestamp
field and the per-site allow-list in completion_payload, and reuses existing
bubble timeline metadata for the diagnostics time.
2026-10-20 03:19:01 -07:00

2 lines
11 B
Plaintext