Skip to content

v0.4.9 - Reasoning stays in the thinking channel

Choose a tag to compare

@thebtf thebtf released this 16 Nov 23:43
· 37 commits to main since this release
52b984b

Reasoning stays in the reasoning channel

CLIProxyAPI returns thinking blocks with an empty signature. pi-ai's default
(allowEmptySignature: false) converts such a block into plain assistant text
when the history is replayed, so the model reads its own plan in the text
channel and keeps writing plans as ordinary messages instead of reasoning. The
gateway profile now sets allowEmptySignature: true, so reasoning is replayed
as thinking and the plan no longer lands in the transcript.
policy.compat and the per-model compat still win, so the old behaviour
stays available.

Verified on a real harness against a fixture that answers with an unsigned
thinking block: the replayed history carried thinking (38 characters) where
0.4.8 carried a text block.

A busy content-compression window no longer fails the turn

A content-compressing middleware in front of the gateway admits only a couple of
large decoded request bodies at a time and answers 503 request_body_busy until
one finishes. The core's default retry policy makes five attempts capped at ten
seconds (500, 1000, 2000, 4000, 8000 ms), which a busy window can outlast, and
the turn ends with SERVER — the "continue -" prompt after every failure.

The gateway path now retries eight times with a backoff that reaches 20 s, so a
busy window resolves inside one turn. policy.retryPolicy still replaces the
whole policy when you want your own numbers.

Verified live: a fixture that answers 503 six times in a row and then succeeds
finished the turn in 50 s with 0.4.9, while the same install with the old
default failed at attempt 5 of 5 with This turn failed / SERVER.

The request log moved below the settings form

The diagnostics disclosure used to sit above the connection fields, so the
request log had to be scrolled past before the settings appeared. It now sits at
the very bottom of the page, after Actions, in a panel capped at 180 px with its
own scrollbar. The summary still shows the entry count.

Verification

  • 96 tests pass (node --test), including two new adapter tests for the replay
    compat flag and the default retry policy, and a client test that asserts the
    diagnostics disclosure comes after the form.
  • Live run on DSH 0.2.2-rc.3 in an isolated profile: three turns, an unsigned
    thinking replay, and a six-request 503 window survived in one turn.
  • Light and dark static previews of the settings page.

Update

npx @deepseek-ai/dsh plugin --profile web add '@thebtf/dsh-cliproxyapi-provider@0.4.9'