User request
In the run events UI, LLM Call items often show "No new context for this call."
Problems reported:
- It should not be possible to have LLM calls without new context. Every LLM call contains new tool outputs and/or user messages.
- Even in case there is "No new context for this call.", we should display a button to load history as if there were new context items.
Current behavior (from code)
In packages/platform-ui/src/components/RunEventDetails.tsx, the LLM Call Context panel displays only context entries with __agynIsNew === true. When there are no __agynIsNew entries, it renders the empty-state text "No new context for this call.".
The only button currently available is "Load more", which is shown only when there are older (non-new) items present in event.data.context to reveal client-side. This does not cover cases where:
- the backend provides no context items, or
- newness tagging is missing/incorrect,
so the user cannot load history in those cases.
Specification / acceptance criteria
- For every
LLM Call event, the UI must provide an explicit action to load/view context history (label can be "Load history" or "Load context"). This action must be visible even when the UI would otherwise show an empty state.
- The empty state must not misleadingly claim there was "no new context" when the delta is unknown/omitted. We need an explicit status signal (e.g.
contextDelta.status in {available, empty, unavailable, redacted, first_call}) rather than inferring from context.length === 0 after filtering by __agynIsNew.
- When delta is truly empty, show copy like "No new context added for this call." but still allow loading history.
- Add/update UI tests so that in the "no new context" scenario, the load-history action is still present.
Notes
Relevant code/tests mentioning the string:
packages/platform-ui/src/components/RunEventDetails.tsx
packages/platform-ui/__tests__/components/RunEventDetails.context.test.tsx
packages/platform-ui/src/components/__tests__/RunEventDetails.llmOutputs.test.tsx
User request
In the run events UI,
LLM Callitems often show "No new context for this call."Problems reported:
Current behavior (from code)
In
packages/platform-ui/src/components/RunEventDetails.tsx, the LLM Call Context panel displays only context entries with__agynIsNew === true. When there are no__agynIsNewentries, it renders the empty-state text "No new context for this call.".The only button currently available is "Load more", which is shown only when there are older (non-new) items present in
event.data.contextto reveal client-side. This does not cover cases where:so the user cannot load history in those cases.
Specification / acceptance criteria
LLM Callevent, the UI must provide an explicit action to load/view context history (label can be "Load history" or "Load context"). This action must be visible even when the UI would otherwise show an empty state.contextDelta.status in {available, empty, unavailable, redacted, first_call}) rather than inferring fromcontext.length === 0after filtering by__agynIsNew.Notes
Relevant code/tests mentioning the string:
packages/platform-ui/src/components/RunEventDetails.tsxpackages/platform-ui/__tests__/components/RunEventDetails.context.test.tsxpackages/platform-ui/src/components/__tests__/RunEventDetails.llmOutputs.test.tsx