Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: the $ skill picker now lists the active project's skills #6450

ClosedBrechard(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromrefs/pull/6450/headopened View on GitHub

Showing 29 changed files with 26 additions and 8 deletions (loading 25).

x
0 of 29 viewed, 29 left
5 additions and 3 deletionsapps/mobile/src/features/threads/ThreadComposer.tsxModified
View file
@@ -7,6 +7,7 @@
ProviderInteractionMode,
RuntimeMode,
ServerConfig as T3ServerConfig,
+ ServerProviderSkill,
} from "@t3tools/contracts";
import {
detectComposerTrigger,
@@ -106,6 +107,7 @@
readonly activeThreadBusy: boolean;
readonly environmentId: EnvironmentId;
readonly projectCwd: string | null;
+ readonly skills: ReadonlyArray<ServerProviderSkill>;
readonly editorRef?: RefObject<ComposerEditorHandle | null>;
readonly onChangeDraftMessage: (value: string) => void;
readonly onPickDraftImages: () => Promise<void>;
@@ -431,7 +433,7 @@
​
if (composerTrigger.kind === "skill") {
- const enabledSkills = (selectedProviderStatus?.skills ?? []).filter((s) => s.enabled);
+ const enabledSkills = props.skills.filter((s) => s.enabled);
const normalizedQuery = normalizeSearchQuery(composerTrigger.query, {
trimLeadingPattern: /^\$+/,
});
@@ -528,7 +530,7 @@