Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Workflow/background agent tokens inflate main agent Context Window clock (parent should only show own context) #5942

Closedfuggysense(GitHub profile, opens in a new tab) opened this issue 3 comments

Summary

When a workflow spins up background agents, the main (orchestrator) chat’s Context Window meter attributes child/workflow usage to the parent. The clock becomes an unreliable signal for how full the parent’s real context is.

This report is display / token accounting only — I am not seeing child tool/stream spam injected into the parent transcript. Just the numbers on the parent Context Window widget.

Expected

  • Parent Context Window (% + used/limit, e.g. x / 1m) reflects only the main agent’s actual session context.
  • Background / workflow agents have their own usage, or at least must not accumulate into the parent’s context meter.
  • Total processed may be project- or thread-wide if that’s intentional — but if so, it should be labeled separately from “Context Window” so it isn’t read as parent fill.

Actual

With background agents running under a workflow, the parent composer shows something like:

  • Context Window: 100% · 1m/1m (full bar)
  • Total processed: 1.6m
  • UI: “3 agents working in the background”
  • Model: Claude Opus 5

The parent feels nowhere near a full 1M context of its own messages; the meter climbs as workflow agents work, which makes the clock useless for deciding whether the orchestrator needs compaction / a fresh thread.

Steps to reproduce

  1. Open a project thread in T3 Code (desktop Alpha).
  2. Use Claude (Opus 5) as the main agent.
  3. Start a workflow that spawns multiple background agents (e.g. 3 agents working in the background).
  4. Watch the Context Window chip on the main composer while those agents run.
  5. Observe parent context % / used tokens rise toward the limit even though only the children are doing the heavy work.

Environment

AppT3 Code (Alpha) desktop
Version0.0.32 (com.t3tools.t3code)
OSmacOS
ProviderClaude (Claude Opus 5)
SurfaceMain thread composer → Context Window + Total processed

What this is / isn’t

IsParent context meter / clock mis-attributing workflow or background-agent tokens
Is notParent transcript polluted with child tool calls / stream spam (not observed)
Is notAsking for a new product feature — this is incorrect accounting for the existing Context Window UI

Why it matters

The Context Window clock is the only quick signal for “is the orchestrator about to blow context?” If workflow fan-out fills that bar, users:

  • Mis-compact or restart the main agent too early
  • Misread how much headroom the orchestrator still has
  • Lose trust in the meter for multi-agent runs (exactly when you need it most)

Suggested fix direction (non-prescriptive)

Attribute context-fill (used / limit and the %) per agent session. Workflow children should update their meters (or a separate “workflow usage” total), not the parent’s context fill. Keep parent Context Window = parent session only.

Possibly adjacent to subagent/parent accounting issues (e.g. Claude sidechain/parent thread bugs), but this report is specifically about token numbers on the parent Context Window widget, not stream leakage.

Attachments

Screenshot of main composer during workflow: 3 agents working in the background, Context Window 100% · 1m/1m, Total processed 1.6m, model Claude Opus 5.

  1. I came here to report this very issue.

  2. Came across this as-well. Caused me to unnecessarily compact my session because I wasn't paying attention to how the parent context got so full.

  3. Thanks for the detailed report. This looks like the same issue tracked in issue #4650.

    The canonical report contains captured events showing background-task cumulative tokens replacing the parent's active context count. This is the same workflow-agent inflation reported here, not a guess based on a similar meter symptom. The canonical also retains the separate compact-boundary fallback concern.

    I'm closing this as a duplicate as part of an automated pass on all open issues. I linked this report from issue #4650 so its extra details remain available. This does not mean the underlying bug is fixed.

Sign in to join this conversation.