Skip to content

Commit c8d25bd

Browse files
authored
fix: Don't show empty state when agents exist (#95)
![CleanShot 2025-06-04 at 00 38 27@2x](https://github.com/user-attachments/assets/d5865258-1b55-43df-901c-162548999eae)
1 parent 3c7235f commit c8d25bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/preview.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ func (p *PreviewPane) UpdateContent(instance *session.Instance) error {
7070
return err
7171
}
7272

73-
if len(content) == 0 {
74-
p.setFallbackState("No agents running yet. Spin up a new instance with 'n' to get started!")
73+
if len(content) == 0 && !instance.Started() {
74+
p.setFallbackState("Please enter a name for the instance.")
7575
return nil
7676
}
7777

0 commit comments

Comments
 (0)