Commit 9715924
fix: backport 9 upstream bug fixes (B1-B9) (#16)
* fix(vcs): fix inverted HEAD filter in watcher (backport B8 #17829)
The file watcher was ignoring HEAD changes instead of filtering
non-HEAD changes, so branch switches were never detected.
Upstream: anomalyco/opencode#17829 (e5cbecf)
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
* fix(core): detect context_length_exceeded in API call errors (backport B1 #17748)
Parse response body for error code so providers returning
context_length_exceeded are correctly classified as context overflow.
Upstream: anomalyco/opencode#17748 (e718db6)
* fix(util): log ZodError issues on schema validation failure (backport B5)
Print the specific validation issues alongside the stack trace to make
debugging schema mismatches easier.
* fix(tui): check for selected text in dialog escape handler (backport B7 #16779)
Check getSelectedText() instead of just getSelection() so escape
correctly closes dialogs when a selection object exists but has no text.
Upstream: anomalyco/opencode#16779 (a64f604)
* fix(ui): wrap question option descriptions instead of truncating (backport B6 #17782)
Replace overflow:hidden/text-overflow:ellipsis with overflow-wrap:anywhere
so long descriptions are visible. Remove the now-redundant data-custom override.
Upstream: anomalyco/opencode#17782 (51fcd04)
* fix(opencode): apply message transforms during compaction (backport B2 #17823)
Run Plugin.trigger("experimental.chat.messages.transform") on a
structuredClone of messages before passing them to the compaction model.
Upstream: anomalyco/opencode#17823 (4cb2996)
* fix(opencode): forward session permission ruleset to LLM stream (backport B3 #17064)
Add permission field to StreamInput and merge it with agent permissions
when computing disabled tools. Forward session.permission from prompt.ts.
Upstream: anomalyco/opencode#17064 (c2ca149)
* fix(opencode): add prompt schema validation debug logs (backport B4 #17812)
Log info and part schema validation failures before persisting to help
diagnose data corruption issues.
Upstream: anomalyco/opencode#17812 (fee3c19)
---------
Co-authored-by: Kit Langton <kit.langton@gmail.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Johannes Loher <johannes.loher@tngtech.com>
Co-authored-by: Adrian Mârza <adi11235 at gmail dot com>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
Co-authored-by: Shoubhit Dash <shoubhit2005@gmail.com>
Co-authored-by: DS <78942835+Tarquinen@users.noreply.github.com>
Co-authored-by: Jason Quense <monastic.panic@gmail.com>1 parent 73ae3ca commit 9715924
8 files changed
Lines changed: 39 additions & 18 deletions
File tree
- packages
- opencode/src
- cli/cmd/tui/ui
- project
- provider
- session
- util
- ui/src/components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
| 171 | + | |
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
207 | 209 | | |
208 | 210 | | |
209 | 211 | | |
| |||
212 | 214 | | |
213 | 215 | | |
214 | 216 | | |
215 | | - | |
| 217 | + | |
216 | 218 | | |
217 | 219 | | |
218 | 220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
255 | 256 | | |
256 | 257 | | |
257 | 258 | | |
258 | | - | |
259 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
260 | 264 | | |
261 | 265 | | |
262 | 266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
| 712 | + | |
712 | 713 | | |
713 | 714 | | |
714 | 715 | | |
| |||
1351 | 1352 | | |
1352 | 1353 | | |
1353 | 1354 | | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
1354 | 1375 | | |
1355 | 1376 | | |
1356 | 1377 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1050 | 1050 | | |
1051 | 1051 | | |
1052 | 1052 | | |
1053 | | - | |
1054 | | - | |
1055 | | - | |
1056 | | - | |
1057 | | - | |
1058 | | - | |
1059 | | - | |
1060 | | - | |
1061 | | - | |
1062 | | - | |
1063 | | - | |
1064 | | - | |
| 1053 | + | |
| 1054 | + | |
1065 | 1055 | | |
1066 | 1056 | | |
1067 | 1057 | | |
| |||
0 commit comments