mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-14 03:30:19 +00:00
✨ feat(agent-sidebar): allow message channel for Claude Code hetero agents
Codex and other hetero providers still hide the channel entry; Claude Code agents can now use it. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -29,9 +29,13 @@ const Nav = memo(() => {
|
||||
const router = useQueryRoute();
|
||||
const { isAgentEditable } = useServerConfigStore(featureFlagsSelectors);
|
||||
const toggleCommandMenu = useGlobalStore((s) => s.toggleCommandMenu);
|
||||
const isHeterogeneousAgent = useAgentStore(agentSelectors.isCurrentAgentHeterogeneous);
|
||||
const heterogeneousProviderType = useAgentStore(
|
||||
agentSelectors.currentAgentHeterogeneousProviderType,
|
||||
);
|
||||
const hideProfile = !isAgentEditable;
|
||||
const hideChannel = hideProfile || isHeterogeneousAgent;
|
||||
// Claude Code agents can use message channels; other hetero providers (e.g. codex) still hide it.
|
||||
const hideChannel =
|
||||
hideProfile || (!!heterogeneousProviderType && heterogeneousProviderType !== 'claude-code');
|
||||
const switchTopic = useChatStore((s) => s.switchTopic);
|
||||
const [openNewTopicOrSaveTopic] = useChatStore((s) => [s.openNewTopicOrSaveTopic]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user