Skip to content

chore: release v0.118.0 - #928

Merged
stamp-build[bot] merged 1 commit into
mainfrom
agent/cindy/release-0.118.0
Nov 18, 2026
Merged

stamp-build[bot] merged 1 commit into
mainfrom
agent/cindy/release-0.118.0

Conversation

@stamp-build

@stamp-build stamp-build Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Cindy from open-agent-runtime opened this pull request through Stamp
View in Stamp →


Cursor and Qwen sessions now report how full the current context is, through usage.context and Session.contextUsage(), from each runtime's own count.

Cursor: current context from the last model call (#926), feature

Cursor SDK 1.4.1 reports each completed model call's full input count, cache included (model-call-completed.usage.inputTokens). OAR now projects that count into usage.context.tokens; each call replaces the previous reading rather than adding to it. The SDK reports no context window, so contextWindow and percent stay null. A completed native summary clears the reading until the next model call supplies one. Whole-turn spend is unchanged: in the retained native sample, the last call's input was 13,595 tokens while the turn spent 27,060.

Qwen: current context after each turn (#927), feature

After each non-aborted root turn, OAR asks Qwen for its own get_context_usage and records the last prompt's token count and the context window before turn_ended and before any queued input is sent. Counts Qwen marks as estimated stay unknown, including the zero it reports before the first prompt. OAR never derives occupancy from cumulative input. If the query fails, times out (1 second) or the runtime lacks it, the turn still ends normally and the last known reading stays, so the value can lag one turn. Native controls on Qwen 0.28.0 and the CI-pinned 0.27.4 measured 2 to 15 ms per query and no extra provider requests.

Qoder's context stays unknown until retained native usage frames show what it reports.

Also

🤖 Generated with Claude Code

stamp-build Bot added a commit that referenced this pull request Nov 18, 2026
<!-- stamp:review:v1 -->
<sup><img
src="https://cdn.slock.ai/avatars/6aabf32c-20bc-4cba-b55a-2aa72b60999b/8ba4452ceb890f1930886ef4286fdb99.webp"
width="16" height="16" align="absmiddle" alt=""> <b>Otter</b> from
open-agent-runtime opened this pull request through
Stamp</sup><br><sup><a
href="https://stamp.build/review?receipt=prc_37b44629b9791236b24801901c14dab8"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://stamp.build/assets/brand/stamp-glyph-dark.d907ffcadb44.svg"><img
src="https://stamp.build/assets/brand/stamp-glyph-light.58a2c10ed108.svg"
width="13" height="12" align="absmiddle" alt=""></picture> View in Stamp
→</a></sup>

---
<!-- /stamp:review:v1 -->

Qwen 0.27.4 schedules managed-memory extraction independently of
`get_context_usage`. A provider request can therefore arrive during the
readback window and fail the new zero-request assertion, as happened on
release PR #928. A fresh reproduction captured the overlapping memory
request; a native control with no context queries still made the same
three memory calls.

Disable native managed-memory extraction only in the isolated
context-cost fixture. Keep all fresh/resume context and ordering
assertions, require zero requests inside each query, and require exactly
three provider requests after both processes exit. Retain both sessions
and all provider bodies with query boundaries on failure. Product
session configuration is unchanged.

The report includes selected overlap evidence, a repeatable native
query/no-query/memory-disabled probe, and the current boundary:
background memory work can outlive native `result`. The original CI
artifact omitted provider bodies, so the report distinguishes its
observed counts from the separately captured reproduction.

Validation: focused native controls passed on 0.27.4 and 0.28.0; the
committed no-query and memory-disabled probe controls passed. The full
Qwen vendor file passed all 9 cases. Full local check passed 4,864 tests
and 19 mock cases.

Co-authored-by: Otter <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@stamp-build
stamp-build Bot force-pushed the agent/cindy/release-0.118.0 branch from 109d407 to 8f5bb36 Compare November 18, 2026 10:18
@stamp-build
stamp-build Bot merged commit a2fcd66 into main Nov 18, 2026
42 of 43 checks passed
@stamp-build
stamp-build Bot deleted the agent/cindy/release-0.118.0 branch November 18, 2026 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants