From 4f9f5f70e397ec1ac9a3088500b1bfd92045c887 Mon Sep 17 00:00:00 2001 From: teknium1 Date: Mon, 23 Feb 2026 14:55:29 -0800 Subject: [PATCH] fix: handle missing toolset IDs in welcome banner - Updated the toolset ID retrieval logic in the build_welcome_banner function to use a fallback to the toolset name if the ID is not present, ensuring robustness in displaying unavailable toolsets. --- cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli.py b/cli.py index e26dd797..ce0b00ad 100755 --- a/cli.py +++ b/cli.py @@ -472,7 +472,7 @@ def build_welcome_banner(console: Console, model: str, cwd: str, tools: List[dic # Also add disabled toolsets so they show in the banner for item in unavailable_toolsets: # Map the internal toolset ID to display name - toolset_id = item["name"] + toolset_id = item.get("id", item.get("name", "unknown")) display_name = f"{toolset_id}_tools" if not toolset_id.endswith("_tools") else toolset_id if display_name not in toolsets_dict: toolsets_dict[display_name] = []