-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: Dashboard child sessions inherit stale parent context token budget #97331
Copy link
Copy link
Closed
Closed
Copy link
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingclawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.maintainerMaintainer-authored PRMaintainer-authored PRmaturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingclawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.maintainerMaintainer-authored PRMaintainer-authored PRmaturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.
Type
Fields
Priority
None yet
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
A newly opened Control UI dashboard chat can inherit a stale cached
contextTokensvalue from its parent dashboard session, so it shows and uses a smaller context budget than the active model/config resolves.Steps to reproduce
modelProvider: "github-copilot",model: "claude-opus-4.8", and stale cachedcontextTokens: 128000.github-copilot/claude-opus-4.8withcontextTokens: 1000000/contextWindow: 1000000.Expected behavior
The new dashboard child session should inherit user-facing runtime selection such as provider/model/auth profile/settings, but it should not inherit cached runtime metadata like
contextTokens. The session row should derive the current context budget from the active model/config/catalog.Actual behavior
The new dashboard child session inherits the parent entry's cached
contextTokens: 128000, then the Control UI context notice can display values such as16k/128kor106.3k / 128kfor a model/config that currently resolves to a 1,000,000-token budget.OpenClaw version
Source checkout on
mainbefore730a24c199(36722014efreproduced the code path).Operating system
NOT_ENOUGH_INFO
Install method
Source checkout / local Control UI dashboard session.
Model
github-copilot/claude-opus-4.8Provider / routing chain
OpenClaw -> GitHub Copilot provider route
Additional provider/model setup details
The active config/model metadata resolved
github-copilot/claude-opus-4.8tocontextTokens: 1000000andcontextWindow: 1000000, while the stale dashboard parent chain contained cachedcontextTokens: 128000entries for the same provider/model.Logs, screenshots, and evidence
Impact and severity
Affected: Control UI dashboard users who create child sessions from a parent whose cached context metadata is stale after model/config/catalog changes.
Severity: High for affected sessions because context display and context-budget-derived decisions can be pinned to a smaller stale budget until metadata is cleared.
Frequency: Reproduced once directly in a fresh dashboard child session, with a stale dashboard parent chain containing five cached
contextTokens: 128000entries.Consequence: The user sees an incorrect smaller context budget for a model that should show roughly 1M context, and may get misleading compaction/status behavior.
Additional information
Duplicate search checked related Control UI context display issues #46517 and #47431; those covered lifetime-token display confusion, not child-session inheritance of stale cached context metadata.