fix(tasks): refresh active cloud run on task open#3758
Conversation
Generated-By: PostHog Code Task-Id: 048d944e-5259-4824-8a45-87a9fa88c148
|
😎 Merged successfully - details. |
|
React Doctor found no issues in the changed files. 🎉 Reviewed by React Doctor for commit |
Generated-By: PostHog Code Task-Id: 048d944e-5259-4824-8a45-87a9fa88c148
|
|
Note 🤖 stamphog reviewed Greptile flagged a substantive, unaddressed P1 concern: the new hook fetches the task detail once on mount (no refetch interval), so once populated it permanently shadows the live-polled task list — meaning after the initial mount, later run-status changes (the exact scenario this PR is meant to fix) stop propagating to the view until it remounts. The diff shows no follow-up commit addressing this.
Gate mechanics and policy version
|
Problem
After a failed cloud run resumes into a new run, a renderer reload can keep showing the cached failed parent. The task view then remains attached to stale run state until the desktop app is restarted.
Changes
Refresh the authoritative task detail whenever a task view mounts while retaining cached data for immediate rendering. The existing session reconciliation then switches its watcher when the latest run ID changes.