Preserve draft env mode across thread and branch context updates

- Track and persist `envMode` in composer draft thread state
- Keep worktree mode for local drafts even when `worktreePath` is null
- Update branch toolbar/chat/sidebar to use effective draft env mode
- Add tests for env mode persistence and undefined option merges
4ab5fca4caJulius Marminge committed on 3/2/2026, 6:36:35 AM· committed by Julius Marmingeparent69a4fa8
5 files changedLine totals unavailable