Skip to content

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

Python

Use the composer radius on short prompt bars

Cursor Agentf9a5f4edf4f0
diff --git a/apps/native/components/primitives/PromptBar.module.css b/apps/native/components/primitives/PromptBar.module.css
index 1469cd2f..81520d0a 100644
--- a/apps/native/components/primitives/PromptBar.module.css
+++ b/apps/native/components/primitives/PromptBar.module.css
@@ -39,7 +39,7 @@
/* Split panes can be narrow even on a large display. Keep settings legible
on their own row and reserve separate space for attachment/send actions.
- stacked shells use the composer radius — rounded-full on 3 rows is a balloon. */
+ stacked shells use the composer radius — a pill on 3 rows is a balloon. */
@container (max-width: 420px) {
.glass {
border-radius: var(--radius-composer);
diff --git a/apps/native/components/primitives/PromptBar.tsx b/apps/native/components/primitives/PromptBar.tsx
index 90862e59..e6c8a0be 100644
--- a/apps/native/components/primitives/PromptBar.tsx
+++ b/apps/native/components/primitives/PromptBar.tsx
@@ -391,7 +391,7 @@ export default function PromptBar({
} ${
tall ? "gap-2.5 p-3.5" : "gap-1.5 p-1.5"
} ${
- pill ? (attachments.length > 0 || wide ? "rounded-composer" : "rounded-full") : "rounded-composer"
+ "rounded-composer"
}`}
>
<input
diff --git a/apps/native/lib/composer-radius.test.ts b/apps/native/lib/composer-radius.test.ts
new file mode 100644
index 00000000..7dfb19cf
--- /dev/null
+++ b/apps/native/lib/composer-radius.test.ts
@@ -0,0 +1,12 @@
+import { expect, test } from "bun:test";
+import { readFileSync } from "node:fs";
+import path from "node:path";
+
+test("composer and user bubbles use design tokens, not a short-text pill", () => {
+ const composer = readFileSync(path.join(import.meta.dir, "../components/primitives/PromptBar.tsx"), "utf8");
+ const bubbles = readFileSync(path.join(import.meta.dir, "../components/site/ChatBubbles.tsx"), "utf8");
+ expect(composer).toContain("rounded-composer");
+ expect(composer).not.toContain('pill ? (attachments.length > 0 || wide ? "rounded-composer" : "rounded-full")');
+ expect(bubbles).toContain("data-message-bubble");
+ expect(bubbles).toContain("rounded-card");
+});