joycode 0.2.1: drop unstored reasoning ids (#493)
Responses requests with `store` not true have the `id` removed from `reasoning` input items before they go to JoyCode, keeping `summary` and `encrypted_content`; `store: true` and every other item's id are left as sent. JoyCode looked the replayed `rs_…` id up as a stored item and refused Codex's compaction with "Item with id 'rs_…' not found". Codex serializes a reasoning item's id when it has one (codex-rs protocol `ResponseItem::Reasoning`, `id: Option<ResponseItemId>`). Reviewed at f7627eb8956be934e728bbaa93843b257dd877ed: - `HOME=$(mktemp -d) bun test packages/joycode` three times on mote: 44 pass, 0 fail each; only loopback fetches (net guard preload). - `bun scripts/check.mjs`: every package passes. - Broken by hand: no stripping, stripping with `store: true`, and stripping every item's id each turn one of the two new tests red. - Not tried: a real JoyCode request (no JoyCode account here); the author's live repro with `rs_18e2e0b7486f2800000002e3` is in the PR. A request without `store` is treated as unstored, as the PR describes.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@magpie-community/opencode-joycode-auth",
|
||||
"version": "0.2.0",
|
||||
"version": "0.2.1",
|
||||
"description": "OpenCode provider plugin: JoyCode (JD Cloud JoyCoder IDE credits)",
|
||||
"type": "module",
|
||||
"main": "./index.mjs",
|
||||
|
||||
Reference in New Issue
Block a user