File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1946,21 +1946,21 @@ export function AgentPanel() {
19461946 return [ ]
19471947 }
19481948
1949- // Detect picker triggers
1950- if ( input === '/skill ' || input . startsWith ( '/skill use ' ) ) {
1951- const query = input . replace ( '/ skill use ' , '' ) . replace ( '/skill ' , '' )
1949+ // Detect picker triggers — open on exact match OR with trailing space/query
1950+ if ( input === '/skill' || input === '/skill ' || input . startsWith ( '/skill use' ) || input === '/skill use' ) {
1951+ const query = input . replace ( / ^ \/ s k i l l \s * ( u s e \s * ) ? / , '' )
19521952 setActivePicker ( 'skill' )
19531953 setPickerQuery ( query )
19541954 return [ ]
19551955 }
1956- if ( input . startsWith ( '/mcp ' ) ) {
1957- const query = input . replace ( '/ mcp ' , '' )
1956+ if ( input === '/mcp' || input . startsWith ( '/mcp ' ) ) {
1957+ const query = input . replace ( / ^ \/ m c p \s * / , '' )
19581958 setActivePicker ( 'mcp' )
19591959 setPickerQuery ( query )
19601960 return [ ]
19611961 }
1962- if ( input . startsWith ( '/prompt ' ) ) {
1963- const query = input . replace ( '/ prompt ' , '' )
1962+ if ( input === '/prompt' || input . startsWith ( '/prompt ' ) ) {
1963+ const query = input . replace ( / ^ \/ p r o m p t \s * / , '' )
19641964 setActivePicker ( 'prompt' )
19651965 setPickerQuery ( query )
19661966 return [ ]
You can’t perform that action at this time.
0 commit comments