diff options
| author | Adam <[email protected]> | 2025-12-15 10:18:55 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-15 10:22:07 -0600 |
| commit | ed96ae9d45633392bf96c733162bf1315512d93b (patch) | |
| tree | 514695b5ee04fbcda0c4f230e92f45e0e9fd1669 /packages/desktop/src/components | |
| parent | 8ce0966987a0de46d64307c02f729a290f2f3cf3 (diff) | |
| download | opencode-ed96ae9d45633392bf96c733162bf1315512d93b.tar.gz opencode-ed96ae9d45633392bf96c733162bf1315512d93b.zip | |
chore: cleanup
Diffstat (limited to 'packages/desktop/src/components')
| -rw-r--r-- | packages/desktop/src/components/prompt-input.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/desktop/src/components/prompt-input.tsx b/packages/desktop/src/components/prompt-input.tsx index f3f758102..595f07972 100644 --- a/packages/desktop/src/components/prompt-input.tsx +++ b/packages/desktop/src/components/prompt-input.tsx @@ -414,7 +414,6 @@ export const PromptInput: Component<PromptInputProps> = (props) => { const rawText = rawParts.map((p) => ("content" in p ? p.content : "")).join("") const atMatch = rawText.substring(0, cursorPosition).match(/@(\S*)$/) - // Slash commands only trigger when / is at the start of input const slashMatch = rawText.match(/^\/(\S*)$/) if (atMatch) { @@ -675,7 +674,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => { if (text.startsWith("/")) { const [cmdName, ...args] = text.split(" ") - const commandName = cmdName.slice(1) // Remove leading "/" + const commandName = cmdName.slice(1) const customCommand = sync.data.command.find((c) => c.name === commandName) if (customCommand) { sdk.client.session.command({ |
