fix: Remove remaining scan_updates reference\n\n- Remove scan_updates from getActionIcon switch\n- Add platform-specific scan cases (apt, dnf, winget, windows)\n- All scan types now properly use platform-specific handlers
This commit is contained in:
@@ -243,14 +243,17 @@ const ChatTimeline: React.FC<ChatTimelineProps> = ({ agentId, className, isScope
|
||||
const getActionIcon = (action: string, type: string) => {
|
||||
if (type === 'command') {
|
||||
switch (action) {
|
||||
case 'scan_updates':
|
||||
return <Search className="h-4 w-4" />;
|
||||
case 'scan_storage':
|
||||
return <HardDrive className="h-4 w-4" />;
|
||||
case 'scan_system':
|
||||
return <Cpu className="h-4 w-4" />;
|
||||
case 'scan_docker':
|
||||
return <Container className="h-4 w-4" />;
|
||||
case 'scan_apt':
|
||||
case 'scan_dnf':
|
||||
case 'scan_winget':
|
||||
case 'scan_windows':
|
||||
return <Package className="h-4 w-4" />;
|
||||
case 'dry_run_update':
|
||||
return <Terminal className="h-4 w-4" />;
|
||||
case 'confirm_dependencies':
|
||||
|
||||
Reference in New Issue
Block a user