diff --git a/packages/coding-agent/src/modes/components/status-line/component.ts b/packages/coding-agent/src/modes/components/status-line/component.ts index 8275d5895..e06a9198f 100644 --- a/packages/coding-agent/src/modes/components/status-line/component.ts +++ b/packages/coding-agent/src/modes/components/status-line/component.ts @@ -1785,9 +1785,7 @@ export class StatusLineComponent implements Component { : separatorDef.endCaps.left : ""; const capPrefix = separatorDef.endCaps?.useBgAsFg ? bgAnsi.replace("\x1b[48;", "\x1b[38;") : bgAnsi + sepAnsi; - const capText = cap - ? `${capPrefix}${this.#focusedAgentId ? "\x1b[22m" : ""}${cap}\x1b[0m` - : ""; + const capText = cap ? `${capPrefix}${this.#focusedAgentId ? "\x1b[22m" : ""}${cap}\x1b[0m` : ""; let content = bgAnsi + fgAnsi; content += ` ${parts.join(` ${sepAnsi}${sep}${fgAnsi} `)} `; diff --git a/packages/coding-agent/test/write-xdev-dispatch.test.ts b/packages/coding-agent/test/write-xdev-dispatch.test.ts index efbc6fe5f..1343d86b2 100644 --- a/packages/coding-agent/test/write-xdev-dispatch.test.ts +++ b/packages/coding-agent/test/write-xdev-dispatch.test.ts @@ -138,8 +138,7 @@ describe("read and write route xd:// device URLs", () => { label: "Peek", description: "Argument-dependent device", parameters: type({ q: "string" }), - approval: args => - args && typeof args === "object" && "q" in args && args.q === "mutate" ? "write" : "read", + approval: args => (args && typeof args === "object" && "q" in args && args.q === "mutate" ? "write" : "read"), async execute(_id, args) { if (!args || typeof args !== "object" || !("q" in args) || typeof args.q !== "string") { throw new Error("Expected a string query");