Skip to content

Every agent's model. One place. Codex on DeepSeek, Claude Code on Kimi, from the menu bar.

redact: a request's steps are joined number to number, not by a dash before each

yetone29f1a5a717c4
diff --git a/internal/gui/assets/plugins/redact/redact.css b/internal/gui/assets/plugins/redact/redact.css
index bf91bc6d6..51b6464c7 100644
--- a/internal/gui/assets/plugins/redact/redact.css
+++ b/internal/gui/assets/plugins/redact/redact.css
@@ -162,7 +162,9 @@ body.window .msk-onebar::before { inset: -6px -16px; }
.msk-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; background: var(--pill); font-size: 11.5px; font-weight: 400; color: var(--fg-2); }
.msk-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: none; }
.msk-steps li { position: relative; min-width: 0; }
-.msk-steps li + li::before { content: ""; position: absolute; left: -10px; top: 10px; width: 10px; height: 1px; background: var(--line-2); }
+/* the line runs from the step before's number to this one's, 6px clear of
+ each: the columns are as wide as this one, 10px apart, numbers 20px */
+.msk-steps li + li::before { content: ""; position: absolute; left: calc(16px - 100%); top: 10px; width: calc(100% - 22px); height: 1px; background: var(--line-2); }
.msk-sdot { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.msk-steps li.held .msk-sdot { background: var(--red-soft); color: var(--red); }
.msk-steps li.none .msk-sdot { background: var(--pill); color: var(--muted); }
diff --git a/internal/gui/tests/masking-records.test.cjs b/internal/gui/tests/masking-records.test.cjs
index e35b55e01..3443a1c1c 100644
--- a/internal/gui/tests/masking-records.test.cjs
+++ b/internal/gui/tests/masking-records.test.cjs
@@ -296,6 +296,15 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
await one.locator(".msk-msg").first().waitFor();
assert.equal(await card.isHidden(), true);
assert.equal(await one.locator(".msk-steps li").count(), 5);
+ // each step's line runs from the number before it to its own, not a dash in the gap
+ const lines = await one.locator(".msk-steps li").evaluateAll((lis) => lis.slice(1).map((li, i) => {
+ const b = getComputedStyle(li, "::before");
+ if (b.display === "none") return null;
+ const x = li.getBoundingClientRect().left + parseFloat(b.left);
+ const from = lis[i].querySelector(".msk-sdot").getBoundingClientRect(), to = li.querySelector(".msk-sdot").getBoundingClientRect();
+ return [Math.round(x - from.right), Math.round(to.left - (x + parseFloat(b.width)))];
+ }));
+ for (const l of lines) if (l) assert.deepEqual(l, [6, 6], "a line from number to number");
assert.equal(await one.locator(".msk-msg").count(), 1, "one piece of text had values");
assert.equal(await one.locator(".msk-fold").count(), 1, "the system prompt and the earlier message, folded as one");
assert.deepEqual(await one.locator(".msk-msg .msk-text").last().locator("mark").allTextContents(), [KEY, MAIL, KEY], "as the vendor got it");