mirror of
https://github.com/jwadow/kiro-gateway.git
synced 2026-04-25 01:15:57 +03:00
[GH-ISSUE #4] OpenCode Context Stats #4
Labels
No labels
bug
bug
enhancement
enhancement
fixed
fixed
invalid
needs-info
needs-testing
pull-request
question
upstream
wontfix
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/kiro-gateway-jwadow#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @g0dev on GitHub (Dec 16, 2025).
Original GitHub issue: https://github.com/jwadow/kiro-gateway/issues/4
Currently, the context stats on Opencode do not update at all, they always remain at 0.
@jwadow commented on GitHub (Dec 16, 2025):
Thanks for the report!
Fixed in v1.0.3 — now with accurate token counting using tiktoken.
To update:
.envfile will stay intact)pip install -r requirements.txtto install the newtiktokendependencyWhat's new:
prompt_tokens/completion_tokensseparation in API responsesHere's the correct values in
~/.config/opencode/config.json