Skip to content

Commit 992bb0d

Browse files
committed
docs: TODO for zen balance display pending upstream API
OpenCode Zen has no balance endpoint yet (anomalyco/opencode#10448), so remaining credits cannot be shown. Note the probes and the ready-made landing spot: the agents-panel record's balance object already renders natively.
1 parent c9f6a09 commit 992bb0d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎scripts/update-opencode-go‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,14 @@ merge_fields() {
270270
jq -s '.[0] * .[1]' - "$1"
271271
}
272272

273+
# TODO(balance): OpenCode Zen exposes no balance endpoint yet, so remaining
274+
# credits cannot be shown — tracked upstream in anomalyco/opencode#10448.
275+
# When it ships, fetch it here and populate the agents-panel `balance`
276+
# object (remaining/funded/spent/currency): the panel already renders that
277+
# natively as a BALANCE section. Endpoints probed 2026-08-23:
278+
# api.opencode.ai/v1/credits -> HTTP 200 "Not Found" body (bogus success)
279+
# opencode.ai/zen/v1/balance -> 404
280+
# opencode.ai/zen/go/v1/credits -> 404
273281
update_opencode_go() {
274282
local key payload record
275283
key=$(resolve_key "$PROVIDER") || return 0

0 commit comments

Comments
 (0)