Repository navigation
Commit 7e518c8
refactor(mobile): thread inspector mode is derived, not synced
ThreadRouteScreen stored the inspector selection together with the thread
identity it was picked for, then copied the new identity in after every route
change with an effect. Each thread switch therefore rendered once with no
inspector mode (deregistering the workspace inspector and letting the
auto-close effect see a transient empty state), then rendered again once the
effect caught up.
Store only the mode the user chose and derive the effective mode in render:
"route" applies whenever the route supplies an inspector, a chosen git/files
mode carries over, and files drops out when the thread has no working
directory.
Effects: ThreadRouteScreen.tsx 4 -> 3. Removed the selection sync effect.
Kept the auto-close effect: it writes the shared workspace pane preference
when this thread has nothing to show, and dropping it would leave the pane
preferred-visible, which on non-native split view keeps the primary sidebar
suppressed with no inspector beside it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent abf8f43 commit 7e518c8
1 file changed
Lines changed: 14 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | 114 | | |
120 | 115 | | |
121 | 116 | | |
| |||
435 | 430 | | |
436 | 431 | | |
437 | 432 | | |
438 | | - | |
439 | | - | |
440 | | - | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
441 | 436 | | |
442 | 437 | | |
443 | 438 | | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
451 | 448 | | |
452 | 449 | | |
453 | 450 | | |
| |||
468 | 465 | | |
469 | 466 | | |
470 | 467 | | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | 468 | | |
490 | 469 | | |
491 | 470 | | |
| |||
552 | 531 | | |
553 | 532 | | |
554 | 533 | | |
555 | | - | |
| 534 | + | |
556 | 535 | | |
557 | 536 | | |
558 | 537 | | |
| |||
567 | 546 | | |
568 | 547 | | |
569 | 548 | | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
| 549 | + | |
574 | 550 | | |
575 | 551 | | |
576 | 552 | | |
| |||
0 commit comments