mirror of
https://github.com/esengine/DeepSeek-Reasonix.git
synced 2026-11-07 10:45:59 -10:00
fix(queue): label a background job's follow-on that needs a decision as background
This commit is contained in:
1 parent
a8fe2001c8
commit
de35fb7b0f
4 files changed
+12
-3
No files matched your search
@@ -662,6 +662,8 @@ export const EN: Record<string, string> = {
|
||||
"含图片,本轮结束后发送": "Has an image: sent when this turn ends",
|
||||
"插话排队": "Steer queued",
|
||||
"后台任务续接": "Background job follow-on",
|
||||
"后台 · 受阻": "Background · blocked",
|
||||
"后台 · 状态不明": "Background · uncertain",
|
||||
"插话已收": "Steer accepted",
|
||||
"下个工具边界送入": "goes in at the next tool boundary",
|
||||
"已送入": "delivered",
|
||||
|
||||
@@ -59,7 +59,9 @@ export const waiting = (queue: QueueSnapshot | null): QueueItem[] =>
|
||||
// these call sites, and a table of strings looked up later is invisible to it —
|
||||
// which is how a row would render Chinese inside an English window.
|
||||
function label(it: QueueItem): string {
|
||||
if (it.origin === "host" && it.state !== "blocked" && it.state !== "uncertain") {
|
||||
if (it.origin === "host") {
|
||||
if (it.state === "blocked") return t("后台 · 受阻");
|
||||
if (it.state === "uncertain") return t("后台 · 状态不明");
|
||||
return t("后台任务续接");
|
||||
}
|
||||
switch (it.state) {
|
||||
@@ -226,7 +228,7 @@ export function Queue({ queue, running, onRead, onEdit, onMove, onCancel, onSend
|
||||
{ordinary(it) ? (
|
||||
<span className="qdot" aria-hidden="true" />
|
||||
) : (
|
||||
<span className="pill" data-tone={tone(it.state)} title={it.state === "steer_accepted" ? t("下个工具边界送入") : undefined}>
|
||||
<span className="pill" data-tone={tone(it.state)} title={it.state === "steer_accepted" ? t("下个工具边界送入") : it.origin === "host" ? t("后台任务续接") : undefined}>
|
||||
{label(it)}
|
||||
</span>
|
||||
)}
|
||||
|
||||
@@ -141,7 +141,10 @@ describe("what the pending strip says back", () => {
|
||||
// to reach them here.
|
||||
it("shows a host continuation that needs a decision", () => {
|
||||
const html = draw(snapshot({ items: [item({ origin: "host", state: "blocked", intent: "followup" })] }));
|
||||
expect(html).toContain("受阻");
|
||||
expect(html).toContain("后台 · 受阻");
|
||||
expect(html).toContain('title="后台任务续接"');
|
||||
const uncertain = draw(snapshot({ items: [item({ origin: "host", state: "uncertain", intent: "followup" })] }));
|
||||
expect(uncertain).toContain("后台 · 状态不明");
|
||||
});
|
||||
|
||||
it("names an accepted steer as taken, not as waiting", () => {
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
- 修复:重启后出现在待发送区、需要你决定的后台任务完成通知,标签写明「后台 · 状态不明」或「后台 · 受阻」,不再和你自己发的消息混在一起。关联 #14885。
|
||||
- Fixed: a background job's follow-on that needs a decision in the pending panel is now labelled "Background · uncertain" or "Background · blocked", apart from your own lines. Refs #14885.
|
||||
Reference in new issue
Block a user