fix(ui/usage): align client log limit with server cap (1000) and remove unused param

- Client requested 2000 logs but server caps at 1000
- Remove unused timeSeriesCursor param from renderContextPanel
This commit is contained in:
Jonathan Gelin
2026-02-16 13:17:09 +01:00
committed by Peter Steinberger
parent 0302cf89b0
commit 647d69881b
2 changed files with 1 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ export async function loadSessionLogs(state: UsageState, sessionKey: string) {
try {
const res = await state.client.request("sessions.usage.logs", {
key: sessionKey,
limit: 2000,
limit: 1000,
});
if (res && Array.isArray((res as { logs: SessionLogEntry[] }).logs)) {
state.usageSessionLogs = (res as { logs: SessionLogEntry[] }).logs;

View File

@@ -720,7 +720,6 @@ function renderContextPanel(
usage: UsageSessionEntry["usage"],
expanded: boolean,
onToggleExpanded: () => void,
timeSeriesCursor?: number | null,
) {
if (!contextWeight) {
return html`