Commit dc068a6
committed
fix: prevent duplicate statusline when user/project settings are the same file
When the CLI is launched from ~ (home directory), user-level and
project-level settings.json resolve to the same file. This caused
resolveSettingsSources to merge the same content twice, resulting
in duplicate statusline segments and React non-unique key warnings.
Fix: detect same-file early in resolveCurrentSettings and pass null
for project settings when paths are identical.1 parent 2f33293 commit dc068a6
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
654 | 654 | | |
655 | 655 | | |
656 | 656 | | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
657 | 660 | | |
658 | 661 | | |
659 | | - | |
| 662 | + | |
660 | 663 | | |
661 | 664 | | |
662 | 665 | | |
| |||
0 commit comments