File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -122,16 +122,16 @@ export async function routeUserPrompt(params: {
122122 return
123123 }
124124
125- const normalized = trimmed.startsWith('/') ? trimmed.slice(1) : trimmed
125+ const normalized = trimmed.startsWith('/') ? trimmed.slice(1) : ''
126126 const cmd = normalized.split(/\s+/)[0].toLowerCase()
127-
127+
128128 if (cmd === 'feedback') {
129129 // Return special flag to open feedback mode
130130 saveToHistory(trimmed)
131131 setInputValue({ text: '', cursorPosition: 0, lastEditDueToNav: false })
132132 return { openFeedbackMode: true }
133133 }
134-
134+
135135 if (cmd === 'login' || cmd === 'signin') {
136136 setMessages((prev) => [
137137 ...prev,
@@ -220,6 +220,6 @@ export async function routeUserPrompt(params: {
220220 setTimeout(() => {
221221 scrollToLatest()
222222 }, 0)
223-
223+
224224 return
225225}
You can’t perform that action at this time.
0 commit comments