The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 23:30 UTC
fix(shared): Claude plugin skills no longer show their name twice (#26311)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Nov 11, 2026 at 09:19 UTC
3ed5fb29bd2ffdb31cf146f016300e26ca237f99
4 files changed
+5
-16
apps/mobile/src/features/threads/ThreadFeed.tsx
+2
-2
@@ -10,10 +10,10 @@ import {
10
withChipIcon,
11
} from "../../native/useEnrichedLinkVariants";
12
import {
13
- enrichedSkillDisplayName,
13
enrichedSkillInstructionsPath,
14
enrichedSkillReference,
15
} from "../../lib/enrichedLinkPresentation";
16
+import { formatProviderSkillDisplayName } from "@t3tools/shared/inlineSkills";
17
import { ThreadContextDivider } from "./thread-context-divider";
18
import {
19
ThreadHandoffDivider,
@@ -2992,7 +2992,7 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
2992
const skill = enrichedSkillReference(href, props.skills);
2993
if (skill) {
2994
return {
2995
- title: enrichedSkillDisplayName(skill),
2995
+ title: formatProviderSkillDisplayName(skill),
2996
actions: [
2997
{
2998
id: "open-skill",
apps/mobile/src/lib/enrichedLinkPresentation.ts
-11
@@ -105,17 +105,6 @@ export function enrichedSkillLinkRegex(skills?: ReadonlyArray<SelectableMarkdown
105
);
106
}
107
108
-export function enrichedSkillDisplayName(skill: SelectableMarkdownSkill) {
109
- return (
110
- skill.displayName?.trim() ||
111
- skill.name
112
- .split(/[\s:_-]+/)
113
- .filter(Boolean)
114
- .map((word) => word.charAt(0).toUpperCase() + word.slice(1))
115
- .join(" ")
116
- );
117
-}
118
-
108
export function enrichedSkillReference(
109
url: string,
110
skills?: ReadonlyArray<SelectableMarkdownSkill>,
apps/mobile/src/native/useEnrichedLinkVariants.ts
+2
-2
@@ -19,10 +19,10 @@ import {
19
enrichedContextLinkPresentation,
20
enrichedLinkVariantPattern,
21
enrichedModelReference,
22
- enrichedSkillDisplayName,
22
enrichedSkillReference,
23
enrichedThreadLinkPresentation,
24
} from "../lib/enrichedLinkPresentation";
25
+import { formatProviderSkillDisplayName } from "@t3tools/shared/inlineSkills";
26
27
function chipCustomization(
28
chip: ReturnType<typeof enrichedContextLinkPresentation>,
@@ -70,7 +70,7 @@ function presentation(
70
const skill = enrichedSkillReference(url, props.skills);
71
if (skill)
72
return {
73
- label: enrichedSkillDisplayName(skill),
73
+ label: formatProviderSkillDisplayName(skill),
74
icon: CONTEXT_CHIP_ICON_SOURCES.skill,
75
chip: { accent: contextChipPresentation("skill").accent, tintsIcon: true },
76
};
packages/shared/src/inlineSkills.ts
+1
-1
@@ -3,7 +3,7 @@ import type { ServerProviderSkill } from "@t3tools/contracts";
3
export type InlineSkill = Pick<ServerProviderSkill, "name" | "displayName">;
4
5
export function formatProviderSkillDisplayName(
6
- skill: Pick<ServerProviderSkill, "name" | "displayName">,
6
+ skill: Pick<ServerProviderSkill, "name"> & { readonly displayName?: string | null | undefined },
7
): string {
8
return skill.displayName?.trim() || skill.name;
9
}