From 9923a6d86c490c929dc6a1f0cc9aa59613974571 Mon Sep 17 00:00:00 2001 From: Adam Bowker Date: Fri, 17 Jul 2026 18:37:47 -0400 Subject: [PATCH 1/2] fix(canvas): cap CONTEXT.md description textarea height MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The quill Textarea auto-grows with its content and has no max-height, so a long description in the "Create your context.md" dialog expanded the modal until the footer's Create button was pushed off-screen — leaving ⌘/Ctrl+Enter as the only way to submit. Cap the field at 40vh and scroll within it. Shared by both the describe-mode dialog and the create-mode step-two dialog. Generated-By: PostHog Code Task-Id: bce0c26e-84ce-4af0-b891-652a74506f21 --- .../ui/src/features/canvas/components/CreateChannelModal.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/ui/src/features/canvas/components/CreateChannelModal.tsx b/packages/ui/src/features/canvas/components/CreateChannelModal.tsx index 5920379390..6dbec75e9e 100644 --- a/packages/ui/src/features/canvas/components/CreateChannelModal.tsx +++ b/packages/ui/src/features/canvas/components/CreateChannelModal.tsx @@ -181,6 +181,10 @@ export function CreateChannelModal({ id="context-description" autoFocus rows={4} + // quill's Textarea auto-grows with content (field-sizing) and is + // uncapped, so a long description would expand the dialog until the + // footer's Create button is pushed off-screen. Cap it and scroll within. + className="max-h-[40vh] overflow-y-auto" value={description} placeholder={DESCRIPTION_PLACEHOLDER} disabled={busy} From d1721a79ccdc515c9948a46f119390ef9021276a Mon Sep 17 00:00:00 2001 From: Adam Bowker Date: Fri, 17 Jul 2026 18:50:11 -0400 Subject: [PATCH 2/2] refactor(canvas): drop comment on description textarea cap Generated-By: PostHog Code Task-Id: bce0c26e-84ce-4af0-b891-652a74506f21 --- .../ui/src/features/canvas/components/CreateChannelModal.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/ui/src/features/canvas/components/CreateChannelModal.tsx b/packages/ui/src/features/canvas/components/CreateChannelModal.tsx index 6dbec75e9e..fccec5ff29 100644 --- a/packages/ui/src/features/canvas/components/CreateChannelModal.tsx +++ b/packages/ui/src/features/canvas/components/CreateChannelModal.tsx @@ -181,9 +181,6 @@ export function CreateChannelModal({ id="context-description" autoFocus rows={4} - // quill's Textarea auto-grows with content (field-sizing) and is - // uncapped, so a long description would expand the dialog until the - // footer's Create button is pushed off-screen. Cap it and scroll within. className="max-h-[40vh] overflow-y-auto" value={description} placeholder={DESCRIPTION_PLACEHOLDER}