Skip to content

v0.3.3

Choose a tag to compare

@x5427876 x5427876 released this 12 Oct 11:10
· 20 commits to main since this release

Highlights

  • A request over the context window now reaches auto-compaction. Zen refuses it with a generic [invalid_request_error] invalid request that neither pi-ai's overflow patterns nor the host's detector recognised, so compaction never ran and every later message failed the same way (#7, fixed in #8).
  • When the refusal is that bare message and the max_tokens sent is below the one requested, the plugin appends input exceeds the context window of this model to the upstream wording. Any other refusal keeps the upstream message.
  • Thanks to @tkhs101 for the diagnosis and the fix design in #7.

Compatibility and limitations

Requires DeepSeek Harness 0.2.1-alpha.2 and pi-ai ^1.0.2. No peer change from 0.3.2.

The translation only fires when pi-ai's clamp lowers max_tokens. When the clamp does not bind, the old behaviour remains. Anonymous access remains subject to upstream admission and quota limits.

Validation

  • pnpm run check passed: type checking, all 235 offline tests, and packaging.
  • Live (anonymous, macOS): one oversized request (about 3.3M characters) to space-bunny-free came back 400 with the clamp bound (max_tokens 101552 of 524288), and the error ended with the appended clause. Both pi-ai's isContextOverflow and the host's isContextWindowExceededError accept that message (checked offline).
  • Not verified: a full compaction-and-retry inside a running DSH session. The compat run was not repeated for this release.

Install

dsh plugin --profile web add dsh-opencode-free@0.3.3

Replace web with your target profile. A tarball is also attached to this release.

See CHANGELOG.md for details.