Skip to content

[Bug] Default list of Composer commands has an extra space after each command #12285

@Eric-ZhehanZ

Description

@Eric-ZhehanZ

Contact Information

No response

1Panel Version

2.1.5

Problem Description

The default dropdown list of Composer commands (install, update, require, etc.) has a space following each item, resulting in failure in execution.

Steps to Reproduce

  1. Choose the install command from the Composer command list.
  2. Click on "execute."
  3. The command fails.

The expected correct result

The command successfully execute.

Related log output

2026/03/22 16:49:29 执行 [composer install ] 任务开始 [START]
2026/03/22 16:49:29 
2026/03/22 16:49:29                                       
2026/03/22 16:49:29   Command "install " is not defined.  
2026/03/22 16:49:29                                       
2026/03/22 16:49:29   Did you mean this?                  
2026/03/22 16:49:29       install                         
2026/03/22 16:49:29                                       
2026/03/22 16:49:29 
2026/03/22 16:49:29 子任务 失败: exit status 1
2026/03/22 16:49:30 [TASK-END]

Additional Information

No response

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions