Repository navigation
Commit 3697a84
test: warn on polling loops in tests and make adapter test harnesses event-driven
Add t3code/no-polling-loop-in-tests (warn for now) for loops that spin on yieldNow, sleep, or timer/microtask ticks until a predicate holds. Fixed-N flushes stay allowed.
The Claude and Codex adapter harnesses now publish to a PubSub whenever they record an event, continuation, or prompt. awaitTerminal, awaitContinuation, awaitSubagentStatus, and until re-check only when that state changes, replacing the 5000-yield awaitUntil budget. Settle windows that followed an offered SDK frame now use offerAndWait. OpenCode2 offer and turn waits now use Deferreds, and desktop preview waits use a change signal fed by state subscribers and the favicon mocks.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent f45927f commit 3697a84
9 files changed
Lines changed: 995 additions & 756 deletions
File tree
- apps
- desktop/src/preview
- server/src/orchestration-v2
- Adapters
- oxlint-plugin-t3code
- rules
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4709 | 4709 | | |
4710 | 4710 | | |
4711 | 4711 | | |
| 4712 | + | |
4712 | 4713 | | |
4713 | 4714 | | |
4714 | 4715 | | |
4715 | 4716 | | |
4716 | 4717 | | |
4717 | 4718 | | |
| 4719 | + | |
4718 | 4720 | | |
4719 | 4721 | | |
4720 | 4722 | | |
| |||
4723 | 4725 | | |
4724 | 4726 | | |
4725 | 4727 | | |
4726 | | - | |
4727 | | - | |
4728 | | - | |
| 4728 | + | |
4729 | 4729 | | |
4730 | 4730 | | |
4731 | 4731 | | |
| |||
5021 | 5021 | | |
5022 | 5022 | | |
5023 | 5023 | | |
| 5024 | + | |
5024 | 5025 | | |
5025 | 5026 | | |
5026 | 5027 | | |
| |||
5055 | 5056 | | |
5056 | 5057 | | |
5057 | 5058 | | |
5058 | | - | |
| 5059 | + | |
| 5060 | + | |
| 5061 | + | |
| 5062 | + | |
5059 | 5063 | | |
5060 | 5064 | | |
5061 | 5065 | | |
| |||
5074 | 5078 | | |
5075 | 5079 | | |
5076 | 5080 | | |
5077 | | - | |
5078 | | - | |
5079 | | - | |
| 5081 | + | |
5080 | 5082 | | |
5081 | 5083 | | |
5082 | 5084 | | |
| |||
5661 | 5663 | | |
5662 | 5664 | | |
5663 | 5665 | | |
| 5666 | + | |
5664 | 5667 | | |
5665 | 5668 | | |
5666 | 5669 | | |
| |||
5709 | 5712 | | |
5710 | 5713 | | |
5711 | 5714 | | |
5712 | | - | |
| 5715 | + | |
| 5716 | + | |
| 5717 | + | |
| 5718 | + | |
5713 | 5719 | | |
5714 | 5720 | | |
5715 | 5721 | | |
| |||
5727 | 5733 | | |
5728 | 5734 | | |
5729 | 5735 | | |
5730 | | - | |
5731 | | - | |
5732 | | - | |
| 5736 | + | |
5733 | 5737 | | |
5734 | 5738 | | |
5735 | 5739 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
0 commit comments