Commit a367c13
committed
🤖 fix: redeliver saved reports for 'reported' tasks on restart
Address Codex review comment: if Mux crashes after saving a task's
report (taskStatus='reported') but before delivering it to the parent
workspace, the report would be lost on restart.
Now:
- getActiveAgentTaskWorkspaces() includes 'reported' tasks
- rehydrateTasks() calls redeliverSavedReport() for reported tasks
- hasActiveDescendantTasks() filters out reported tasks so they don't
block parent stream resumption
Added test case to verify restart redelivery of saved reports.
Change-Id: I2fa8baf8297dbb74c3ae94214c4816c94e424a81
Signed-off-by: Thomas Kosiewski <tk@coder.com>1 parent f6d130f commit a367c13
File tree
3 files changed
+108
-5
lines changed- src/node
- services
3 files changed
+108
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
656 | | - | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
657 | 660 | | |
658 | 661 | | |
659 | 662 | | |
660 | | - | |
| 663 | + | |
| 664 | + | |
661 | 665 | | |
662 | 666 | | |
663 | 667 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
150 | | - | |
| 151 | + | |
| 152 | + | |
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
| |||
824 | 826 | | |
825 | 827 | | |
826 | 828 | | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
827 | 874 | | |
828 | 875 | | |
829 | 876 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
475 | 512 | | |
476 | 513 | | |
477 | 514 | | |
| |||
952 | 989 | | |
953 | 990 | | |
954 | 991 | | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
955 | 1001 | | |
956 | 1002 | | |
957 | 1003 | | |
| |||
1036 | 1082 | | |
1037 | 1083 | | |
1038 | 1084 | | |
1039 | | - | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
1040 | 1092 | | |
1041 | 1093 | | |
1042 | 1094 | | |
| |||
1046 | 1098 | | |
1047 | 1099 | | |
1048 | 1100 | | |
1049 | | - | |
| 1101 | + | |
1050 | 1102 | | |
1051 | 1103 | | |
1052 | 1104 | | |
| |||
0 commit comments