fix(ui): corrected background color check in user message components (#25880)

This commit is contained in:
Dev Randalpura
2026-04-23 17:29:11 -04:00
committed by GitHub
parent 27927c55e5
commit 69150e87b2
9 changed files with 173 additions and 3 deletions
@@ -20,7 +20,9 @@ export const UserShellMessage: React.FC<UserShellMessageProps> = ({
width,
}) => {
const config = useConfig();
const useBackgroundColor = config.getUseBackgroundColor();
const useBackgroundColorSetting = config.getUseBackgroundColor();
const useBackgroundColor =
useBackgroundColorSetting && !!theme.background.message;
// Remove leading '!' if present, as App.tsx adds it for the processor.
const commandToDisplay = text.startsWith('!') ? text.substring(1) : text;