Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(queue): keep promoted inputs cancelable until delivery (#965)

wojiecihuo1ac502906f86
diff --git a/apps/desktop/src/features/chat/composer/ComposerStatus.tsx b/apps/desktop/src/features/chat/composer/ComposerStatus.tsx
index 46b915161..fc14d9aae 100644
--- a/apps/desktop/src/features/chat/composer/ComposerStatus.tsx
+++ b/apps/desktop/src/features/chat/composer/ComposerStatus.tsx
@@ -64,8 +64,8 @@ export function ComposerStatus({
const pending = isPendingQueuedPrompt(item);
const actionsLocked = promoted || pending;
const sendNowLocked = approvalPending || actionsLocked;
- // Pending rows have no actionable Host id; promoted rows already
- // belong to the next turn. Explain both locked states.
+ // Pending rows have no Host id. Promoted rows keep their order,
+ // but remain cancellable until the Host starts delivery.
const actionLabel = (action: string) =>
promoted
? `${action} · ${t("chat.sendNowPending")}`
@@ -134,10 +134,10 @@ export function ComposerStatus({
<TooltipButton
type="button"
className="composer-queued-prompt-action composer-queued-prompt-remove"
- tooltip={actionLabel(t("chat.removeQueuedPrompt"))}
- ariaLabel={actionLabel(t("chat.removeQueuedPrompt"))}
- disabled={actionsLocked}
- aria-disabled={actionsLocked}
+ tooltip={pending ? actionLabel(t("chat.removeQueuedPrompt")) : t("chat.removeQueuedPrompt")}
+ ariaLabel={pending ? actionLabel(t("chat.removeQueuedPrompt")) : t("chat.removeQueuedPrompt")}
+ disabled={pending}
+ aria-disabled={pending}
onClick={() => removeQueuedPrompt(item.id)}
>
<IconX size={13} aria-hidden />
diff --git a/apps/desktop/src/lib/queued-prompts.ts b/apps/desktop/src/lib/queued-prompts.ts
index 9279014f3..cb3157267 100644
--- a/apps/desktop/src/lib/queued-prompts.ts
+++ b/apps/desktop/src/lib/queued-prompts.ts
@@ -9,7 +9,7 @@ export type QueuedPrompt = {
/**
* Set once the row was promoted with Send now. Promoted rows form the head
* of the queue in ascending priority (click) order; they start next and stay
- * locked until the Host delivers them.
+ * ordered until the Host delivers or cancels them.
*/
priority?: number;
};
@@ -55,7 +55,7 @@ export function isPendingQueuedPrompt(item: QueuedPrompt): boolean {
return item.id.startsWith("pending:");
}
-/** A promoted row is queued to start next and can no longer be changed. */
+/** A promoted row keeps its delivery order, but may still be canceled. */
export function isPromotedQueuedPrompt(
item: QueuedPrompt,
): item is QueuedPrompt & { priority: number } {
diff --git a/apps/desktop/src/stores/slices/queue-slice.ts b/apps/desktop/src/stores/slices/queue-slice.ts
index be5990fba..a990c9e07 100644
--- a/apps/desktop/src/stores/slices/queue-slice.ts
+++ b/apps/desktop/src/stores/slices/queue-slice.ts
@@ -199,10 +199,26 @@ export function createQueueSlice({
});
},
- removeQueuedPrompt: (promptId) => {
+ removeQueuedPrompt: async (promptId) => {
const sessionId = get().activeSessionId;
if (!sessionId) return;
- detachQueuedPrompt(sessionId, promptId);
+ const item = queuedPromptForSession(get().queuedPrompts, sessionId, promptId);
+ if (!item || isPendingQueuedPrompt(item)) return;
+ try {
+ // The Host arbitrates cancellation against delivery. Keep the row
+ // visible until it confirms that this input will not be executed.
+ await api.removeQueuedPrompt(promptId);
+ set((state) => ({
+ queuedPrompts: removeQueuedPrompt(state.queuedPrompts, sessionId, promptId),
+ }));
+ queuedDrafts.delete(promptId);
+ } catch (error) {
+ const conflict = error instanceof Error && "code" in error && error.code === "CONFLICT";
+ get().showToast(conflict ? i18n.t("chat.queuedPromptAlreadyStarted") :
+ error instanceof Error ? error.message : String(error), { variant: "error" });
+ } finally {
+ await get().refreshQueuedPrompts(sessionId);
+ }
},
/** Return one waiting row to the composer as an editable draft. */
@@ -281,15 +297,28 @@ export function createQueueSlice({
promptId,
),
}));
+ let prioritized = false;
try {
await api.prioritizeQueuedPrompt(promptId);
+ prioritized = true;
// Send now keeps its graceful stop: the active turn reaches its
// boundary before the promoted row starts.
- if (get().runningSessions[sessionId]) await api.stop(sessionId);
+ if (get().runningSessions[sessionId] &&
+ queuedPromptForSession(get().queuedPrompts, sessionId, promptId)) {
+ const result = await api.stop(sessionId);
+ if (!result.requested) {
+ await get().refreshQueuedPrompts(sessionId);
+ if (queuedPromptForSession(get().queuedPrompts, sessionId, promptId)) {
+ get().showToast(i18n.t("chat.queuedPromptStopFailed"), { variant: "info" });
+ }
+ }
+ }
} catch (error) {
- void get().refreshQueuedPrompts(sessionId);
+ await get().refreshQueuedPrompts(sessionId);
+ const detail = error instanceof Error ? error.message : String(error);
+ const stillQueued = queuedPromptForSession(get().queuedPrompts, sessionId, promptId);
get().showToast(
- error instanceof Error ? error.message : String(error),
+ prioritized && stillQueued ? `${i18n.t("chat.queuedPromptStopFailed")} ${detail}` : detail,
{ variant: "error" },
);
}
diff --git a/apps/desktop/test/composer-send-state.test.mjs b/apps/desktop/test/composer-send-state.test.mjs
index f4100faba..013a39ef3 100644
--- a/apps/desktop/test/composer-send-state.test.mjs
+++ b/apps/desktop/test/composer-send-state.test.mjs
@@ -131,7 +131,7 @@ test("running prompts use a removable per-session queue with priority actions",
/\.\.\.promoted,\s*\n\s*\{ \.\.\.item, priority: highest \+ 1 \},\s*\n\s*\.\.\.waiting,/,
);
assert.match(queuedPromptsLib, /Math\.max\(max, candidate\.priority\)/);
- // A promoted row is the next turn: move up/down, edit, and remove all lock.
+ // Promotion fixes ordering and editing; removal remains available until delivery.
assert.match(composer, /data-priority=\{promoted \? "true" : "false"\}/);
assert.match(composer, /disabled=\{sendNowLocked\}/);
assert.match(
@@ -140,12 +140,12 @@ test("running prompts use a removable per-session queue with priority actions",
);
assert.equal(
(composer.match(/disabled=\{actionsLocked\}/g) ?? []).length,
- 8,
- "four pending or promoted row actions set disabled and aria-disabled on move up/down, edit, and remove",
+ 6,
+ "three pending or promoted row actions lock move up/down and edit",
);
assert.equal(
(composer.match(/aria-disabled=\{actionsLocked\}/g) ?? []).length,
- 4,
+ 3,
"each locked action carries its own aria-disabled state",
);
assert.doesNotMatch(composer, /sendNowRequested/);
diff --git a/docs/adr/0265-turn-queue-priority-block-and-row-actions.md b/docs/adr/0265-turn-queue-priority-block-and-row-actions.md
index bac7fee61..e68749ba9 100644
--- a/docs/adr/0265-turn-queue-priority-block-and-row-actions.md
+++ b/docs/adr/0265-turn-queue-priority-block-and-row-actions.md
@@ -30,12 +30,21 @@ queue at all even though the Host already orders it by a durable `position`.
already carries a `priority` fails with `CONFLICT`/`ALREADY_PRIORITIZED`
instead of silently moving it again. `session.queuePrioritize` keeps moving
optimistic mirror does the same.
-3. **A promoted row is locked.** Because the Host has already committed to
- starting it, its row disables move up, move down, edit, and remove, and its
- Send now button reads as decided (`chat.sendNowPending`). The disabled
- controls keep their tooltip and `aria-disabled` state so the lock is
- explained rather than silent. There is deliberately no un-promote path: a
- promotion cannot be half-applied.
+3. **Promotion fixes order, but does not prevent cancellation.** A promoted
+ row disables move up, move down, edit, and Send now. Its label explains that
+ it is waiting for the current task to finish. Remove remains available until
+ delivery, and the renderer waits for Host confirmation before removing it.
+ Cancellation, promotion, reordering, and delivery reservation share session
+ admission serialization. Runtime delivery runs outside that lock and reserves
+ only its own input. Once an input is reserved or accepted as steering input,
+ cancellation returns `CONFLICT`; consuming an input in another turn must
+ not be mistaken for an earlier successful cancellation. A refused or failed
+ graceful stop is reported without discarding the queued input. There is no
+ un-promote path. Acceptance is recorded before durable cleanup; failed cleanup
+ emits an error and remains retryable without re-execution in the live Host.
+ The queue retains its record when persistence fails. Acceptance is an in-memory
+ guard, not a durable receipt: restart after failed cleanup retains the existing
+ replay risk and does not provide exactly-once delivery.
4. **A reorder operation for the plain queue.** `session.queueReorder` swaps one
entry's `position` with its adjacent non-prioritized neighbour in the
requested direction, and reports `moved: false` for a missing entry, a
diff --git a/docs/spec/04-ux/08-component-spec.md b/docs/spec/04-ux/08-component-spec.md
index 47591babf..ce9e691b0 100644
--- a/docs/spec/04-ux/08-component-spec.md
+++ b/docs/spec/04-ux/08-component-spec.md
@@ -2807,9 +2807,12 @@ reasoning-level control.
up/down, Send now, edit, and remove are disabled. All five tooltips explain
that it is saving; Send now also displays the localized Saving label. Direct edit/remove actions leave the pending row and draft
unchanged; after admission, ordinary waiting-row actions become available.
-- A promoted row is locked: move up/down, edit, and remove are disabled with
+- A promoted row fixes order: move up/down and edit are disabled with
their tooltip and `aria-disabled` state intact, and the Send now button reads
- as already decided (`chat.sendNowPending`). The row carries a distinct
+ as waiting for the current task (`chat.sendNowPending`). Remove remains
+ available until delivery and waits for Host acknowledgement. If delivery
+ already started, show a conflict message directing the user to Stop.
+ The row carries a distinct
promoted surface so it is not mistaken for another waiting row.
- Stop: the single submit slot is shown only while a turn is running and the
draft is empty. It stops the running turn and cancels pending permission.
diff --git a/docs/spec/04-ux/09-interaction-patterns.md b/docs/spec/04-ux/09-interaction-patterns.md
index 51328ab41..82e58db35 100644
--- a/docs/spec/04-ux/09-interaction-patterns.md
+++ b/docs/spec/04-ux/09-interaction-patterns.md
@@ -743,7 +743,11 @@ may be retained while exactly one workspace supplies the visible shell context.
The current assistant response and completed tool batch finish normally;
after `agent_end` and durable turn finalization, the promoted row is
dispatched through the normal `agent/prompt` flow before the remaining rows.
- An idle Send now dispatches immediately.
+ An idle Send now dispatches immediately. While waiting, promoted rows retain
+ Remove and explain that the current task must finish. A refused or failed
+ graceful stop reports an error without losing the queued message. Removal
+ waits for Host acknowledgement; if delivery wins the race, report that the
+ message has already started and direct the user to Stop.
- Without Send now, the next FIFO row starts automatically after the active
turn completes, fails, or is aborted. A terminal event can arrive before
persistence releases the session; finalization must wake the queue again
diff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.md
index 627e382d5..b5624a6d1 100644
--- a/docs/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/spec/06-delivery/04-e2e-test-plan.md
@@ -1513,7 +1513,7 @@ identify the platform validation still needed.
promoted rows are delivered in the order they were promoted, before any
waiting row, without `AGENT_BUSY`: the first starts the turn and the rest join
it as adjacent user messages, so the model answers once for the whole block.
- remove, and its Send now button reads as already decided; promotion is
+ A promoted row locks move/edit and Send now, but permits removal; promotion is
one-way. Move up/down swaps only waiting rows, never crosses the promoted
block, and persists. Edit is refused with a visible message while the input
is non-empty, and otherwise removes the row and returns its text plus its
@@ -1546,14 +1546,21 @@ identify the platform validation still needed.
- **Preconditions**: Provider configured; session A is running a turn with at
least one completed tool batch; three prompts are queued behind it.
the first queued row. 3) Confirm the promoted block orders third → first, that
- both rows lock their move/edit/remove actions, and that the remaining row is
+ both rows lock their move/edit actions, and that the remaining row is
still editable. 4) Let the boundary pass and observe the transcript.
- **Expected**: The first click is delivered first and the second second — the
click order is the delivery order, not "last click wins" and not the original
queue order. Both rows appear as adjacent user messages in one turn and the
model answers once; the queue no longer lists either promoted row. Both
- promoted rows show as already decided and cannot be edited, removed, or
- reordered. The waiting row keeps its actions and is not delivered before
+ promoted rows show as waiting and cannot be edited or reordered. Removal
+ remains available until delivery. A refused or failed graceful stop reports
+ a message and leaves the row cancelable. If cancellation wins admission,
+ the input never executes; if delivery wins, cancellation reports that it
+ already started. The row disappears only after Host acknowledgement.
+ A stalled steering delivery does not block admission or cancellation of other
+ queued inputs. Failed durable removal after acceptance reports an error and
+ rejects cancellation; a subsequent drain retries cleanup without re-executing
+ the accepted input in the live Host. The waiting row keeps its actions and is not delivered before
either promoted row.
- **Specs linked**: `03-runtime/01-ipc-protocol.md` (§5.6),
`04-ux/08-component-spec.md` (§11), ADR 0265
diff --git a/packages/agent-host/src/agent-host.ts b/packages/agent-host/src/agent-host.ts
index babd591a8..8de447e95 100644
--- a/packages/agent-host/src/agent-host.ts
+++ b/packages/agent-host/src/agent-host.ts
@@ -119,6 +119,10 @@ export type AttachResult = {
};
type TurnRecord = RacpTurn & {
+ /** A queued input consumed by another turn cannot be canceled retroactively. */
+ deliveredIntoTurnId?: string;
+ /** Only this input is reserved while runtime delivery is in flight. */
+ deliveryPending?: boolean;
/** The runtime's own turn id when it differs from the RACP id (queued turns). */
runtimeTurnId?: string;
principalSubject?: string;
@@ -526,7 +530,7 @@ export class AgentHost {
this.requireRole(principal, "turn/stop");
const state = this.stateForTurn(turnId);
const turn = state.turns.get(turnId)!;
- if (turn.status === "queued") return this.cancelQueued(state, turn);
+ if (turn.status === "queued") return this.cancelTurn(principal, turnId);
if (isActive(turn.status)) await this.runtime.stop(state.id);
return this.toRacpTurn(state, turn);
}
@@ -535,7 +539,7 @@ export class AgentHost {
this.requireRole(principal, "turn/interrupt");
const state = this.stateForTurn(turnId);
const turn = state.turns.get(turnId)!;
- if (turn.status === "queued") return this.cancelQueued(state, turn);
+ if (turn.status === "queued") return this.cancelTurn(principal, turnId);
if (isActive(turn.status)) await this.runtime.abort(state.id, turn.runtimeTurnId ?? turn.id);
return this.toRacpTurn(state, turn);
}
@@ -543,12 +547,14 @@ export class AgentHost {
async cancelTurn(principal: Principal, turnId: string): Promise<RacpTurn> {
this.requireRole(principal, "turn/cancel");
const state = this.stateForTurn(turnId);
- const turn = state.turns.get(turnId)!;
- if (turn.status !== "queued") {
- if (turn.status === "canceled") return this.toRacpTurn(state, turn);
- throw racpError("CONFLICT", "only a queued turn can be canceled");
- }
- return this.cancelQueued(state, turn);
+ return this.withAdmission(state.id, async () => {
+ const turn = state.turns.get(turnId)!;
+ if (turn.deliveryPending || turn.deliveredIntoTurnId || turn.status !== "queued") {
+ if (turn.status === "canceled" && !turn.deliveryPending && !turn.deliveredIntoTurnId) return this.toRacpTurn(state, turn);
+ throw racpError("CONFLICT", "the queued message has already started; use Stop to stop the running turn");
+ }
+ return this.cancelQueued(state, turn);
+ });
}
/** Remove a collaboration delivery from both the live and durable queue. */
@@ -567,15 +573,17 @@ export class AgentHost {
async prioritizeTurn(principal: Principal, turnId: string): Promise<RacpTurn> {
this.requireRole(principal, "turn/prioritize");
const state = this.stateForTurn(turnId);
- const turn = state.turns.get(turnId)!;
- if (turn.status !== "queued") {
- throw racpError("CONFLICT", "only a queued turn can be prioritized");
- }
- if (!(await this.queue.promote(state.id, turn.id))) {
- throw racpError("CONFLICT", "the turn is already prioritized");
- }
- this.afterQueueMove(state, turn.id);
- return this.toRacpTurn(state, turn);
+ return this.withAdmission(state.id, async () => {
+ const turn = state.turns.get(turnId)!;
+ if (turn.deliveryPending || turn.deliveredIntoTurnId || turn.status !== "queued") {
+ throw racpError("CONFLICT", "only a queued turn can be prioritized");
+ }
+ if (!(await this.queue.promote(state.id, turn.id))) {
+ throw racpError("CONFLICT", "the turn is already prioritized");
+ }
+ this.afterQueueMove(state, turn.id);
+ return this.toRacpTurn(state, turn);
+ });
}
/**
@@ -591,13 +599,15 @@ export class AgentHost {
): Promise<{ moved: boolean }> {
this.requireRole(principal, "turn/prioritize");
const state = this.stateForTurn(turnId);
- const turn = state.turns.get(turnId)!;
- if (turn.status !== "queued") {
- throw racpError("CONFLICT", "only a queued turn can be reordered");
- }
- if (!(await this.queue.reorder(state.id, turn.id, direction))) return { moved: false };
- this.afterQueueMove(state, turn.id);
- return { moved: true };
+ return this.withAdmission(state.id, async () => {
+ const turn = state.turns.get(turnId)!;
+ if (turn.deliveryPending || turn.deliveredIntoTurnId || turn.status !== "queued") {
+ throw racpError("CONFLICT", "only a queued turn can be reordered");
+ }
+ if (!(await this.queue.reorder(state.id, turn.id, direction))) return { moved: false };
+ this.afterQueueMove(state, turn.id);
+ return { moved: true };
+ });
}
/** Publish one queue move and let an idle session drain the new head. */
@@ -805,6 +815,13 @@ export class AgentHost {
while (true) {
const state = this.state(sessionId);
if (this.queue.isHeld(sessionId) || this.isOccupied(state)) return;
+ const head = this.queue.peek(sessionId);
+ const headTurn = head ? this.ensureTurn(state, head.id) : undefined;
+ if (headTurn?.deliveryPending) return;
+ if (headTurn?.deliveredIntoTurnId) {
+ if (!(await this.removeDeliveredInput(state, headTurn.id))) return;
+ continue;
+ }
const record = await this.queue.shift(sessionId);
if (!record) return;
const turn = this.ensureTurn(state, record.id);
@@ -884,13 +901,17 @@ export class AgentHost {
const steer = this.runtime.steer?.bind(this.runtime);
if (!steer) return;
for (let attempt = 0; attempt < PROMOTED_DELIVERY_ATTEMPTS; attempt += 1) {
- const head = this.queue.peek(state.id);
- if (!head || head.priority === undefined) return;
- const active = state.activeTurnId ? state.turns.get(state.activeTurnId) : undefined;
- if (!active || active.runtimeTurnId !== runtimeTurnId) {
- // The turn ended (or moved on) while the block was being delivered.
- return;
- }
+ const head = await this.withAdmission(state.id, async () => {
+ const record = this.queue.peek(state.id);
+ if (!record || record.priority === undefined) return undefined;
+ const active = state.activeTurnId ? state.turns.get(state.activeTurnId) : undefined;
+ if (!active || active.runtimeTurnId !== runtimeTurnId) return undefined;
+ const turn = this.ensureTurn(state, record.id);
+ if (turn.deliveryPending || turn.deliveredIntoTurnId) return undefined;
+ turn.deliveryPending = true;
+ return record;
+ });
+ if (!head) return;
let accepted = false;
try {
({ accepted } = await steer({
@@ -902,16 +923,44 @@ export class AgentHost {
principal: { subject: head.principalSubject, roles: ["controller"] },
}));
} catch {
+ // The runtime adapter reports transport failures; leave refused input queued.
accepted = false;
}
- if (!accepted) {
- await delay(PROMOTED_DELIVERY_RETRY_MS);
- continue;
- }
- await this.queue.remove(state.id, head.id);
- this.markDeliveredIntoAnotherTurn(state, head.id);
+ const cleaned = await this.withAdmission(state.id, async () => {
+ const turn = this.ensureTurn(state, head.id);
+ turn.deliveryPending = false;
+ if (!accepted) return true;
+ // Record acceptance before persistence: failed cleanup is never cancellation.
+ this.markDeliveredIntoAnotherTurn(state, head.id, runtimeTurnId);
+ return this.removeDeliveredInput(state, head.id);
+ });
+ // Completion may have tried to drain while this input was reserved.
+ void this.drain(state.id);
+ if (!cleaned) return;
+ if (!accepted) await delay(PROMOTED_DELIVERY_RETRY_MS);
+ }
+ }
+
+ /** Keep accepted inputs out of execution even when durable cleanup fails. */
+ private async removeDeliveredInput(state: SessionState, turnId: string): Promise<boolean> {
+ try {
+ await this.queue.remove(state.id, turnId);
this.renumberQueue(state);
this.notifyQueue(state.id);
+ return true;
+ } catch {
+ this.emit(state, "turn.activity", {
+ event: {
+ type: "error",
+ error: {
+ code: "INTERNAL",
+ message: "Delivered input could not be removed from the durable queue",
+ retriable: true,
+ traceId: "",
+ },
+ },
+ }, { turnId });
+ return false;
}
}
@@ -921,11 +970,12 @@ export class AgentHost {
* steering messages. Its RACP turn is canceled so no client is left believing a
* queued turn is still waiting.
*/
- private markDeliveredIntoAnotherTurn(state: SessionState, turnId: string): void {
+ private markDeliveredIntoAnotherTurn(state: SessionState, turnId: string, runtimeTurnId: string): void {
const turn = state.turns.get(turnId);
// A delivered entry is queued, not active: it never occupied the session, so
// the check is "not already terminal" rather than `isActive`.
if (!turn || isTerminal(turn.status)) return;
+ turn.deliveredIntoTurnId = runtimeTurnId;
turn.status = "canceled";
turn.queuePosition = undefined;
turn.endedAt = new Date(this.clock.now()).toISOString();
@@ -946,6 +996,9 @@ export class AgentHost {
}
private async cancelQueued(state: SessionState, turn: TurnRecord): Promise<RacpTurn> {
+ if (turn.deliveryPending || turn.deliveredIntoTurnId) {
+ throw racpError("CONFLICT", "the queued message has already started; use Stop to stop the running turn");
+ }
const removed = await this.queue.remove(state.id, turn.id);
if (removed || turn.status === "queued") {
turn.status = "canceled";
diff --git a/packages/agent-host/src/turn-queue.ts b/packages/agent-host/src/turn-queue.ts
index 4837912c3..4e19b7eca 100644
--- a/packages/agent-host/src/turn-queue.ts
+++ b/packages/agent-host/src/turn-queue.ts
@@ -127,9 +127,9 @@ export class TurnQueue {
if (!queue) return undefined;
const index = queue.findIndex((record) => record.id === id);
if (index === -1) return undefined;
+ await this.store.remove(id);
const [record] = queue.splice(index, 1);
if (queue.length === 0) this.bySession.delete(sessionId);
- await this.store.remove(id);
return record;
}
diff --git a/packages/i18n/src/locales/de/index.ts b/packages/i18n/src/locales/de/index.ts
index 9aa50c52f..24b3ec406 100644
--- a/packages/i18n/src/locales/de/index.ts
+++ b/packages/i18n/src/locales/de/index.ts
@@ -257,7 +257,9 @@ export const de = {
"queuedPromptEmpty": "Nachricht in der Warteschlange",
"removeQueuedPrompt": "Nachricht in der Warteschlange entfernen",
"sendNow": "Jetzt senden",
- "sendNowPending": "Nächstes senden",
+ sendNowPending: "Warten auf das Ende der aktuellen Aufgabe",
+ queuedPromptStopFailed: "Die aktuelle Aufgabe konnte nicht gestoppt werden. Diese Nachricht wartet noch und kann abgebrochen werden.",
+ queuedPromptAlreadyStarted: "Diese Nachricht wird bereits ausgeführt. Verwenden Sie Stopp, um die laufende Aufgabe zu stoppen.",
"moveQueuedPromptUp": "Nach oben",
"moveQueuedPromptDown": "Nach unten",
"editQueuedPrompt": "Bearbeiten",
diff --git a/packages/i18n/src/locales/en/index.ts b/packages/i18n/src/locales/en/index.ts
index 0b741126e..9ae9e0086 100644
--- a/packages/i18n/src/locales/en/index.ts
+++ b/packages/i18n/src/locales/en/index.ts
@@ -264,7 +264,9 @@ export const en = {
queuedPromptEmpty: "Queued message",
removeQueuedPrompt: "Remove queued message",
sendNow: "Send now",
- sendNowPending: "Sending next",
+ sendNowPending: "Waiting for the current task to finish",
+ queuedPromptStopFailed: "Could not stop the current task. This message is still queued and can be canceled.",
+ queuedPromptAlreadyStarted: "This message has already started. Use Stop to stop the running task.",
moveQueuedPromptUp: "Move up",
moveQueuedPromptDown: "Move down",
editQueuedPrompt: "Edit",
diff --git a/packages/i18n/src/locales/es/index.ts b/packages/i18n/src/locales/es/index.ts
index 62befdb84..3cdaa36e2 100644
--- a/packages/i18n/src/locales/es/index.ts
+++ b/packages/i18n/src/locales/es/index.ts
@@ -257,7 +257,9 @@ export const es = {
"queuedPromptEmpty": "Mensaje en cola",
"removeQueuedPrompt": "Eliminar mensaje en cola",
"sendNow": "Enviar ahora",
- "sendNowPending": "Enviar el siguiente",
+ sendNowPending: "Esperando a que termine la tarea actual",
+ queuedPromptStopFailed: "No se pudo detener la tarea actual. Este mensaje sigue en cola y se puede cancelar.",
+ queuedPromptAlreadyStarted: "Este mensaje ya se está ejecutando. Usa Detener para detener la tarea actual.",
"moveQueuedPromptUp": "Subir",
"moveQueuedPromptDown": "Bajar",
"editQueuedPrompt": "Editar",
diff --git a/packages/i18n/src/locales/fr/index.ts b/packages/i18n/src/locales/fr/index.ts
index 9a34e4116..f88903962 100644
--- a/packages/i18n/src/locales/fr/index.ts
+++ b/packages/i18n/src/locales/fr/index.ts
@@ -257,7 +257,9 @@ export const fr = {
"queuedPromptEmpty": "Message en file d'attente",
"removeQueuedPrompt": "Supprimer le message en file d'attente",
"sendNow": "Envoyer maintenant",
- "sendNowPending": "Envoi suivant",
+ sendNowPending: "En attente de la fin de la tâche en cours",
+ queuedPromptStopFailed: "Impossible d’arrêter la tâche en cours. Ce message reste en attente et peut être annulé.",
+ queuedPromptAlreadyStarted: "Ce message est déjà en cours d’exécution. Utilisez Arrêter pour arrêter la tâche.",
"moveQueuedPromptUp": "Monter",
"moveQueuedPromptDown": "Descendre",
"editQueuedPrompt": "Modifier",
diff --git a/packages/i18n/src/locales/ko/index.ts b/packages/i18n/src/locales/ko/index.ts
index e98bec760..aff4d83c1 100644
--- a/packages/i18n/src/locales/ko/index.ts
+++ b/packages/i18n/src/locales/ko/index.ts
@@ -266,7 +266,9 @@ export const ko = {
queuedPromptEmpty: "대기 중인 메시지",
removeQueuedPrompt: "대기 중인 메시지 제거",
sendNow: "지금 보내기",
- sendNowPending: "다음 메시지 보내는 중",
+ sendNowPending: "현재 작업이 끝나기를 기다리는 중",
+ queuedPromptStopFailed: "현재 작업을 중지하지 못했습니다. 이 메시지는 아직 대기 중이며 취소할 수 있습니다.",
+ queuedPromptAlreadyStarted: "이 메시지는 이미 실행 중입니다. 중지 버튼을 사용하세요.",
moveQueuedPromptUp: "위로",
moveQueuedPromptDown: "아래로",
editQueuedPrompt: "편집",
diff --git a/packages/i18n/src/locales/tr/index.ts b/packages/i18n/src/locales/tr/index.ts
index efe71b931..9f0aba335 100644
--- a/packages/i18n/src/locales/tr/index.ts
+++ b/packages/i18n/src/locales/tr/index.ts
@@ -266,7 +266,9 @@ export const tr = {
queuedPromptEmpty: "Kuyruktaki ileti",
removeQueuedPrompt: "Kuyruktaki iletiyi kaldır",
sendNow: "Şimdi gönder",
- sendNowPending: "Sıradaki gönderiliyor",
+ sendNowPending: "Geçerli görevin bitmesi bekleniyor",
+ queuedPromptStopFailed: "Geçerli görev durdurulamadı. Bu mesaj hâlâ kuyrukta ve iptal edilebilir.",
+ queuedPromptAlreadyStarted: "Bu mesaj zaten çalıştırılıyor. Çalışan görevi durdurmak için Durdur düğmesini kullanın.",
moveQueuedPromptUp: "Yukarı taşı",
moveQueuedPromptDown: "Aşağı taşı",
editQueuedPrompt: "Düzenle",
diff --git a/packages/i18n/src/locales/zh-CN/index.ts b/packages/i18n/src/locales/zh-CN/index.ts
index 07e888332..1b492dfa3 100644
--- a/packages/i18n/src/locales/zh-CN/index.ts
+++ b/packages/i18n/src/locales/zh-CN/index.ts
@@ -259,7 +259,9 @@ export const zhCN = {
queuedPromptEmpty: "待发送消息",
removeQueuedPrompt: "移除待发送消息",
sendNow: "立即发送",
- sendNowPending: "即将发送",
+ sendNowPending: "等待当前任务结束",
+ queuedPromptStopFailed: "未能停止当前任务。这条消息仍在排队,可以取消。",
+ queuedPromptAlreadyStarted: "这条消息已经开始执行,请使用停止按钮。",
moveQueuedPromptUp: "上移",
moveQueuedPromptDown: "下移",
editQueuedPrompt: "编辑",
diff --git a/packages/i18n/src/locales/zh-TW/index.ts b/packages/i18n/src/locales/zh-TW/index.ts
index d1fe4b3a6..08f4e64ef 100644
--- a/packages/i18n/src/locales/zh-TW/index.ts
+++ b/packages/i18n/src/locales/zh-TW/index.ts
@@ -259,7 +259,9 @@ export const zhTW = {
queuedPromptEmpty: "待發送訊息",
removeQueuedPrompt: "移除待發送訊息",
sendNow: "立即傳送",
- sendNowPending: "即將傳送",
+ sendNowPending: "等待目前任務結束",
+ queuedPromptStopFailed: "無法停止目前任務。這則訊息仍在排隊,可以取消。",
+ queuedPromptAlreadyStarted: "這則訊息已經開始執行,請使用停止按鈕。",
moveQueuedPromptUp: "上移",
moveQueuedPromptDown: "下移",
editQueuedPrompt: "編輯",