Skip to content

[cosh-ng] bug: cosh-switch 切换成cosh-ng后,会把依赖的os-skills卸载掉,不会主动再安装上,需要手动再安装 #1475

Description

@zhangtaibo

Component

cosh-ng

What happened?

cosh-switch 切换成cosh-ng后,会把依赖的os-skills卸载掉,不会主动再安装上,需要手动再安装

[root@iZj6ce549r6hk9uw12diapZ ~]# cosh-switch 
Current: copilot-shell -> switching to cosh-ng
Last metadata expiration check: 1:33:35 ago on Tue 14 Jul 2026 04:05:34 PM CST.
Dependencies resolved.
=================================================================================================================================================================================================
 Package                                       Architecture                           Version                                          Repository                                           Size
=================================================================================================================================================================================================
Installing:
 cosh-ng                                       x86_64                                 0.12.0-1.alnx4                                   alinux4-agentic-os                                  4.2 M
Removing:
 copilot-shell                                 x86_64                                 2.7.0-1.alnx4                                    @anolisa-configured                                  22 M
Removing unused dependencies:
 os-skills                                     noarch                                 0.6.1-1.alnx4                                    @alinux4-agentic-os                                 1.1 M

Transaction Summary
=================================================================================================================================================================================================
Install  1 Package
Remove   2 Packages

Total download size: 4.2 M
Is this ok [y/N]: y
Downloading Packages:
cosh-ng-0.12.0-1.alnx4.x86_64.rpm                                                                                                                                4.8 MB/s | 4.2 MB     00:00    
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                            4.8 MB/s | 4.2 MB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                         1/1 
  Installing       : cosh-ng-0.12.0-1.alnx4.x86_64                                                                                                                                           1/3 
  Running scriptlet: cosh-ng-0.12.0-1.alnx4.x86_64                                                                                                                                           1/3 
  Erasing          : copilot-shell-2.7.0-1.alnx4.x86_64                                                                                                                                      2/3 
  Running scriptlet: copilot-shell-2.7.0-1.alnx4.x86_64                                                                                                                                      2/3 
  Erasing          : os-skills-0.6.1-1.alnx4.noarch                                                                                                                                          3/3 
  Running scriptlet: os-skills-0.6.1-1.alnx4.noarch                                                                                                                                          3/3 
  Verifying        : cosh-ng-0.12.0-1.alnx4.x86_64                                                                                                                                           1/3 
  Verifying        : copilot-shell-2.7.0-1.alnx4.x86_64                                                                                                                                      2/3 
  Verifying        : os-skills-0.6.1-1.alnx4.noarch                                                                                                                                          3/3 

Installed:
  cosh-ng-0.12.0-1.alnx4.x86_64                                                                                                                                                                  
Removed:
  copilot-shell-2.7.0-1.alnx4.x86_64                                                                os-skills-0.6.1-1.alnx4.noarch                                                               

Complete!
[root@iZj6ce549r6hk9uw12diapZ ~]# yum install os-skills
Last metadata expiration check: 1:34:08 ago on Tue 14 Jul 2026 04:05:34 PM CST.
Dependencies resolved.
=================================================================================================================================================================================================
 Package                                     Architecture                             Version                                         Repository                                            Size
=================================================================================================================================================================================================
Installing:
 os-skills                                   noarch                                   0.6.1-1.alnx4                                   alinux4-agentic-os                                   343 k

Transaction Summary
=================================================================================================================================================================================================
Install  1 Package

Total download size: 343 k
Installed size: 1.1 M
Is this ok [y/N]: y
Downloading Packages:
os-skills-0.6.1-1.alnx4.noarch.rpm                                                                                                                                41 MB/s | 343 kB     00:00    
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                             34 MB/s | 343 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                         1/1 
  Installing       : os-skills-0.6.1-1.alnx4.noarch                                                                                                                                          1/1 
  Verifying        : os-skills-0.6.1-1.alnx4.noarch                                                                                                                                          1/1 

Installed:
  os-skills-0.6.1-1.alnx4.noarch                                                                                                                                                                 

Complete!
[root@iZj6ce549r6hk9uw12diapZ ~]# 

Diagnostic Output

Additional Context

No response

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions