Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/webapp/app/components/runs/v3/AIFilterInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function AIFilterInput() {
const fetcher = useFetcher<AIFilterResult>();

useEffect(() => {
if (fetcher.data?.success && fetcher.state === "loading") {
if (fetcher.data?.success && fetcher.state === "idle") {
setText("");
setIsFocused(false);

Expand Down
2 changes: 1 addition & 1 deletion apps/webapp/app/components/runs/v3/ReplayRunDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function ReplayContent({ runFriendlyId, failedRedirect }: ReplayRunDialogProps)
}/env/${envSlug}/queues?${searchParams.toString()}`
);
}
}, [params.organizationSlug, params.projectParam, params.envParam, environmentIdOverride]);
}, [params.organizationSlug, params.projectParam, params.envParam, environmentIdOverride, replayDataFetcher.data]);

const customQueues = useMemo(() => {
return queueFetcher.data?.queues ?? [];
Expand Down
9 changes: 9 additions & 0 deletions apps/webapp/app/components/runs/v3/agent/AgentView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,15 @@ function useAgentSessionMessages({
};
}, [sessionId, apiOrigin, orgSlug, projectSlug, envSlug, snapshotPresignedUrl]);

// Reset refs when session changes to prevent stale data from bleeding
// across sessions (e.g. navigating between runs with different agent sessions)
useEffect(() => {
pendingRef.current = new Map(seedMessages.map((m) => [m.id, m]));
timestampsRef.current = new Map(seedMessages.map((m) => [m.id, INITIAL_PAYLOAD_TIMESTAMP]));
orchestrationRef.current = new Map();
setMessagesById(new Map(pendingRef.current));
}, [sessionId, seedMessages]);

return useMemo(() => {
const timestamps = timestampsRef.current;
const arr = Array.from(messagesById.values());
Expand Down
6 changes: 0 additions & 6 deletions apps/webapp/app/presenters/v3/LogsListPresenter.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,6 @@ export class LogsListPresenter extends BasePresenter {
);
}

if (store === EVENT_STORE_TYPES.CLICKHOUSE) {
throw new ServiceValidationError(
"Logs are not available for ClickHouse event store. Please contact support."
);
}

const queryBuilder = this.clickhouse.taskEventsSearch.logsListQueryBuilder();

// This should be removed once we clear the old inserts, 30 DAYS, the materialized view excludes events without trace_id)
Expand Down
Loading