Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

💄 style: Polish Codex heterogeneous agent profile UI (#16665)

Arvin Xu9a35ace214b5
diff --git a/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/CodexQuotaMenu.tsx b/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/CodexQuotaMenu.tsx
index fb314ba3789..9aa022ef55c 100644
--- a/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/CodexQuotaMenu.tsx
+++ b/src/routes/(main)/agent/features/Conversation/HeterogeneousChatInput/CodexQuotaMenu.tsx
@@ -76,12 +76,12 @@ const styles = createStaticStyles(({ css }) => ({
transition: all 0.2s;
&:hover {
- color: ${cssVar.colorText};
+ color: ${cssVar.colorTextSecondary};
background: ${cssVar.colorFillSecondary};
}
`,
triggerOpen: css`
- color: ${cssVar.colorText};
+ color: ${cssVar.colorTextSecondary};
background: ${cssVar.colorFillSecondary};
`,
value: css`
@@ -321,9 +321,7 @@ const CodexQuotaMenu = memo<CodexQuotaMenuProps>(({ command, env }) => {
>
<Icon icon={GaugeIcon} size={14} />
{sessionLeftPercent !== undefined && (
- <span className={styles.value}>
- {t('heteroAgent.codexQuota.compactLeft', { percent: sessionLeftPercent })}
- </span>
+ <span>{t('heteroAgent.codexQuota.compactLeft', { percent: sessionLeftPercent })}</span>
)}
<Icon icon={ChevronDownIcon} size={12} />
</button>
diff --git a/src/routes/(main)/agent/profile/index.tsx b/src/routes/(main)/agent/profile/index.tsx
index bcc76de0fd7..8b5a501eea0 100644
--- a/src/routes/(main)/agent/profile/index.tsx
+++ b/src/routes/(main)/agent/profile/index.tsx
@@ -95,9 +95,10 @@ const ProfileArea = memo(() => {
// updateAgentConfig, which the server rejects under the lock) and while the lock
// is still resolving — so it doesn't flash in then vanish once a lock is found.
const AgentBuilderSlot = memo(() => {
+ const isHeterogeneous = useAgentStore(agentSelectors.isCurrentAgentHeterogeneous);
const lockedByOther = useProfileStore(profileSelectors.lockedByOther);
const lockPending = useProfileStore(profileSelectors.lockPending);
- if (lockedByOther || lockPending) return null;
+ if (isHeterogeneous || lockedByOther || lockPending) return null;
return <AgentBuilder />;
});