fix(web): agent log refetch and slider percentage rounding (#16344)

This commit is contained in:
chanx
2026-06-25 13:49:25 +08:00
committed by GitHub
parent 17b066e6ae
commit d44359826d
4 changed files with 26 additions and 11 deletions

View File

@@ -685,7 +685,11 @@ export const useFetchVersion = (
export const useFetchAgentLog = (searchParams: IAgentLogsRequest) => {
const { id } = useParams();
const { data, isFetching: loading } = useQuery<IAgentLogsResponse>({
const {
data,
isFetching: loading,
refetch,
} = useQuery<IAgentLogsResponse>({
queryKey: [AgentApiAction.FetchAgentLog, id, searchParams],
initialData: {} as IAgentLogsResponse,
gcTime: 0,
@@ -698,7 +702,7 @@ export const useFetchAgentLog = (searchParams: IAgentLogsRequest) => {
},
});
return { data, loading };
return { data, loading, refetch };
};
export const useFetchSessionsByCanvasId = () => {