fix pipeline stop, jobs link navigation, and seed quote stripping
- Fix stop: abort poll now rejects the promise after killing the agent process - Fix jobs link: close modal before navigating, use react-router navigate - Fix seed parser: strip quotes from step input values (delete_source: "true") Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -124,9 +124,10 @@ async function runAgenticStep({ userId, email, username, role, taskDirName, prom
|
||||
|
||||
// Poll for abort signal to kill the running agent
|
||||
const abortPoll = setInterval(() => {
|
||||
if (abortSignal.aborted && cleanup) {
|
||||
if (abortSignal.aborted) {
|
||||
clearInterval(abortPoll);
|
||||
cleanup();
|
||||
cleanup?.();
|
||||
reject(new Error('Pipeline was stopped'));
|
||||
}
|
||||
}, 500);
|
||||
|
||||
@@ -157,11 +158,6 @@ async function runAgenticStep({ userId, email, username, role, taskDirName, prom
|
||||
sidecar.sendPiPrompt(sessionId, prompt, randomUUID());
|
||||
}
|
||||
|
||||
// If already aborted while setting up, kill immediately
|
||||
if (abortSignal.aborted) {
|
||||
clearInterval(abortPoll);
|
||||
cleanup?.();
|
||||
}
|
||||
} catch (err) {
|
||||
clearInterval(abortPoll);
|
||||
cleanup?.();
|
||||
|
||||
Reference in New Issue
Block a user