fix: propagate publish release flag through Go agent endpoints (#17347)

This commit is contained in:
euvre
2026-07-30 19:27:44 +08:00
committed by GitHub
parent d87d9a2881
commit 9519ad7e08
19 changed files with 340 additions and 47 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

View File

@@ -75,8 +75,8 @@ export function NextMessageInput({
null,
);
const [enableThinking, setEnableThinking] = useState(
() => storage.getThinkingLevel(),
const [enableThinking, setEnableThinking] = useState(() =>
storage.getThinkingLevel(),
);
const [enableInternet, setEnableInternet] = useState(false);

View File

@@ -1039,7 +1039,10 @@ export const useFetchKnowledgeList = (
};
},
getNextPageParam: (lastPage, allPages) => {
const loaded = allPages.reduce((total, page) => total + page.items.length, 0);
const loaded = allPages.reduce(
(total, page) => total + page.items.length,
0,
);
return loaded < lastPage.total ? allPages.length + 1 : undefined;
},
});

View File

@@ -24,9 +24,10 @@ export const useShowLog = (documents: IDocumentInfo[]) => {
const liveDoc = liveDocs?.[0];
const logInfo = useMemo(() => {
const source = liveDoc ?? documents.find(
(item: IDocumentInfo) => item.id === record?.id,
) ?? record;
const source =
liveDoc ??
documents.find((item: IDocumentInfo) => item.id === record?.id) ??
record;
let log: ILogInfo = {
taskId: source?.id,
fileName: source?.name || '-',
@@ -41,9 +42,7 @@ export const useShowLog = (documents: IDocumentInfo[]) => {
fileSize: formatBytes(source.size || 0),
processBeginAt: formatDate(source.process_begin_at),
chunkNumber: source.chunk_count,
duration: formatSecondsToHumanReadable(
source.process_duration || 0,
),
duration: formatSecondsToHumanReadable(source.process_duration || 0),
status: source.run as RunningStatus,
details: source.progress_msg,
};

View File

@@ -169,9 +169,7 @@ export function ModelsSection(props: ModelsSectionProps) {
});
// 6a. Model selection for batch verify.
const [selectedModels, setSelectedModels] = useState<Set<string>>(
new Set(),
);
const [selectedModels, setSelectedModels] = useState<Set<string>>(new Set());
const toggleModel = useCallback((name: string) => {
setSelectedModels((prev) => {

View File

@@ -125,7 +125,8 @@ request.interceptors.response.use(
}
}
const skipErrorNotification = (response.config as any)?.skipGlobalErrorNotification;
const skipErrorNotification = (response.config as any)
?.skipGlobalErrorNotification;
if (data?.code === 100 && !skipErrorNotification) {
message.error(data?.message);
} else if (data?.code === 401) {