fix(dashboard): harden scheduled task writes (#36)

This commit is contained in:
Eyejoker
2026-04-27 03:15:47 +09:00
committed by GitHub
parent 92e4e22e4d
commit 96845110ee
4 changed files with 160 additions and 19 deletions

View File

@@ -1756,7 +1756,7 @@ function App() {
async function handleTaskCreate(input: CreateScheduledTaskInput) {
setTaskActionKey('create');
try {
await createScheduledTask(input);
await createScheduledTask({ ...input, requestId: makeClientRequestId() });
await refresh(false);
} catch (err) {
setError(err instanceof Error ? err.message : String(err));

View File

@@ -111,6 +111,7 @@ export interface CreateScheduledTaskInput {
scheduleType: DashboardTaskScheduleType;
scheduleValue: string;
contextMode: DashboardTaskContextMode;
requestId?: string;
}
export interface UpdateScheduledTaskInput {