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:
Arvin Xu
2026-05-18 02:20:43 +08:00
parent 8f4058f6fa
commit 89d7515012
@@ -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]);