Don't auto-open chat window on new session creation

This commit is contained in:
Levi Neely 2026-02-11 17:26:01 +01:00
parent e6f49c0b6e
commit 35c19c4d27
1 changed files with 2 additions and 14 deletions

16
main.go
View File

@ -138,17 +138,11 @@ func main() {
fmt.Fprintf(os.Stderr, "Error: Kiro requires a path argument\n")
continue
}
sess, err := mgr.New("kiro-cli", arg)
_, err := mgr.New("kiro-cli", arg)
if err != nil {
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
continue
}
_, err = openChatWindow(sess)
if err != nil {
fmt.Fprintf(os.Stderr, "Error opening chat: %v\n", err)
continue
}
// WinID is set inside openChatWindow
refreshList(w, mgr)
case "Claude":
// Require path argument
@ -156,17 +150,11 @@ func main() {
fmt.Fprintf(os.Stderr, "Error: Claude requires a path argument\n")
continue
}
sess, err := mgr.New("claude", arg)
_, err := mgr.New("claude", arg)
if err != nil {
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
continue
}
_, err = openChatWindow(sess)
if err != nil {
fmt.Fprintf(os.Stderr, "Error opening chat: %v\n", err)
continue
}
// WinID is set inside openChatWindow
refreshList(w, mgr)
case "Open":
if arg == "" {