Repository navigation
v0.3.3
Highlights
- A request over the context window now reaches auto-compaction. Zen refuses it with a generic
[invalid_request_error] invalid requestthat 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_tokenssent is below the one requested, the plugin appendsinput exceeds the context window of this modelto 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 checkpassed: type checking, all 235 offline tests, and packaging.- Live (anonymous, macOS): one oversized request (about 3.3M characters) to
space-bunny-freecame back 400 with the clamp bound (max_tokens101552 of 524288), and the error ended with the appended clause. Both pi-ai'sisContextOverflowand the host'sisContextWindowExceededErroraccept 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.3Replace web with your target profile. A tarball is also attached to this release.
See CHANGELOG.md for details.