- Add setTerminalFocusRequestId bump in closeTerminal for non-final tabs, matching the pattern used by splitTerminal and createNewTerminal. - Refactor toggleOpen to use a named 'next' variable so the predicate reads identically to setOpen, reducing maintenance hazard.