fix(cli): keep run command timeout in general settings

This commit is contained in:
Robin Newhouse
2026-05-20 17:02:26 -07:00
parent a8ec1a598a
commit 7610471daa
4 changed files with 0 additions and 13 deletions
@@ -25,7 +25,6 @@ export interface InteractiveGeneralConfig {
export type InteractiveConfigTab =
| "general"
| "advanced"
| "tools"
| "workflows"
| "agents"
@@ -24,7 +24,6 @@ const CONFIG_TABS: InteractiveConfigTab[] = [
"plugins",
"agents",
"hooks",
"advanced",
];
export function getConfigTabs(): InteractiveConfigTab[] {
@@ -53,8 +52,6 @@ export function toTabLabel(tab: InteractiveConfigTab): string {
switch (tab) {
case "general":
return "General";
case "advanced":
return "Advanced";
case "tools":
return "Tools";
case "plugins":
@@ -106,7 +103,6 @@ export function resolveActiveConfigItems(
): InteractiveConfigItem[] {
switch (configTab) {
case "general":
case "advanced":
return [];
case "tools":
return sortBySourceThenName(configData.tools);
@@ -4,13 +4,11 @@ import {
getAdjacentConfigTab,
getConfigFooterText,
getConfigItemDisplayName,
getConfigTabs,
isInlineConfigAction,
isToggleableConfigItem,
resolveConfigItemSelectAction,
resolveConfigItemToggleAction,
resolveInitialConfigTab,
toTabLabel,
} from "./config-view-helpers";
function createItem(
@@ -82,13 +80,8 @@ describe("config view helpers", () => {
});
it("supports restoring and advancing the active settings tab", () => {
expect(getConfigTabs()).toContain("advanced");
expect(toTabLabel("advanced")).toBe("Advanced");
expect(resolveInitialConfigTab("skills")).toBe("skills");
expect(resolveInitialConfigTab(undefined)).toBe("general");
expect(getAdjacentConfigTab("hooks", "right")).toBe("advanced");
expect(getAdjacentConfigTab("advanced", "left")).toBe("hooks");
expect(getAdjacentConfigTab("advanced", "right")).toBe("general");
expect(getAdjacentConfigTab("mcp", "right")).toBe("skills");
expect(getAdjacentConfigTab("skills", "left")).toBe("mcp");
});
@@ -388,7 +388,6 @@ export function ConfigPanelContent(props: ConfigPanelProps) {
label: "Auto-approve all",
});
r.push({ kind: "toggle", id: "verbose", label: "Verbose" });
} else if (activeTab === "advanced") {
r.push({
kind: "toggle",
id: "run-commands-timeout",