Unable to delete provider profile
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
從 CLI 入口 openshell profile delete 開始,追蹤它如何查找透過 --global 匯入的 profile;將這種查找方式與 openshell profile list 使用的路徑進行比較。issue 沒有提供檔案名稱或測試名稱,因此先找到刪除和列表命令及其測試。完成標準是成功刪除清單中的 litellm-test profile,且它不再出現在清單中。
由索引模型根據 Issue 內容生成。
描述
User Story
I use Openshell to sandbox execution of OpenCode harness on local machine.
I configure some providers to access gitlab and LiteLLM.
I've tried to delete an existing provider profile to recreate it and I got an error.
I have to uninstall OpenShell to delete the profile
Problem Statement
Trying to delete a previously created provider profile, I got an error stating that the profile does not exist.
$ openshell profile import -f profiles/litellm2.yaml --global
Imported 1 provider profile.
$ openshell profile list
NAME TYPE CATEGORY SOURCE SCOPE
gitlab provider SOURCE CONTROL user platform
litellm-test provider INFERENCE user platform
$ openshell profile delete litellm-test
! Provider profile litellm-test not found
Impact / Why This Matters
When this happens I have to uninstall Openshell completely.
This matter because it is cumbersome to uninstall OpenShell just to remove a provider profile.
Acceptance Criteria
The profile if correctly deleted.
Reproduction Steps
With the following profile file :
id: litellm-test
display_name: LiteLLM
description: LiteLLM gateway (LLM API, OpenAI-compatible)
category: inference
credentials:
- name: api_token
description: LiteLLM API token
env_vars: [ LITELLM_TOKEN ]
required: true
auth_style: bearer
header_name: authorization
discovery:
credentials: [ api_token ]
endpoints:
- host: litellm.workshop.my.company
port: 443
protocol: rest
enforcement: enforce
rules:
- allow:
method: GET
path: "/**"
- allow:
method: HEAD
path: "/**"
- allow:
method: OPTIONS
path: "/**"
- allow:
method: POST
path: "/v1/**"
- allow:
method: POST
path: "/mcp/**"
binaries:
- path: /usr/bin/pi
- path: /usr/local/bin/pi
Run the following commands :
$ openshell profile import -f litellm2.yaml --global
Imported 1 provider profile.
$ openshell profile list
NAME TYPE CATEGORY SOURCE SCOPE
litellm-test provider INFERENCE user platform
$ openshell profile delete litellm-test
! Provider profile litellm-test not found
Suggested UX (if applicable)
No response
Environment
- OpenShell : 0.1.6
- Ubuntu 24
Logs
- 主要語言
- Rust
- 星號
- 20.6k
- 分支
- 2k
- 平均合併
- 2 天 14 小時
- 30 天內合併 PR
- 275
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
NVIDIA/OpenShell 的其他 Issue
-
config preflight exits 0 on allow_unauthenticated_users = true可能已有人在做 @ericcurtin 於 1 天前認領。 未關閉state:triage-needed
難度 2/5 1-3 小時 新手友好度 70/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 1 天內回覆
-
bug(python): OIDC refresh drops the gateway's oidc_scopes可能重新可做 @jyotir07 於 8 天前認領,目前沒有進行中的 PR。 未關閉state:triage-needed
難度 2/5 1-3 小時 新手友好度 84/100
NVIDIA/OpenShell#4919 · 3 則留言 ·
維護者通常 1 天內回覆
-
bug: workspace access hint suggests a --subject command that fails for hyphen-leading OIDC subjects可能重新可做 關聯的 PR 已關閉且未合併。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
相似的 Issue
-
A-linter
難度 2/5 1-3 小時 新手友好度 73/100
oxc-project/oxc#28783 ·
維護者通常 1 天內回覆
-
Substrait consumer doesn't recognise `shift_left` / `shift_right` from functions_arithmetic.yaml未關閉bug
難度 2/5 1-3 小時 新手友好度 76/100
apache/datafusion#27059 ·
維護者通常 1 天內回覆
-
Bump calamine to 0.38: RUSTSEC-2026-0436 (CFB/OLE2 panic and unbounded allocation) fails cargo audit未關閉
難度 2/5 1-3 小時 新手友好度 70/100
docling-project/docling.rs#979 ·
維護者通常 1 天內回覆
-
llm translation
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆