(value: string)
| 41 | setSelectedOption(null); |
| 42 | }, []); |
| 43 | const handleSelectOption = async (value: string): Promise<void> => { |
| 44 | if (value === 'clipboard') { |
| 45 | // Copy to clipboard immediately |
| 46 | const raw = await setClipboard(content); |
| 47 | if (raw) process.stdout.write(raw); |
| 48 | onDone({ |
| 49 | success: true, |
| 50 | message: 'Conversation copied to clipboard' |
| 51 | }); |
| 52 | } else if (value === 'file') { |
| 53 | setSelectedOption('file'); |
| 54 | setShowFilenameInput(true); |
| 55 | } |
| 56 | }; |
| 57 | const handleFilenameSubmit = () => { |
| 58 | const finalFilename = filename.endsWith('.txt') ? filename : filename.replace(/\.[^.]+$/, '') + '.txt'; |
| 59 | const filepath = join(getCwd(), finalFilename); |
no test coverage detected