Commit Graph
2 Commits
Author SHA1 Message Date
yetone 38ef050204 commandcode 0.1.22: Beam is sent each earlier reply's reasoning back (EDwinpzy)
Reflection's Beam (reflection/beam:free) answered a fresh one-turn chat
and turned the second turn away with 400 "Missing required parameter:
'messages[N].reasoning_content'", a reply another model made included;
it took the request once each earlier assistant message had something
there (EDwinpzy on magpie's Discord, magpie 0.1.2717, through
/v1/chat/completions and /v1/responses alike).

The Provider API's list says nothing of it (Beam's entry is id, name,
context_length and supported_endpoints, read 2026-11-03), so:
- a model matching reflection/beam has reasoning_content on every
  assistant message: its own when it has some, the thinking sent back as
  reasoning (moved, not duplicated), else "." (a blank one, which magpie
  sends tool turns with, is replaced too: whitespace may read as missing);
- any other model the Provider API refuses with a 400 asking for
  reasoning_content is asked once more with it filled, and is filled from
  then on (in-process).
Other models' requests go as they came.

Run at this head (mote, bun 1.4.2): bun test in packages/commandcode,
HOME=$(mktemp -d) as pr.yml does: 101 pass, 0 fail. bun scripts/check.mjs
commandcode: ok.
Broken by hand: reasoning-back.test.mjs against the old index.mjs: 4 of
7 fail (both of the reporter's two-turn shapes, the reasoning/blank case
and the learned model get 400); the three "goes as it came" pass.
Not tried: a real Beam request. The one Command Code key on this machine
answers 401, so the placeholder "." and the refusal's JSON around the
reporter's words are not checked against Beam itself. Go's /alpha/generate
path is unchanged and not tried with Beam.
2026-11-03 02:15:45 +08:00
yetone 622f950392 commandcode 0.1.20: Go, GOAT and Pro's month is said in credits; Provider has no month (#556)
NeuroPaw (#556): PLAN_NAMES sizes GOAT's month at 70 and Pro's at 80,
while Command Code's pricing now says GOAT "up to $100" and Pro "up to
$110", per model.

Checked against Command Code's live pages (2026-10-31). The usage limits
page says "on Go, GOAT and Pro, credits are usage-value units -
full-allowance models like GLM-5.2 get $1 of usage per credit", and that
GOAT's 14 credits in 5 hours and 35 in 7 days are "worth up to $20 / $50
of usage on a $100 model like Ling 3.1 Flash, or $14 / $35 on a $70 model
like GLM-5.2" (Pro: 16 / 40, up to $22 / $55 on a $110 model, $16 / $40
on an $80 one). billing/credits' windowLimits caps are those credits (the
recorded GOAT reply has caps 14 and 35, monthlyCredits 69.80). So the
month is 70 credits on GOAT and 80 on Pro, in the units monthlyCredits
counts in: the CLI's 70 and 80 still match, and raising them to 100 and
110 would mix dollars into a credit count. What was wrong is the card
calling those credits dollars ("$0.20 / $70.00"). The pricing page lists
Provider as "$15 /month ... Pay as you go" with no credits, and the
table's 15 made a "$x / $15.00" month for it.

- Go, GOAT and Pro (both Pro ids): the Credits window is the month's
  credits, said as credits ("0.20 / 70.00 credits"); bought and free
  credits, dollars at model cost, are said beside it ("+ $5.00 extra")
  and no longer added to the pool.
- Max, Ultra, Teams Pro (1 credit = $1): the CLI's pool, in dollars,
  unchanged.
- Provider: no month of credits, so its card is the balance.
- The 5-hour and weekly windows are unchanged.

The response has no field with the plan's total, so the month's size
still comes from the table; /alpha/usage/summary was not read (see Not
tried).

Run (mote, Bun 1.4.2, HOME=$(mktemp -d), at this tree on b70725c):
- bun test (whole repo): 4201 pass, 0 fail, 4210 tests across 329 files.
- bun scripts/check.mjs commandcode: ok.

Broken by hand:
- plan-credits.test.mjs against origin/main's index.mjs: 4 of 5 red
  (GOAT real reply, credits labels, GOAT extras, Provider balance); the
  Max parity test stays green, as it should.
- GOAT set to 100 (the issue's option 2) in the new index.mjs: 3 of 5
  red.

Not tried: a live Command Code account. Both keys here (~/.commandcode
and magpie's plugin account) are answered 401 by billing/credits,
billing/subscriptions and usage/summary today, so the GOAT reply is the
one recorded in testdata (2026-09/10). Which planId today's $20 Pro has
(individual-pro, 30 in the CLI, or individual-pro-v1, 80) is not
confirmed; both are left as the CLI has them.
2026-10-31 17:19:44 +08:00