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
b26e2d192eJulius Marminge committed on 2/13/2026, 5:24:49 AM· committed by Julius Marmingeparente6d6450
1 file changedLine totals unavailable