Repository navigation
Commit d554ec9
committed
fix(server): bound only the baseline snapshot, not the wait for the workspace lock
The 5 second budget wrapped the whole baseline capture, including the wait
for the per-workspace checkpoint lock. After Stop, the next run's baseline
could stop waiting on the stopped run's post-turn capture, which writes the
same ref, and start the provider while that `git add -A` was still reading
the tree, so the agent's first edits could land in the baseline.
The budget now sits in CheckpointService on the snapshot alone, after the
lock is held and the existing ref has been checked. The regression test
moves to CheckpointService, where the budget lives.
AI-assisted; verified with the tests and tools listed above.1 parent 8aa3d49 commit d554ec9
4 files changed
Lines changed: 93 additions & 28 deletions
File tree
- apps/server/src/orchestration-v2
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
98 | 102 | | |
99 | 103 | | |
100 | 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 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
101 | 178 | | |
102 | 179 | | |
103 | 180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
287 | 290 | | |
288 | 291 | | |
289 | 292 | | |
| 293 | + | |
290 | 294 | | |
291 | 295 | | |
292 | 296 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1121 | 1121 | | |
1122 | 1122 | | |
1123 | 1123 | | |
1124 | | - | |
| 1124 | + | |
1125 | 1125 | | |
1126 | 1126 | | |
1127 | 1127 | | |
| |||
1135 | 1135 | | |
1136 | 1136 | | |
1137 | 1137 | | |
1138 | | - | |
| 1138 | + | |
1139 | 1139 | | |
1140 | 1140 | | |
1141 | 1141 | | |
| |||
1149 | 1149 | | |
1150 | 1150 | | |
1151 | 1151 | | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
1161 | | - | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
1162 | 1158 | | |
1163 | 1159 | | |
1164 | 1160 | | |
| |||
1178 | 1174 | | |
1179 | 1175 | | |
1180 | 1176 | | |
1181 | | - | |
| 1177 | + | |
1182 | 1178 | | |
1183 | 1179 | | |
1184 | 1180 | | |
1185 | 1181 | | |
1186 | 1182 | | |
1187 | 1183 | | |
1188 | 1184 | | |
1189 | | - | |
1190 | | - | |
1191 | | - | |
1192 | | - | |
| 1185 | + | |
1193 | 1186 | | |
1194 | 1187 | | |
1195 | 1188 | | |
| |||
1229 | 1222 | | |
1230 | 1223 | | |
1231 | 1224 | | |
1232 | | - | |
1233 | | - | |
1234 | | - | |
| 1225 | + | |
1235 | 1226 | | |
1236 | | - | |
1237 | | - | |
1238 | | - | |
| 1227 | + | |
1239 | 1228 | | |
1240 | 1229 | | |
1241 | 1230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | 102 | | |
107 | 103 | | |
108 | 104 | | |
| |||
972 | 968 | | |
973 | 969 | | |
974 | 970 | | |
975 | | - | |
976 | 971 | | |
977 | 972 | | |
978 | 973 | | |
| |||
0 commit comments