Fix: Unable to navigate from the agent list page to the compilation editing page. (#17460)

This commit is contained in:
balibabu
2026-07-28 13:59:57 +08:00
committed by GitHub
parent 0fdefb284e
commit cc0fbd37ef
42 changed files with 200 additions and 195 deletions

View File

@@ -266,7 +266,7 @@ export const useSendMessageWithSse = () => {
.pipeThrough(new EventSourceParserStream())
.getReader();
// eslint-disable-next-line no-constant-condition
// oxlint-disable-next-line no-constant-condition
while (true) {
try {
const x = await reader?.read();

View File

@@ -4,6 +4,7 @@ import message from '@/components/ui/message';
import { AgentCategory, AgentGlobals } from '@/constants/agent';
import { useFetchTenantInfo } from '@/hooks/use-user-setting-request';
import {
AgentListItem,
IAgentLogResponse,
IAgentLogsRequest,
IAgentLogsResponse,
@@ -154,7 +155,7 @@ export const useFetchAgentListByPage = () => {
});
const { data, isFetching: loading } = useQuery<{
canvas: IFlow[];
canvas: AgentListItem[];
total: number;
}>({
queryKey: [
@@ -205,7 +206,7 @@ export const useFetchAgentListByPage = () => {
};
export function useFetchAllAgentList() {
const { data, isFetching: loading } = useQuery<IFlow[]>({
const { data, isFetching: loading } = useQuery<AgentListItem[]>({
queryKey: [AgentApiAction.FetchAllAgentList],
queryFn: async () => {
const { data } = await agentService.listAgents(
@@ -853,7 +854,7 @@ export const useFetchAgentList = ({
canvas_category,
}: IPipeLineListRequest) => {
const { data, isFetching: loading } = useQuery<{
canvas: IFlow[];
canvas: AgentListItem[];
total: number;
}>({
queryKey: [AgentApiAction.FetchAgentList],

View File

@@ -193,7 +193,7 @@ export const useSendMessageBySSE = (url: string) => {
let lastEventData: ResponseType | undefined;
try {
// eslint-disable-next-line no-constant-condition
// oxlint-disable-next-line no-constant-condition
while (true) {
const x = await reader?.read();
if (!x) {