Agents workspace: roster, runs, and a readable run log; layout now eight workspaces
This commit is contained in:
@@ -289,3 +289,12 @@ func helpOverlay(title string, entries [][2]string, w, h int) string {
|
||||
p := panel{title: title, width: boxW, height: boxH, focused: true}
|
||||
return lipgloss.Place(w, h, lipgloss.Center, lipgloss.Center, p.render(lines))
|
||||
}
|
||||
|
||||
// short is the first eight characters of an identifier: enough to recognise a
|
||||
// run or a task in a column, never enough to confuse two of them on one screen.
|
||||
func short(id string) string {
|
||||
if len(id) <= 8 {
|
||||
return id
|
||||
}
|
||||
return id[:8]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user