From 505713ba4a180499a21386eb2f68fe61473096db Mon Sep 17 00:00:00 2001 From: chx9 Date: Fri, 24 Apr 2026 14:22:23 +0800 Subject: [PATCH 1/2] fix(ui): limit question custom input height to keep footer visible The textarea used for typing a custom answer had no max-height and used overflow:hidden, causing it to grow unboundedly and push the submit button outside the visible area. Set max-height: 120px and overflow-y: auto so content scrolls inside the textarea instead of expanding the dialog. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- packages/ui/src/components/message-part.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/ui/src/components/message-part.css b/packages/ui/src/components/message-part.css index c84a36892242..24408f6b6380 100644 --- a/packages/ui/src/components/message-part.css +++ b/packages/ui/src/components/message-part.css @@ -1090,7 +1090,8 @@ min-width: 0; cursor: text; resize: none; - overflow: hidden; + overflow-y: auto; + max-height: 120px; overflow-wrap: anywhere; &::placeholder { From 0a0b451689943740db3493a230b25d0a89e38ce7 Mon Sep 17 00:00:00 2001 From: chx9 Date: Fri, 24 Apr 2026 14:22:32 +0800 Subject: [PATCH 2/2] fix(app): sync question textarea resize cap with CSS max-height resizeInput was setting el.style.height to scrollHeight with no upper bound. Align the JS cap (120px) with the CSS max-height so the element height is consistent regardless of which constraint applies first. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- .../app/src/pages/session/composer/session-question-dock.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app/src/pages/session/composer/session-question-dock.tsx b/packages/app/src/pages/session/composer/session-question-dock.tsx index 35690030c913..1cc8a25b3bba 100644 --- a/packages/app/src/pages/session/composer/session-question-dock.tsx +++ b/packages/app/src/pages/session/composer/session-question-dock.tsx @@ -373,7 +373,7 @@ export const SessionQuestionDock: Component<{ request: QuestionRequest; onSubmit const resizeInput = (el: HTMLTextAreaElement) => { el.style.height = "0px" - el.style.height = `${el.scrollHeight}px` + el.style.height = `${Math.min(el.scrollHeight, 120)}px` } const focusCustom = (el: HTMLTextAreaElement) => {