Commit 385dedf
refactor(shell): simplify selectTab background-clear + autoclose lookup
- panes-fsm selectTab: replace the destructure + `void _bg` + `as TerminalTab`
cast ceremony with a plain `{ ...tab, background: undefined }` patch.
- shell-autoclose-monitor locate(): collapse findLeafByTabId + redundant
leaf.tabs.find re-search into one optional-chained lookup.
No behavior change. Typecheck, build, and 71 reducer/FSM tests pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 359f611 commit 385dedf
2 files changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
498 | | - | |
| 497 | + | |
499 | 498 | | |
500 | 499 | | |
501 | 500 | | |
502 | | - | |
| 501 | + | |
503 | 502 | | |
504 | 503 | | |
505 | 504 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 76 | + | |
| 77 | + | |
80 | 78 | | |
81 | 79 | | |
82 | 80 | | |
| |||
0 commit comments