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

Function exitImageModeIfActive

cli/src/utils/pending-attachments.ts:12–16  ·  view source on GitHub ↗

* Exit image input mode if currently active. * Called after successfully adding an image via paste or path.

()

Source from the content-addressed store, hash-verified

10 * Called after successfully adding an image via paste or path.
11 */
12function exitImageModeIfActive(): void {
13 if (useChatStore.getState().inputMode === 'image') {
14 useChatStore.getState().setInputMode('default')
15 }
16}
17
18/**
19 * Process an image file and add it to the pending images state.

Callers 1

addPendingImageFromFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected