You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix, cli uses get change's changeAnalysisStatus (#3842)
https://github.com/user-attachments/assets/a56fe17e-cb1a-4520-9368-76b965a998e7
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> **Medium Risk**
> Touches end-to-end polling/control-flow for change analysis completion
and risk retrieval in both CLI UX and server-side run-task execution;
mistakes could cause hangs, premature exits, or incorrect failure/retry
behavior.
>
> **Overview**
> **Stops using `GetChangeTimelineV2` to detect change-analysis
completion** in multiple CLI commands and the API server run-task
worker, and instead polls `GetChange` and inspects
`change.metadata.change_analysis_status` (handling
DONE/SKIPPED/ERROR/in-progress states).
>
> In `terraform plan` and the run-task flow, **risk extraction is
decoupled from timeline entries** by calling `GetChangeRisks` after
analysis completes, with added nil checks and updated error
handling/messages (including retry vs. fail semantics in the worker).
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
cbdf9ebb49ce6eeb6b981499960b665d2c525329. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
GitOrigin-RevId: fa48bdae414cbba13288d9f798d506abe0017728
0 commit comments