fix(chat): hide autocomplete tooltips on mobile

This commit is contained in:
Bohdan Triapitsyn
2026-08-23 01:05:09 +03:00
parent 1a627e06ad
commit 8f2c1ecc8b
3 changed files with 3 additions and 3 deletions
@@ -385,7 +385,7 @@ export const CommandAutocomplete = React.forwardRef<CommandAutocompleteHandle, C
const isSystem = command.isBuiltIn; const isSystem = command.isBuiltIn;
const isOpenChamberBadge = command.isOpenChamber; const isOpenChamberBadge = command.isOpenChamber;
return ( return (
<AutocompleteRowTooltip description={command.description} active={index === selectedIndex}> <AutocompleteRowTooltip description={command.description} active={!isMobile && index === selectedIndex}>
<div <div
key={command.id} key={command.id}
ref={(el) => { itemRefs.current[index] = el; }} ref={(el) => { itemRefs.current[index] = el; }}
@@ -459,7 +459,7 @@ export const FileMentionAutocomplete = React.forwardRef<FileMentionHandle, FileM
{visibleAgents.map((agent, index) => { {visibleAgents.map((agent, index) => {
const isSelected = selectedIndex === index; const isSelected = selectedIndex === index;
return ( return (
<AutocompleteRowTooltip description={agent.description} active={isSelected}> <AutocompleteRowTooltip description={agent.description} active={!isMobile && isSelected}>
<div <div
key={`agent-${agent.name}`} key={`agent-${agent.name}`}
ref={(el) => { itemRefs.current[index] = el; }} ref={(el) => { itemRefs.current[index] = el; }}
@@ -127,7 +127,7 @@ export const SkillAutocomplete = React.forwardRef<SkillAutocompleteHandle, Skill
const isProject = skill.scope === 'project'; const isProject = skill.scope === 'project';
const source = skill.source || 'opencode'; const source = skill.source || 'opencode';
return ( return (
<AutocompleteRowTooltip description={skill.description} active={index === selectedIndex}> <AutocompleteRowTooltip description={skill.description} active={!isMobile && index === selectedIndex}>
<div <div
key={`${skill.name}-${skill.scope}`} key={`${skill.name}-${skill.scope}`}
ref={(el) => { ref={(el) => {