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
{{ message }}
Repository navigation
Context.last_turn doesn't correctly grab the response #1002
area/contextChatContext, message history, context windowing, serializationbugSomething isn't workingp1High: important bugs (workaround exists) or high-value core features. Do soon, not on fire.
Context.last_turn() only grabs the last response if it's a ModelOutputThunk. It should also explicitly look for Message types with a role field. Eventually, it should support all components that specify a role: #377.
Another side-effect of the current implementation: if the last addition to the context is a Message(role="assistant"), it will actually pick that up as the start of the context turn. Any fix should also search out code that is manually doing this manipulation / fix, ie mellea/stdlib/components/intrinsic/_util.py_resolve_response function.
area/contextChatContext, message history, context windowing, serializationbugSomething isn't workingp1High: important bugs (workaround exists) or high-value core features. Do soon, not on fire.
Activity
jakelorocco commentedon May 11, 2026
Another side-effect of the current implementation: if the last addition to the context is a Message(role="assistant"), it will actually pick that up as the start of the context turn. Any fix should also search out code that is manually doing this manipulation / fix, ie
mellea/stdlib/components/intrinsic/_util.py_resolve_responsefunction.