Clear terminal history on close and prefer git cwd

- Pass `deleteHistory: true` when closing a terminal
- Fallback path now clears terminal before sending `exit`
- Use `gitCwd` as terminal cwd when available
93d0ac444cJulius Marminge committed on 2/13/2026, 5:22:30 AMparent383f61c
1 file changedLine totals unavailable