agents icon indicating copy to clipboard operation
agents copied to clipboard

Remove `AgentSession._chat_ctx` for simplicity

Open wdhwg001 opened this issue 2 weeks ago • 1 comments

Feature Type

Would make my life easier

Feature Description

It's currently exposed as AgentSession.history, but it's nothing but just a backlog, and the actual chat_ctx is the one in Agent.

Having two chat_ctx is kinda confusing, and there's no way to do update_chat_ctx to that either, so if we do advanced context engineering, AgentSession._chat_ctx will lose sync - despite it's already loosely synced with the Agent._chat_ctx.

It'd be really nice that we remove it completely to keep our life easier.

Thanks!

Workarounds / Alternatives

none - just don't use AgentSession.history.

Additional Context

No response

wdhwg001 avatar Nov 24 '25 03:11 wdhwg001