Repository navigation
Commit bf626c0
fix(acp): keep text tool output shape and image order without message ids
Unwrap only image ToolCallContent blocks, so text tool output keeps the shape main uses. Start new segments for every closed message id at an image boundary, so text after an id-less image cannot reopen a pre-image segment, and give image segments their own item id namespace.
Ported by Claude Opus 5.5 in Amp.
Amp-Thread-ID: https://ampcode.com/threads/T-01a1d49f-af4b-77bf-b0f4-ad0d620d8ca0
Co-authored-by: Amp <[email protected]>1 parent dad96e5 commit bf626c0
2 files changed
Lines changed: 46 additions & 27 deletions
File tree
- apps/server/src/orchestration-v2/Adapters
- packages/provider-acp/src/server
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3153 | 3153 | | |
3154 | 3154 | | |
3155 | 3155 | | |
3156 | | - | |
3157 | | - | |
3158 | | - | |
| 3156 | + | |
| 3157 | + | |
| 3158 | + | |
| 3159 | + | |
3159 | 3160 | | |
3160 | | - | |
3161 | | - | |
| 3161 | + | |
| 3162 | + | |
3162 | 3163 | | |
3163 | 3164 | | |
3164 | 3165 | | |
| |||
3180 | 3181 | | |
3181 | 3182 | | |
3182 | 3183 | | |
3183 | | - | |
3184 | | - | |
3185 | | - | |
3186 | | - | |
3187 | | - | |
| 3184 | + | |
| 3185 | + | |
| 3186 | + | |
| 3187 | + | |
| 3188 | + | |
| 3189 | + | |
| 3190 | + | |
| 3191 | + | |
| 3192 | + | |
| 3193 | + | |
| 3194 | + | |
| 3195 | + | |
| 3196 | + | |
| 3197 | + | |
| 3198 | + | |
| 3199 | + | |
| 3200 | + | |
| 3201 | + | |
3188 | 3202 | | |
3189 | 3203 | | |
3190 | 3204 | | |
| |||
3307 | 3321 | | |
3308 | 3322 | | |
3309 | 3323 | | |
3310 | | - | |
| 3324 | + | |
| 3325 | + | |
| 3326 | + | |
| 3327 | + | |
3311 | 3328 | | |
3312 | 3329 | | |
3313 | 3330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1041 | 1041 | | |
1042 | 1042 | | |
1043 | 1043 | | |
| 1044 | + | |
1044 | 1045 | | |
1045 | 1046 | | |
1046 | 1047 | | |
1047 | 1048 | | |
1048 | | - | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
1049 | 1052 | | |
1050 | 1053 | | |
1051 | 1054 | | |
| |||
3026 | 3029 | | |
3027 | 3030 | | |
3028 | 3031 | | |
3029 | | - | |
3030 | 3032 | | |
3031 | 3033 | | |
3032 | 3034 | | |
| |||
3035 | 3037 | | |
3036 | 3038 | | |
3037 | 3039 | | |
3038 | | - | |
3039 | | - | |
| 3040 | + | |
| 3041 | + | |
3040 | 3042 | | |
3041 | 3043 | | |
3042 | 3044 | | |
| |||
3132 | 3134 | | |
3133 | 3135 | | |
3134 | 3136 | | |
3135 | | - | |
3136 | | - | |
3137 | | - | |
| 3137 | + | |
| 3138 | + | |
| 3139 | + | |
| 3140 | + | |
| 3141 | + | |
| 3142 | + | |
| 3143 | + | |
| 3144 | + | |
| 3145 | + | |
| 3146 | + | |
3138 | 3147 | | |
3139 | | - | |
3140 | | - | |
3141 | | - | |
3142 | | - | |
3143 | | - | |
| 3148 | + | |
3144 | 3149 | | |
3145 | 3150 | | |
3146 | | - | |
3147 | | - | |
3148 | | - | |
3149 | | - | |
| 3151 | + | |
3150 | 3152 | | |
3151 | 3153 | | |
3152 | 3154 | | |
| |||
0 commit comments