Files
Caspian Zhao 842531f7d6 fix(team-cloud): surface autopush failures as session-level error notices (P1-5a)
A failed post-turn auto-push was swallowed as tracing::warn only — with the
CF sandbox disk wiped on idle destroy, a push failure (creator token revoked,
network down, rematerialize edge) silently lost the turn's code. The detached
autopush thread now records a role=system / type:"error" row in
session_messages (existing content shape — renders through the adapter's
error arm, no pipeline change) and broadcasts SessionTurnPersisted so live
clients see the notice before the workspace sleeps.

Failure detail is git stderr-only (handle_git_failure) and truncated; the
test pins that no auth material (argv http.extraheader token) can reach the
persisted notice.

Face: container Rust (src-tauri) — requires a team image bump at rollout
before it takes effect in the cloud sandbox. No desktop behavior change
(HELMOR_CLOUD_AUTOPUSH env gate remains off there).
2026-07-11 00:16:45 -07:00
..