Skip to content

Commit bdd5a1a

Browse files
committed
fix: move container status below input (matches herm layout)
1 parent 7401c57 commit bdd5a1a

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

cmd/chat_view.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,6 @@ func (m chatModel) View() string {
349349
leftBold := permissionModeLabel(m.session)
350350
leftDim := permissionModeHint(m.session)
351351
rightStatus := fmt.Sprintf("%s %s", m.session.Provider(), m.session.Model())
352-
if m.containerEnabled && m.containerStatus != "" {
353-
rightStatus = fmt.Sprintf("container: %s %s", m.containerStatus, rightStatus)
354-
}
355352
leftVisLen := len(leftBold) + len(leftDim)
356353
gap := totalW - leftVisLen - len(rightStatus)
357354
if gap < 1 {
@@ -414,6 +411,13 @@ func (m chatModel) View() string {
414411
bottomBarLines++
415412
}
416413
}
414+
if m.containerEnabled && m.containerStatus != "" {
415+
style := dimStyle
416+
if m.containerErr != nil {
417+
style = lipgloss.NewStyle().Foreground(lipgloss.Color("#ff5555"))
418+
}
419+
bottomBar.WriteString(style.Render("container: "+m.containerStatus) + "\n")
420+
}
417421
bottomBar.WriteString(dimStyle.Render("? for help") + "\n")
418422
_ = bottomBarLines
419423
}

0 commit comments

Comments
 (0)