mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-21 16:41:56 +00:00
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:
committed by
Peter Steinberger
parent
0302cf89b0
commit
647d69881b
@@ -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;
|
||||
|
||||
@@ -720,7 +720,6 @@ function renderContextPanel(
|
||||
usage: UsageSessionEntry["usage"],
|
||||
expanded: boolean,
|
||||
onToggleExpanded: () => void,
|
||||
timeSeriesCursor?: number | null,
|
||||
) {
|
||||
if (!contextWeight) {
|
||||
return html`
|
||||
|
||||
Reference in New Issue
Block a user