Repository navigation
Commit 8c54273
fix(clients): reopening a workspace file shows its current contents
Reopening a file (or any environment query) within the 5 minute idle TTL
reused the stale-while-revalidate node, so its stale check never ran and
the old contents survived every reopen. The idle TTL now holds only the
data and the refresh signal it was read under; the swr node and the
polling wrapper are released with their last reader, so a reopen rebuilds
swr and revalidates a stale answer. Polling stops when nobody reads.
On Android the source view has no pull-to-refresh, so the file menu's
Refresh action now also covers files whose contents come from the file
query (source, Markdown and table previews).
Fixes #29117
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent c86c3fa commit 8c54273
3 files changed
Lines changed: 24 additions & 21 deletions
File tree
- apps/mobile/src/features/files
- packages/client-runtime/src/state
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
869 | 869 | | |
870 | 870 | | |
871 | 871 | | |
872 | | - | |
873 | | - | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
874 | 875 | | |
875 | 876 | | |
876 | 877 | | |
877 | 878 | | |
878 | 879 | | |
879 | 880 | | |
| 881 | + | |
| 882 | + | |
880 | 883 | | |
881 | 884 | | |
882 | 885 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
949 | 949 | | |
950 | 950 | | |
951 | 951 | | |
| 952 | + | |
952 | 953 | | |
953 | 954 | | |
954 | 955 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
520 | | - | |
521 | | - | |
| 519 | + | |
| 520 | + | |
522 | 521 | | |
523 | 522 | | |
524 | 523 | | |
| |||
665 | 664 | | |
666 | 665 | | |
667 | 666 | | |
668 | | - | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
669 | 670 | | |
670 | 671 | | |
671 | 672 | | |
| |||
779 | 780 | | |
780 | 781 | | |
781 | 782 | | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
787 | 790 | | |
788 | | - | |
789 | | - | |
790 | | - | |
| 791 | + | |
791 | 792 | | |
792 | 793 | | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
800 | 799 | | |
801 | 800 | | |
802 | 801 | | |
| |||
0 commit comments