Skip to content

[pull] main from gi-dellav:main#89

Merged
pull[bot] merged 4 commits into
lenylvt:mainfrom
gi-dellav:main
Jul 6, 2026
Merged

[pull] main from gi-dellav:main#89
pull[bot] merged 4 commits into
lenylvt:mainfrom
gi-dellav:main

Conversation

@pull

@pull pull Bot commented Jul 6, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

wowi42 and others added 4 commits July 6, 2026 14:05
Cost: the CompletionCall handler now accumulates total_input_tokens,
total_output_tokens, and total_cost for every intermediate LLM call
(one per tool-use round-trip). Previously only the final Done call was
costed, so any turn using tools undercounted cost — often severely,
since tool-result inputs are the most expensive calls.

Context window: fetch_openrouter_pricing now also returns context_length
from the OpenRouter /api/v1/models endpoint (new OpenRouterModelInfo
struct). At startup and on /model switch, models not in the static
catalog and not config-pinned (e.g. z-ai/glm-5.2) get their real context
window from OpenRouter instead of silently falling back to 128k. This
fixes the context meter percentage and ensures compaction triggers at
the right threshold.
agent-client-protocol-schema v1.1.0 moved all protocol types (SessionId,
InitializeRequest, PromptResponse, etc.) into a `v1` submodule, so the
previous `schema::*` glob import no longer brought them into scope,
causing 55 compile errors under --features acp / --all-features.
Switched to `schema::v1::*`.
fix(acp): import schema types from v1 submodule
fix: cost tracking for multi-turn tool calls + OpenRouter context window
@pull pull Bot locked and limited conversation to collaborators Jul 6, 2026
@pull pull Bot added the ⤵️ pull label Jul 6, 2026
@pull pull Bot merged commit 6472405 into lenylvt:main Jul 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants