MCPcopy Index your code
hub / github.com/codeaashu/claude-code / onDone

Function onDone

src/utils/handlePromptSubmit.ts:272–294  ·  view source on GitHub ↗
(result, options)

Source from the content-addressed store, hash-verified

270
271 let doneWasCalled = false
272 const onDone: LocalJSXCommandOnDone = (result, options) => {
273 doneWasCalled = true
274 // Use clearLocalJSX to explicitly clear the local JSX command
275 setToolJSX({
276 jsx: null,
277 shouldHidePromptInput: false,
278 clearLocalJSX: true,
279 })
280 if (result && options?.display !== 'skip' && params.addNotification) {
281 params.addNotification({
282 key: `immediate-${immediateCommand.name}`,
283 text: result,
284 priority: 'immediate',
285 })
286 }
287 if (options?.nextInput) {
288 if (options.submitNextInput) {
289 enqueue({ value: options.nextInput, mode: 'prompt' })
290 } else {
291 onInputChange(options.nextInput)
292 }
293 }
294 }
295
296 const impl = await immediateCommand.load()
297 const jsx = await impl.call(onDone, context, commandArgs)

Callers

nothing calls this directly

Calls 1

enqueueFunction · 0.85

Tested by

no test coverage detected