Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🕶️ fix: Unhide Event Subagent Names on the Dark Surface (#15206)

Danny Avilae9dec7749aab
diff --git a/client/src/components/Chat/Subagents/EventSubagentActivityGroup.test.tsx b/client/src/components/Chat/Subagents/EventSubagentActivityGroup.test.tsx
index 027c84df15..3a68f906fc 100644
--- a/client/src/components/Chat/Subagents/EventSubagentActivityGroup.test.tsx
+++ b/client/src/components/Chat/Subagents/EventSubagentActivityGroup.test.tsx
@@ -118,6 +118,21 @@ describe('EventSubagentActivityGroup', () => {
);
});
+ it('themes the group root so raw child-row buttons never inherit the unthemed body color', () => {
+ render(
+ <RecoilRoot>
+ <EventSubagentActivityGroup
+ conversationId="parent-conversation"
+ parentMessageIds={['parent-message']}
+ />
+ </RecoilRoot>,
+ );
+
+ expect(screen.getByRole('region', { name: 'com_ui_subagent_activity' })).toHaveClass(
+ 'text-text-primary',
+ );
+ });
+
it('matches the width of a parallel assistant response', () => {
render(
<RecoilRoot>
diff --git a/client/src/components/Chat/Subagents/EventSubagentActivityGroup.tsx b/client/src/components/Chat/Subagents/EventSubagentActivityGroup.tsx
index 62e82344bb..8d7c5e9cc2 100644
--- a/client/src/components/Chat/Subagents/EventSubagentActivityGroup.tsx
+++ b/client/src/components/Chat/Subagents/EventSubagentActivityGroup.tsx
@@ -155,7 +155,11 @@ function EventSubagentRows({
return (
<section
aria-label={localize('com_ui_subagent_activity')}
- className="my-2 overflow-hidden rounded-lg border border-border-light bg-surface-secondary/40"
+ /** `text-text-primary` on the root, like `SubagentActivity` and
+ * `SubagentThreadPanel`: the child rows are raw buttons that inherit
+ * their label color, and without a themed ancestor they bottom out at
+ * the unthemed black body color — invisible on the dark surface. */
+ className="my-2 overflow-hidden rounded-lg border border-border-light bg-surface-secondary/40 text-text-primary"
data-event-subagent-group={eventChildren[0]?.parentMessageId}
>
<Button