@@ -427,9 +427,9 @@ func (c *Commands) defaultCommands() []*CommandItem {
427427 commands = append(commands, NewCommandItem(c.com.Styles, "toggle_sidebar", "Toggle Sidebar", "", ActionToggleCompactMode{}))
428428 }
429429 if c.hasSession {
430− cfg := c.com.Config()
431− agentCfg := cfg.Agents[config.AgentCoder]
432− model := cfg.GetModelByType(agentCfg.Model)
430+ cfgPrime := c.com.Config()
431+ agentCfg := cfgPrime.Agents[config.AgentCoder]
432+ model := cfgPrime.GetModelByType(agentCfg.Model)
433433 if model != nil && model.SupportsImages {
434434 commands = append(commands, NewCommandItem(c.com.Styles, "file_picker", "Open File Picker", "ctrl+f", ActionOpenDialog{
435435 // TODO: Pass in the file picker dialog id
@@ -472,6 +472,16 @@ func (c *Commands) defaultCommands() []*CommandItem {
472472 NewCommandItem(c.com.Styles, "toggle_yolo", "Toggle Yolo Mode", "", ActionToggleYoloMode{}),
473473 NewCommandItem(c.com.Styles, "toggle_help", "Toggle Help", "ctrl+g", ActionToggleHelp{}),
474474 NewCommandItem(c.com.Styles, "init", "Initialize Project", "", ActionInitializeProject{}),
475+ )
476+
477+ // Add transparent background toggle.
478+ transparentLabel := "Disable Background Color"
479+ if cfg != nil && cfg.Options != nil && cfg.Options.TUI.Transparent != nil && *cfg.Options.TUI.Transparent {
480+ transparentLabel = "Enable Background Color"
481+ }
482+ commands = append(commands, NewCommandItem(c.com.Styles, "toggle_transparent", transparentLabel, "", ActionToggleTransparentBackground{}))
483+
484+ commands = append(commands,
475485 NewCommandItem(c.com.Styles, "quit", "Quit", "ctrl+c", tea.QuitMsg{}),
476486 )
477487