warp icon indicating copy to clipboard operation
warp copied to clipboard

Increase ask-user-question max height for single-question scenarios

Open coolcom200 opened this issue 6 months ago • 0 comments

Description

Increase the max container height for the ask-user-question inline action when only a single question is displayed.

Currently, the max container height is hardcoded to 320px for all cases. When the LLM generates a single question with a long markdown-formatted body, the 320px cap forces excessive scrolling in the question panel. This change introduces a separate ASK_USER_QUESTION_SINGLE_MAX_CONTAINER_HEIGHT constant (520px) that is used when only one question is present, giving 62% more vertical space. Multi-question stacks retain the existing 320px cap and are unaffected.

Changes

  • Added ASK_USER_QUESTION_SINGLE_MAX_CONTAINER_HEIGHT (520px) constant
  • Added is_single_question parameter to ask_user_question_container_height
  • Updated render_active to pass the single-question flag

Linked Issue

  • [ ] The linked issue is labeled ready-to-spec or ready-to-implement.
  • [ ] Where appropriate, screenshots or a short video of the implementation are included below (especially for user-visible or UI changes).

Testing

Existing unit tests pass (they test session state machine, not layout). The container height function change is straightforward — single-question uses larger cap, multi-question uses existing cap.

  • [ ] I have manually tested my changes locally with ./script/run

Agent Mode

  • [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode

Conversation: https://staging.warp.dev/conversation/af66751d-ec24-4572-bd24-cfc3dd0663ec Run: https://oz.staging.warp.dev/runs/019e66a7-f234-77f5-96da-d4772ec00a03 This PR was generated with Oz.

coolcom200 avatar May 26 '26 23:05 coolcom200