Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(desktop): align GitHub chips with inline text (#99824)

Paul D'Ambraaa92c4a32e85
diff --git a/products/desktop/packages/agent/src/adapters/claude/session/models.ts b/products/desktop/packages/agent/src/adapters/claude/session/models.ts
index a277da1cde7a..2dc40c272a0a 100644
--- a/products/desktop/packages/agent/src/adapters/claude/session/models.ts
+++ b/products/desktop/packages/agent/src/adapters/claude/session/models.ts
@@ -8,10 +8,7 @@ import {
EFFORT_LEVEL_DOCS_URLS,
EFFORT_LEVEL_LABELS,
} from "@posthog/shared/domain-types";
-import {
- normalizeModelId,
- reasoningEffortsForModel,
-} from "@posthog/shared/model-catalog";
+import { reasoningEffortsForModel } from "@posthog/shared/model-catalog";
import type { EffortLevel } from "../types";
export const DEFAULT_MODEL = "opus";
diff --git a/products/desktop/packages/ui/src/features/editor/components/GithubRefChip.stories.tsx b/products/desktop/packages/ui/src/features/editor/components/GithubRefChip.stories.tsx
index 74bc7706ae48..0a3fa8b3436b 100644
--- a/products/desktop/packages/ui/src/features/editor/components/GithubRefChip.stories.tsx
+++ b/products/desktop/packages/ui/src/features/editor/components/GithubRefChip.stories.tsx
@@ -123,6 +123,21 @@ const LIFECYCLE_CASES: { number: number; details: PrRefDetails }[] = [
},
];
+export const InlineProse: Story = {
+ render: () => (
+ <div className="max-w-xl text-[15px] leading-6">
+ The task will update
+ <PrRefChip
+ href="https://github.com/example-org/example-repo/pull/123456789"
+ details={LIFECYCLE_CASES[0].details}
+ >
+ #123456789
+ </PrRefChip>
+ . Check the result before the next run.
+ </div>
+ ),
+};
+
export const LifecycleStates: Story = {
render: () => (
<div className="flex flex-wrap items-center gap-3 text-[13px]">
diff --git a/products/desktop/packages/ui/src/features/editor/components/GithubRefChip.tsx b/products/desktop/packages/ui/src/features/editor/components/GithubRefChip.tsx
index d9a645cc437b..544a2b79d06b 100644
--- a/products/desktop/packages/ui/src/features/editor/components/GithubRefChip.tsx
+++ b/products/desktop/packages/ui/src/features/editor/components/GithubRefChip.tsx
@@ -91,7 +91,7 @@ export const GithubRefChipLink = forwardRef<
// overflow-hidden: nothing in the content box shrinks below its
// content size, so a long preserved number would otherwise paint past
// the chip edge.
- "cli-file-mention focus-visible:-outline-offset-1 mx-0.5 inline-block max-w-full cursor-pointer! select-text overflow-hidden whitespace-nowrap pl-1.5 align-baseline leading-[1.375rem] no-underline",
+ "cli-file-mention focus-visible:-outline-offset-1 mx-0.5 inline-block max-w-full cursor-pointer! select-text overflow-hidden whitespace-nowrap pl-1.5 align-middle leading-[1.375rem] no-underline",
buttonProps.className,
)}
>