Show the terminal immediately when opening the Terminal tab

This commit is contained in:
Ian Gulliver
2026-10-21 15:05:09 -07:00
parent 47b62763ce
commit 4b4763779d
8 changed files with 420 additions and 414 deletions
+10
View File
@@ -109,6 +109,16 @@ func (ts *Terminals) List(taskID string) []*Terminal {
return slices.Clone(ts.byTask[taskID])
}
func (ts *Terminals) All() map[string][]*Terminal {
ts.mu.Lock()
defer ts.mu.Unlock()
out := map[string][]*Terminal{}
for taskID, terms := range ts.byTask {
out[taskID] = slices.Clone(terms)
}
return out
}
func (ts *Terminals) Get(taskID, id string) *Terminal {
ts.mu.Lock()
defer ts.mu.Unlock()