Skip to content

Cherry-pick 6c9b49a10: fix stale contextTokens on model switch#1283

Merged
alexey-pelykh merged 1 commit intomainfrom
cherry-pick/6c9b49a10-contextTokens-stale
Mar 14, 2026
Merged

Cherry-pick 6c9b49a10: fix stale contextTokens on model switch#1283
alexey-pelykh merged 1 commit intomainfrom
cherry-pick/6c9b49a10-contextTokens-stale

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Cherry-pick from upstream

Upstream commit: 6c9b49a10
Author: yuweuii, jalehman
Tier: AUTO-PARTIAL
Issue: #903
Depends on: #1282

Changes

Adds test cleanup (restoreAllMocks, doUnmock) to git-commit.test.ts afterEach and adds test-parallel.mjs isolation entries.

Adaptation

  • Discarded gutted files: CHANGELOG.md, src/process/supervisor/adapters/child.test.ts (supervisor gutted), src/sessions/model-overrides.ts + test (model management gutted)
  • Conflict resolution: status.test.ts (kept fork's imports, discarded upstream test using gutted applyModelOverrideToSessionEntry), lifecycle.test.ts (kept ours — gutted mock declarations)

)

Cherry-picked from openclaw/openclaw@6c9b49a10.

Discarded gutted files: CHANGELOG.md, src/process/supervisor/adapters/child.test.ts,
src/sessions/model-overrides.ts, src/sessions/model-overrides.test.ts.

Co-authored-by: jalehman <[email protected]>
@alexey-pelykh alexey-pelykh merged commit 1b81456 into main Mar 14, 2026
7 checks passed
@alexey-pelykh alexey-pelykh deleted the cherry-pick/6c9b49a10-contextTokens-stale branch March 14, 2026 06:53
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.

2 participants