Fix checkpoints not being rendered (#30019)

Cole Miller and Antonio Scandurra created

Closes #ISSUE

Release Notes:

- Agent Beta: Fixed a bug causing "Restore Checkpoint" buttons in the
agent panel not to be rendered.

Co-authored-by: Antonio Scandurra <me@as-cii.com>

Change summary

crates/agent/src/active_thread.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/agent/src/active_thread.rs 🔗

@@ -2082,7 +2082,7 @@ impl ActiveThread {
                 v_flex()
                     .w_full()
                     .map(|parent| {
-                        if let Some(checkpoint) = checkpoint.filter(|_| is_generating) {
+                        if let Some(checkpoint) = checkpoint.filter(|_| !is_generating) {
                             let mut is_pending = false;
                             let mut error = None;
                             if let Some(last_restore_checkpoint) =