Simplify session lifecycle and MCP cleanup

This commit is contained in:
2026-05-14 20:51:37 +01:00
parent 27361f79c4
commit cc4bf9e904
16 changed files with 439 additions and 255 deletions

View File

@@ -115,7 +115,7 @@ func (p *paletteState) allItems() []paletteItem {
if c.Kind == KindAgent && c.Status() != StatusRunning {
continue
}
label := "Switch to " + c.Name
label := "Switch to " + c.DisplayName()
hint := strings.Join(c.Argv, " ")
if c.ID == p.focused {
label = "• " + label + " (current)"
@@ -153,7 +153,7 @@ func (p *paletteState) allItems() []paletteItem {
continue
}
out = append(out, paletteItem{
label: "Kill " + c.Name,
label: "Kill " + c.DisplayName(),
hint: "SIGTERM " + strings.Join(c.Argv, " "),
action: paletteAction{kind: "kill", childID: c.ID},
})