@@ -11,12 +11,13 @@ import (
1111
1212 // MysisInfo holds display info for a mysis.
1313 type MysisInfo struct {
14- ID string
15- Name string
16- State string
17- Provider string
18- LastMessage string // Most recent message (user or assistant)
19- CreatedAt time.Time // When mysis was created
14+ ID string
15+ Name string
16+ State string
17+ Provider string
18+ AccountUsername string // NEW: game account username
19+ LastMessage string // Most recent message (user or assistant)
20+ CreatedAt time.Time // When mysis was created
2021 }
2122
2223 // SwarmMessageInfo holds display info for a broadcast message.
@@ -187,14 +188,23 @@ func renderMysisLine(m MysisInfo, selected, isLoading bool, spinnerView string,
187188 stateText := StateStyle(m.State).Render(fmt.Sprintf("%-8s", m.State))
188189 provider := dimmedStyle.Render(fmt.Sprintf("[%s]", m.Provider))
189190
190- // First part: indicator + name + state + provider
191- firstPart := fmt.Sprintf("%s %-16s %s %s", stateIndicator, name, stateText, provider)
191+ // Account username display
192+ var accountText string
193+ if m.AccountUsername != "" {
194+ accountText = dimmedStyle.Render(fmt.Sprintf("@%s", m.AccountUsername))
195+ } else {
196+ accountText = dimmedStyle.Render("(no account)")
197+ }
198+
199+ // First part: indicator + name + state + provider + account
200+ firstPart := fmt.Sprintf("%s %-16s %s %s %s", stateIndicator, name, stateText, provider, accountText)
192201
193202 // Calculate remaining width for last message
194203 // Account for the prefix "│ " for the message
195204 // Use lipgloss.Width() for proper Unicode width calculation
196205 providerWidth := lipgloss.Width(m.Provider)
197- usedWidth := 2 + 16 + 1 + 8 + 1 + providerWidth + 2 + 4 // rough estimate
206+ accountTextWidth := lipgloss.Width(accountText)
207+ usedWidth := 2 + 16 + 1 + 8 + 1 + providerWidth + 2 + 1 + accountTextWidth + 4
198208 msgWidth := width - usedWidth - 8
199209 if msgWidth < 10 {
200210 msgWidth = 10
@@ -222,10 +232,11 @@ func renderMysisLine(m MysisInfo, selected, isLoading bool, spinnerView string,
222232 // MysisInfoFromCore converts a core.Mysis to MysisInfo.
223233 func MysisInfoFromCore(m *core.Mysis) MysisInfo {
224234 return MysisInfo{
225- ID: m.ID(),
226- Name: m.Name(),
227- State: string(m.State()),
228- Provider: m.ProviderName(),
229- CreatedAt: m.CreatedAt(),
235+ ID: m.ID(),
236+ Name: m.Name(),
237+ State: string(m.State()),
238+ Provider: m.ProviderName(),
239+ AccountUsername: m.CurrentAccountUsername(), // NEW: copy account username
240+ CreatedAt: m.CreatedAt(),
230241 }
231242 }