From 29b72ebe9de7df2113f677c007a8c9e9c145e5fa Mon Sep 17 00:00:00 2001 From: "mux-bot[bot]" <264182336+mux-bot[bot]@users.noreply.github.com> Date: Tue, 24 Mar 2026 16:26:04 +0000 Subject: [PATCH 1/2] refactor: remove dead UIPermissionMode and SDKPermissionMode types These two type aliases in global.d.ts were never imported or referenced anywhere in the codebase. They appear to be remnants of an earlier permission system design that was superseded. --- src/common/types/global.d.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/common/types/global.d.ts b/src/common/types/global.d.ts index 1ab6ecf259..d9ca7540c6 100644 --- a/src/common/types/global.d.ts +++ b/src/common/types/global.d.ts @@ -2,12 +2,6 @@ import type { RouterClient } from "@orpc/server"; import type { AppRouter } from "@/node/orpc/router"; import type { MuxDeepLinkPayload } from "@/common/types/deepLink"; -// Our simplified permission modes for UI -export type UIPermissionMode = "plan" | "edit"; - -// Claude SDK permission modes -export type SDKPermissionMode = "default" | "acceptEdits" | "bypassPermissions" | "plan"; - declare global { interface WindowApi { platform: NodeJS.Platform; From 2ca8a84e051a563f0b24a3e19e6297328fa9ce74 Mon Sep 17 00:00:00 2001 From: "mux-bot[bot]" <264182336+mux-bot[bot]@users.noreply.github.com> Date: Wed, 25 Mar 2026 00:13:26 +0000 Subject: [PATCH 2/2] refactor: remove unused STATUS_MESSAGE_MAX_LENGTH constant The status_set tool was removed in 9ef71ed8 (derive workspace status from todo list), but its STATUS_MESSAGE_MAX_LENGTH constant was left behind with zero remaining consumers. --- src/common/constants/toolLimits.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/common/constants/toolLimits.ts b/src/common/constants/toolLimits.ts index 510153a49c..b5a0e7e195 100644 --- a/src/common/constants/toolLimits.ts +++ b/src/common/constants/toolLimits.ts @@ -19,8 +19,6 @@ export const MAX_TODOS = 7; // Maximum number of TODO items in a list // Keep only the most recent lines (tail), drop older lines export const INIT_HOOK_MAX_LINES = 500; -export const STATUS_MESSAGE_MAX_LENGTH = 60; // Maximum length for status messages (auto-truncated) - // Web fetch tool limits export const WEB_FETCH_TIMEOUT_SECS = 15; // curl timeout export const WEB_FETCH_MAX_OUTPUT_BYTES = 64 * 1024; // 64KB markdown output