You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(resume,status): show prior transcript on resume + honest baseline on context bar
Two related defects in how a session reloads.
Resume only seeded pi-agent-core's internal message list (so the model
had context) but never re-populated the UI reducer's state.messages.
The user dropped back into what looked like an empty chat — only the
"↻ Resumed from 3h ago" badge hinted that anything had been loaded.
Expose the resumed transcript through the agent bundle and seed the
reducer with it so the screen matches the model's actual context.
The context-fill bar showed 0% on a fresh session because we only
counted in-transcript message chars, ignoring the system prompt and
tool schemas — ~3k tokens of static context every turn carries. Add
that as a baseline in the fallback estimator so the bar starts at a
small honest non-zero and grows visibly with each turn. The accurate
turnUsage path is unchanged when the provider does report usage.
0 commit comments