Repository navigation
Commit 38c6c75
fix(server): a remote task's thread wakes its parent for a usage-limit auto-resume
A forwarded wait with afterRunId reads the stored message that started each
later run, but the usage-limit continuation marker lived only on the
message.dispatch command, so an automatic resume after a usage limit never
counted as follow-up work and the parent missed the resumed run's result.
The stored message now carries usageLimitContinuationOfRunId (an optional
field in its JSON payload, so no migration); messages stored before this
change lack it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent ab4588b commit 38c6c75
3 files changed
Lines changed: 126 additions & 0 deletions
File tree
- apps/server/src/orchestration-v2
- packages/contracts/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6316 | 6316 | | |
6317 | 6317 | | |
6318 | 6318 | | |
| 6319 | + | |
| 6320 | + | |
| 6321 | + | |
6319 | 6322 | | |
6320 | 6323 | | |
6321 | 6324 | | |
| |||
6700 | 6703 | | |
6701 | 6704 | | |
6702 | 6705 | | |
| 6706 | + | |
| 6707 | + | |
| 6708 | + | |
6703 | 6709 | | |
6704 | 6710 | | |
6705 | 6711 | | |
| |||
7482 | 7488 | | |
7483 | 7489 | | |
7484 | 7490 | | |
| 7491 | + | |
| 7492 | + | |
| 7493 | + | |
7485 | 7494 | | |
7486 | 7495 | | |
7487 | 7496 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8039 | 8039 | | |
8040 | 8040 | | |
8041 | 8041 | | |
| 8042 | + | |
| 8043 | + | |
| 8044 | + | |
| 8045 | + | |
| 8046 | + | |
| 8047 | + | |
| 8048 | + | |
| 8049 | + | |
| 8050 | + | |
| 8051 | + | |
| 8052 | + | |
| 8053 | + | |
| 8054 | + | |
| 8055 | + | |
| 8056 | + | |
| 8057 | + | |
| 8058 | + | |
| 8059 | + | |
| 8060 | + | |
| 8061 | + | |
| 8062 | + | |
| 8063 | + | |
| 8064 | + | |
| 8065 | + | |
| 8066 | + | |
| 8067 | + | |
| 8068 | + | |
| 8069 | + | |
| 8070 | + | |
| 8071 | + | |
| 8072 | + | |
| 8073 | + | |
| 8074 | + | |
| 8075 | + | |
| 8076 | + | |
| 8077 | + | |
| 8078 | + | |
| 8079 | + | |
| 8080 | + | |
| 8081 | + | |
| 8082 | + | |
| 8083 | + | |
| 8084 | + | |
| 8085 | + | |
| 8086 | + | |
| 8087 | + | |
| 8088 | + | |
| 8089 | + | |
| 8090 | + | |
| 8091 | + | |
| 8092 | + | |
| 8093 | + | |
| 8094 | + | |
| 8095 | + | |
| 8096 | + | |
| 8097 | + | |
| 8098 | + | |
| 8099 | + | |
| 8100 | + | |
| 8101 | + | |
| 8102 | + | |
| 8103 | + | |
| 8104 | + | |
| 8105 | + | |
| 8106 | + | |
| 8107 | + | |
| 8108 | + | |
| 8109 | + | |
| 8110 | + | |
| 8111 | + | |
| 8112 | + | |
| 8113 | + | |
| 8114 | + | |
| 8115 | + | |
| 8116 | + | |
| 8117 | + | |
| 8118 | + | |
| 8119 | + | |
| 8120 | + | |
| 8121 | + | |
| 8122 | + | |
| 8123 | + | |
| 8124 | + | |
| 8125 | + | |
| 8126 | + | |
| 8127 | + | |
| 8128 | + | |
| 8129 | + | |
| 8130 | + | |
| 8131 | + | |
| 8132 | + | |
| 8133 | + | |
| 8134 | + | |
| 8135 | + | |
| 8136 | + | |
| 8137 | + | |
| 8138 | + | |
| 8139 | + | |
| 8140 | + | |
| 8141 | + | |
| 8142 | + | |
| 8143 | + | |
| 8144 | + | |
| 8145 | + | |
| 8146 | + | |
| 8147 | + | |
| 8148 | + | |
| 8149 | + | |
| 8150 | + | |
| 8151 | + | |
| 8152 | + | |
| 8153 | + | |
| 8154 | + | |
| 8155 | + | |
| 8156 | + | |
8042 | 8157 | | |
8043 | 8158 | | |
8044 | 8159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1304 | 1304 | | |
1305 | 1305 | | |
1306 | 1306 | | |
| 1307 | + | |
| 1308 | + | |
1307 | 1309 | | |
1308 | 1310 | | |
1309 | 1311 | | |
| |||
0 commit comments