You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,19 @@
2
2
3
3
All notable changes to this project are documented here. Dates use the ISO format (YYYY-MM-DD).
4
4
5
+
## [4.0.1] - 2025-11-27
6
+
7
+
**Bugfix release**: Fixes API errors during summary/compaction and GitHub rate limiting.
8
+
9
+
### Fixed
10
+
-**Orphaned `function_call_output` errors**: Fixed 400 errors during summary/compaction requests when OpenCode sends `item_reference` pointers to server-stored function calls. The plugin now filters out `function_call` and `function_call_output` items when no tools are present in the request.
11
+
-**GitHub API rate limiting**: Added fallback mechanism when fetching Codex instructions from GitHub. If the API returns 403 (rate limit), the plugin now falls back to parsing the HTML releases page.
12
+
13
+
### Technical Details
14
+
- Root cause: OpenCode's secondary model (gpt-5-nano) uses `item_reference` with `fc_*` IDs to reference stored function calls. Our plugin filters `item_reference` for stateless mode (`store: false`), leaving `function_call_output` orphaned. The Codex API rejects requests with orphaned outputs.
15
+
- Fix: When `hasTools === false`, filter out all `function_call` and `function_call_output` items from the input array.
16
+
- GitHub fallback chain: API endpoint → HTML page → redirect URL parsing → HTML regex parsing.
17
+
5
18
## [4.0.0] - 2025-11-25
6
19
7
20
**Major release**: Complete prompt engineering overhaul matching official Codex CLI behavior, with full **GPT-5.1 Codex Max** support.
**Why pin versions?** OpenCode uses Bun's lockfile which pins resolved versions. If you use `"opencode-openai-codex-auth"` without a version, it resolves to "latest" once and **never updates** even when new versions are published.
@@ -74,7 +74,7 @@ Simply change the version in your config and restart OpenCode:
0 commit comments