MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / handleInputChange

Function handleInputChange

cli/src/components/chat-input-bar.tsx:183–198  ·  view source on GitHub ↗
(value: InputValue)

Source from the content-addressed store, hash-verified

181
182 // Handle input changes with special mode entry detection
183 const handleInputChange = (value: InputValue) => {
184 // Detect entering bash mode: user typed exactly '!' when in default mode
185 if (inputMode === 'default' && value.text === '!') {
186 // Enter bash mode and clear input
187 setInputMode('bash')
188 setInputValue({
189 text: '',
190 cursorPosition: 0,
191 lastEditDueToNav: value.lastEditDueToNav,
192 })
193 return
194 }
195
196 // Normal input handling
197 setInputValue(value)
198 }
199
200 const handleFormSubmit = (
201 answers: { question: string; answer: string }[],

Callers

nothing calls this directly

Calls 2

setInputModeFunction · 0.85
setInputValueFunction · 0.85

Tested by

no test coverage detected