mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-04 00:14:59 +01:00
Feat: Add Agent Name in the LLM Response Footer (and re-order it) (#1770)
This commit is contained in:
committed by
GitHub
parent
696ab1a752
commit
bd4319f2bc
@@ -121,30 +121,14 @@ func (m *statusComponent) View() string {
|
||||
|
||||
var modeBackground compat.AdaptiveColor
|
||||
var modeForeground compat.AdaptiveColor
|
||||
switch m.app.AgentIndex {
|
||||
case 0:
|
||||
|
||||
agentColor := util.GetAgentColor(m.app.AgentIndex)
|
||||
|
||||
if m.app.AgentIndex == 0 {
|
||||
modeBackground = t.BackgroundElement()
|
||||
modeForeground = t.TextMuted()
|
||||
case 1:
|
||||
modeBackground = t.Secondary()
|
||||
modeForeground = t.BackgroundPanel()
|
||||
case 2:
|
||||
modeBackground = t.Accent()
|
||||
modeForeground = t.BackgroundPanel()
|
||||
case 3:
|
||||
modeBackground = t.Success()
|
||||
modeForeground = t.BackgroundPanel()
|
||||
case 4:
|
||||
modeBackground = t.Warning()
|
||||
modeForeground = t.BackgroundPanel()
|
||||
case 5:
|
||||
modeBackground = t.Primary()
|
||||
modeForeground = t.BackgroundPanel()
|
||||
case 6:
|
||||
modeBackground = t.Error()
|
||||
modeForeground = t.BackgroundPanel()
|
||||
default:
|
||||
modeBackground = t.Secondary()
|
||||
modeForeground = agentColor
|
||||
} else {
|
||||
modeBackground = agentColor
|
||||
modeForeground = t.BackgroundPanel()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user