()
| 9 | import { getCurrentWorktreeSession } from '../../utils/worktree.js'; |
| 10 | const GOODBYE_MESSAGES = ['Goodbye!', 'See ya!', 'Bye!', 'Catch you later!']; |
| 11 | function getRandomGoodbyeMessage(): string { |
| 12 | return sample(GOODBYE_MESSAGES) ?? 'Goodbye!'; |
| 13 | } |
| 14 | export async function call(onDone: LocalJSXCommandOnDone): Promise<React.ReactNode> { |
| 15 | // Inside a `claude --bg` tmux session: detach instead of kill. The REPL |
| 16 | // keeps running; `claude attach` can reconnect. Covers /exit, /quit, |