Iuliia Ivashko
20cda28cac
fix(opencode): name the release when upgrading OpenCode
...
Since opencode 1.18.x, `POST /global/upgrade` requires a `target` semver in
the body. OpenChamber sent an empty object, so every "Update OpenCode" click
came back 400. The rejection arrives as `{name, data:{message}}`, which has
no `error` field, so the user was left with the bare status text: "Bad
Request".
Resolve the target from the latest release — the same lookup the upgrade
prompt already uses to decide there is anything to offer — and fail with an
explicit code when it cannot be resolved, rather than sending a body opencode
is guaranteed to reject. Read the upstream rejection message so a refused
upgrade explains itself.
The VS Code extension carries its own copy of this flow and had the same two
defects; both are fixed there.
fixes #3121
2026-08-28 18:48:27 +03:00
..
2026-07-18 00:11:05 +03:00
2026-06-23 21:52:51 +03:00
2026-08-04 14:40:44 -07:00
2026-08-07 00:25:57 +03:00
2026-08-15 01:59:26 +03:00
2026-08-15 01:59:26 +03:00
2026-06-02 00:43:05 +03:00
2026-06-02 00:43:05 +03:00
2026-06-26 19:27:53 +03:00
2026-08-03 06:40:01 +00:00
2026-08-03 12:03:37 +00:00
2026-08-03 06:56:38 +00:00
2026-08-13 22:44:13 +03:00
2026-08-13 22:44:13 +03:00
2026-08-21 16:25:51 +03:00
2026-08-05 11:24:14 +03:00
2026-08-05 11:24:14 +03:00
2026-08-19 10:38:53 +11:00
2026-08-19 10:38:53 +11:00
2026-08-20 01:40:10 +03:00
2026-06-11 01:06:25 +03:00
2026-06-11 01:06:25 +03:00
2026-08-28 01:27:32 +03:00
2026-08-28 01:27:32 +03:00
2026-08-28 02:08:09 +03:00
2026-08-28 02:08:09 +03:00
2026-08-28 02:08:09 +03:00
2026-08-10 20:23:45 +03:00
2026-07-05 23:19:10 +03:00
2026-07-07 19:49:11 +03:00
2026-07-07 19:49:11 +03:00
2026-06-26 19:27:53 +03:00
2026-08-07 00:10:29 +03:00
2026-08-07 00:10:29 +03:00
2026-08-03 06:40:01 +00:00
2026-08-03 06:40:01 +00:00
2026-08-15 06:30:36 +00:00
2026-08-15 06:30:36 +00:00
2026-06-24 00:43:11 +03:00
2026-06-24 00:43:11 +03:00
2026-08-03 13:57:05 +00:00
2026-08-03 13:18:27 +00:00
2026-08-03 13:18:27 +00:00
2026-08-20 18:39:13 +03:00
2026-08-20 18:39:13 +03:00
2026-08-17 23:44:38 +03:00
2026-08-17 23:44:38 +03:00
2026-08-17 23:44:38 +03:00
2026-07-12 19:54:35 -07:00
2026-08-19 11:53:30 +03:00
2026-08-10 16:10:03 +03:00
2026-08-28 18:48:27 +03:00
2026-08-28 18:48:27 +03:00
2026-08-14 12:45:35 +03:00
2026-08-14 12:45:35 +03:00
2026-07-29 17:26:11 +03:00
2026-06-05 13:36:39 +03:00
2026-08-19 11:53:30 +03:00
2026-08-19 11:53:30 +03:00
2026-08-27 23:14:04 +03:00
2026-08-27 23:14:04 +03:00
2026-08-22 20:31:31 +03:00
2026-08-22 20:31:31 +03:00
2026-08-22 11:55:38 +03:00
2026-08-22 11:55:38 +03:00
2026-08-17 16:44:17 +03:00
2026-08-17 16:44:17 +03:00
2026-07-17 10:30:45 +03:00
2026-08-20 01:40:10 +03:00
2026-08-20 01:40:10 +03:00
2026-08-03 09:25:25 +00:00
2026-08-03 09:55:56 +00:00
2026-06-26 19:27:53 +03:00
2026-07-31 12:51:15 +03:00
2026-07-31 12:51:15 +03:00
2026-07-31 12:51:15 +03:00
2026-07-24 21:54:28 +03:00
2026-06-02 00:43:05 +03:00
2026-06-02 00:43:05 +03:00
2026-06-30 18:41:07 +05:30
2026-06-30 18:41:07 +05:30
2026-07-12 00:46:41 +03:00
2026-07-30 20:07:08 +03:00
2026-07-29 19:59:41 +03:00