Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

Drop the queued follow-up surface while a turn is working.

justrache5348ca8e628
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 91415bf8..654c9fb8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,7 @@ current is part of cutting a release.
## Unreleased
+- `#1009`: queued follow-up row does not paint a surface bar while a turn is working.
- Accord Unix 0600 is a standing duplex per live session (`GRAFF_ACCORD=0` opts out); JSONL stays the durable room (ADR 0134). `/debug` reports Accord session count and RSS.
- Engine messaging (idle peer mail, #1007) is the same latch on line REPL, TUI, and `graff acp`.
- `#1001`: idle TUI and line REPL start a turn when the durable peer room has new unread mail (one auto-turn per batch; inbox consume resets).
diff --git a/apps/native/components/site/PromptQueue.tsx b/apps/native/components/site/PromptQueue.tsx
index 99fd8f25..4d7c7731 100644
--- a/apps/native/components/site/PromptQueue.tsx
+++ b/apps/native/components/site/PromptQueue.tsx
@@ -60,7 +60,8 @@ export default function PromptQueue({ items, busy, status, error, onSteer, onRem
// The words without their markers; a marker never renders as a path.
const label = parts.filter((_, index) => index % 2 === 0).join("").replace(/\s+/g, " ").trim();
return (
- <li key={item.id} data-queued-prompt={item.id} className="flex flex-wrap items-center gap-2 rounded-[8px] bg-surface px-2.5 py-1.5 text-[12.5px] text-ink-2 shadow-hairline">
+ <li key={item.id} data-queued-prompt={item.id} data-queue-chrome={busy ? "working" : "idle"}
+ className={`flex flex-wrap items-center gap-2 rounded-[8px] px-2.5 py-1.5 text-[12.5px] text-ink-2 ${busy ? "" : "bg-surface shadow-hairline"}`}>
<span className="shrink-0 text-[11px] font-medium tracking-wide text-ink-3 uppercase">Queued</span>
{editing === item.id ? (
<>
@@ -91,7 +92,7 @@ export default function PromptQueue({ items, busy, status, error, onSteer, onRem
</>
) : (
<>
- <span className="min-w-0 flex-1 truncate text-ink" title={item.text}>{label || "Attachment only"}</span>
+ <span className={`min-w-0 flex-1 truncate ${busy ? "text-ink-3" : "text-ink"}`} title={item.text}>{label || "Attachment only"}</span>
{parts.map((part, index) => index % 2 === 1
? <QueuedImage key={`${index}-${part}`} name={markerName(part)} />
: null)}
diff --git a/apps/native/e2e/queue.pw.ts b/apps/native/e2e/queue.pw.ts
index c9205e69..79c7c58c 100644
--- a/apps/native/e2e/queue.pw.ts
+++ b/apps/native/e2e/queue.pw.ts
@@ -11,6 +11,13 @@ test.beforeEach(async ({ page }) => {
await page.getByRole("button", { name: "Start fixture" }).click();
});
+test("a working queued row has no surface fill", async ({ page }) => {
+ const queued = page.locator('[data-queued-prompt="1"]');
+ await expect(queued).toHaveAttribute("data-queue-chrome", "working");
+ const bg = await queued.evaluate(el => getComputedStyle(el).backgroundColor);
+ expect(bg === "rgba(0, 0, 0, 0)" || bg === "transparent").toBeTruthy();
+});
+
test("editing a non-head message pauses completion and sends the saved multiline text", async ({ page }) => {
const queued = page.locator(row);
await expect(queued.locator("img")).toHaveJSProperty("naturalWidth", 1);