Skip to content

v1.3.0 OpenAI Responses Compaction v2

Choose a tag to compare

@partment partment released this 13 Aug 15:22
· 47 commits to main since this release
620e39a

1.3.0 (2026-08-13)

Features

  • Replaces /responses/compact calls with streamed /responses requests that append a final compaction_trigger input item.
  • Builds compaction requests with tool_choice: "auto", store: false, stream: true, and encrypted reasoning content enabled.
  • Stores retained user messages followed by the encrypted compaction item returned through Responses SSE events.
  • Restores structured OpenCode history before compaction, preserving reasoning items, tool calls, attachments, provider metadata, and stable instructions.

Fixes

  • Rejects malformed, failed, incomplete, or ambiguous compaction streams instead of storing invalid checkpoints.
  • Refuses to send the OpenAI OAuth dummy API key when OAuth credentials are unavailable.
  • Reuses the authenticated OpenAI fetch wrapper when provider configuration is reapplied.
  • Shares refreshed OAuth credentials across concurrent OpenAI requests.
  • Keeps existing configuration files valid while deprecating responses.compactEndpointPath; compaction now uses responses.endpointPath.

Maintenance

  • Adds regression coverage for compaction v2 request construction, SSE validation, structured input restoration, OAuth routing, credential refresh, and unavailable credentials.
  • Updates pnpm to 11.21.0, @opencode-ai/plugin to 1.18.16, and @types/node to 26.2.0.
  • Updates CI and release Actions to Node.js 24-based versions.
  • Splits pnpm and Node.js setup in the release workflow and verifies GitHub OIDC availability before publishing.

Full Changelog: v1.2.1...v1.3.0