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): stop the chat composer placeholder scrolling (#81383)

Shy Altere3d0ab8674b6
diff --git a/products/desktop/packages/ui/src/features/message-editor/components/message-editor.css b/products/desktop/packages/ui/src/features/message-editor/components/message-editor.css
index fb2b3cff2eef..baea558c5332 100644
--- a/products/desktop/packages/ui/src/features/message-editor/components/message-editor.css
+++ b/products/desktop/packages/ui/src/features/message-editor/components/message-editor.css
@@ -1,10 +1,20 @@
-/* Tiptap placeholder - targets empty first paragraph */
+/* Tiptap placeholder - targets empty first paragraph. Laid out like the comment composer's
+ (mention-composer.css): taken out of flow and clipped to a single line. Floated with height:0 it
+ still wraps, and a wrapped placeholder overflows .cli-editor-scroll without being able to grow it,
+ so an empty composer in a narrow side panel gets a scrollbar and a half-cut second line. */
+.cli-editor p.is-editor-empty:first-child {
+ position: relative;
+}
+
.cli-editor p.is-editor-empty:first-child::before {
- content: attr(data-placeholder);
+ position: absolute;
+ inset: 0;
+ overflow: hidden;
color: var(--muted-foreground);
+ text-overflow: ellipsis;
+ white-space: nowrap;
pointer-events: none;
- float: left;
- height: 0;
+ content: attr(data-placeholder);
}
/* Ensure Tiptap NodeView wrappers render inline for mention chips */
diff --git a/products/desktop/packages/ui/src/features/sessions/components/SessionView.tsx b/products/desktop/packages/ui/src/features/sessions/components/SessionView.tsx
index 32538925c1a7..b0a674c5bf8a 100644
--- a/products/desktop/packages/ui/src/features/sessions/components/SessionView.tsx
+++ b/products/desktop/packages/ui/src/features/sessions/components/SessionView.tsx
@@ -803,7 +803,7 @@ export function SessionView({
<PromptInput
ref={editorRef}
sessionId={sessionId}
- placeholder="Type a message... @ to mention files, ! for bash mode, / for skills"
+ placeholder="Type a message... ! for bash mode, / for skills"
disabled={!isRunning && !handoffInProgress}
submitDisabledExternal={
handoffInProgress ||