Skip to content

Commit e16d0e1

Browse files
authored
Misc fixes (#440)
1 parent c09820e commit e16d0e1

3 files changed

Lines changed: 26 additions & 13 deletions

File tree

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function printPatchResults(results: PatchResult[]): void {
7575
PatchGroup.SYSTEM_PROMPTS,
7676
PatchGroup.ALWAYS_APPLIED,
7777
PatchGroup.MISC_CONFIGURABLE,
78-
PatchGroup.NEW_FEATURES,
78+
PatchGroup.FEATURES,
7979
];
8080

8181
// Group results by PatchGroup

src/patches/index.ts

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export enum PatchGroup {
102102
SYSTEM_PROMPTS = 'System Prompts',
103103
ALWAYS_APPLIED = 'Always Applied',
104104
MISC_CONFIGURABLE = 'Misc Configurable',
105-
NEW_FEATURES = 'New Features',
105+
FEATURES = 'Features',
106106
}
107107

108108
export interface PatchResult {
@@ -111,6 +111,7 @@ export interface PatchResult {
111111
group: PatchGroup;
112112
applied: boolean;
113113
failed?: boolean;
114+
skipped?: boolean;
114115
details?: string;
115116
description?: string;
116117
}
@@ -121,7 +122,7 @@ interface Patch {
121122
group: PatchGroup;
122123
fn: (content: string) => string | null;
123124
condition?: boolean;
124-
description?: string;
125+
description: string;
125126
}
126127

127128
export interface ApplyCustomizationResult {
@@ -156,8 +157,16 @@ const applyPatches = (
156157
const results: PatchResult[] = [];
157158

158159
for (const patch of patches) {
159-
// Skip patches where condition is explicitly false
160+
// Skip patches where condition is explicitly false, but record them as skipped
160161
if (patch.condition === false) {
162+
results.push({
163+
id: patch.id,
164+
name: patch.name,
165+
group: patch.group,
166+
applied: false,
167+
skipped: true,
168+
description: patch.description,
169+
});
161170
continue;
162171
}
163172

@@ -386,6 +395,8 @@ export const applyCustomization = async (
386395
group: PatchGroup.MISC_CONFIGURABLE,
387396
fn: c => writeThinkerFormat(c, config.settings.thinkingVerbs!.format),
388397
condition: !!config.settings.thinkingVerbs,
398+
description:
399+
'Your custom format string that thinking verbs are wrapped in is applied',
389400
},
390401
{
391402
id: 'thinker-symbol-chars',
@@ -525,20 +536,20 @@ export const applyCustomization = async (
525536
},
526537

527538
// -------------------------------------------------------------------------
528-
// New Features
539+
// Features
529540
// -------------------------------------------------------------------------
530541
{
531542
id: 'swarm-mode',
532543
name: 'swarm mode',
533-
group: PatchGroup.NEW_FEATURES,
544+
group: PatchGroup.FEATURES,
534545
fn: c => writeSwarmMode(c),
535546
condition: !!config.settings.misc?.enableSwarmMode,
536547
description: 'SWARM MODE in Claude Code is enabled',
537548
},
538549
{
539550
id: 'toolsets',
540551
name: 'toolsets',
541-
group: PatchGroup.NEW_FEATURES,
552+
group: PatchGroup.FEATURES,
542553
fn: c =>
543554
writeToolsets(
544555
c,
@@ -554,7 +565,7 @@ export const applyCustomization = async (
554565
{
555566
id: 'mcp-non-blocking',
556567
name: 'MCP non-blocking',
557-
group: PatchGroup.NEW_FEATURES,
568+
group: PatchGroup.FEATURES,
558569
fn: c => writeMcpNonBlocking(c),
559570
condition: !!config.settings.misc?.mcpConnectionNonBlocking,
560571
description:
@@ -563,22 +574,23 @@ export const applyCustomization = async (
563574
{
564575
id: 'mcp-batch-size',
565576
name: `MCP batch size (${config.settings.misc?.mcpServerBatchSize ?? 'default'})`,
566-
group: PatchGroup.NEW_FEATURES,
577+
group: PatchGroup.FEATURES,
567578
fn: c => writeMcpBatchSize(c, config.settings.misc!.mcpServerBatchSize!),
568579
condition: !!config.settings.misc?.mcpServerBatchSize,
580+
description: `Number of MCP servers started in parallel is set to ${!!config.settings.misc?.mcpServerBatchSize}`,
569581
},
570582
{
571583
id: 'user-message-display',
572584
name: 'user message display',
573-
group: PatchGroup.NEW_FEATURES,
585+
group: PatchGroup.FEATURES,
574586
fn: c => writeUserMessageDisplay(c, config.settings.userMessageDisplay!),
575587
condition: !!config.settings.userMessageDisplay,
576588
description: 'User messages in the chat history will be styled',
577589
},
578590
{
579591
id: 'input-pattern-highlighters',
580592
name: 'input pattern highlighters',
581-
group: PatchGroup.NEW_FEATURES,
593+
group: PatchGroup.FEATURES,
582594
fn: c =>
583595
writeInputPatternHighlighters(
584596
c,
@@ -593,7 +605,7 @@ export const applyCustomization = async (
593605
{
594606
id: 'conversation-title',
595607
name: 'conversation title',
596-
group: PatchGroup.NEW_FEATURES,
608+
group: PatchGroup.FEATURES,
597609
fn: c => writeConversationTitle(c),
598610
condition:
599611
(config.settings.misc?.enableConversationTitle ?? true) &&

src/ui/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ export default function App({
101101
setNotification({
102102
message: `Your Claude Code installation was updated from ${startupCheckInfo.oldVersion} to ${startupCheckInfo.newVersion}, and the patching was likely overwritten
103103
(However, your customization are still remembered in ${CONFIG_FILE}.)
104-
Please reapply your changes below.`,
104+
105+
Please reapply your changes by running \`${invocationCommand} --apply\`.`,
105106
type: 'warning',
106107
});
107108
// Update settings to trigger changedApplied:false.

0 commit comments

Comments
 (0)