Files
deepseek-harness/apps/web/tests/snapshots/question-composer/answered.expected.md
Chinesezjc 9dd57a25c5 fix(ui-question): stop option rows absorbing the capped card's shortfall
The question composer card is capped against the viewport and scrolls its
option list. `.options` is a flex column whose children defaulted to
`flex-shrink: 1`, so a short seat shrank the rows before overflowing the
scroll container: a row collapsed to its 42px minimum while `.optionCopy`
kept the taller height its wrapped copy needs, and `align-items: center`
then painted that copy outside the row's border box — over the question
title above and the next row below. Measured 6.5px of spill at 900x440 on
the shipped client, 10px at 380px tall, with `.options` reporting
scrollHeight === clientHeight and therefore offering no scrollbar.

`.option` and `.custom` now declare `flex-shrink: 0`, so the shortfall
reaches the scroll container that already owns `overflow-y: auto` — the
behavior the cap was designed for. Only rows whose copy wraps could
reproduce this, which is why the recorded scenario now asks a question
with long option descriptions; the web e2e asserts at three squeezed seat
heights that every row's children stay inside its border box, guarded
against holding vacuously by requiring a wrapped row and a scrolling list.
2026-07-27 19:20:33 +08:00

1.9 KiB

  • banner:
    • navigation "Session hierarchy":
      • button "Use the ask_user_question tool to" [disabled]
      • text: · 1 turns
    • tablist:
      • tab "Chat" [selected]
      • tab "Trajectory"
      • tab "Waterfall"
  • text: "Use the ask_user_question tool to ask me exactly one question with id "color", question "Which color do you prefer?", header "Pick one", and two options: label "Blue" with description "A cool recessive hue that reads as calm and trustworthy in long reading sessions and dense dashboards.", and label "Green" with description "A restful mid-spectrum hue with the highest perceived brightness, easiest on the eye over long sessions." After I answer, reply with the single word DONE and stop."
  • button "Think The user wants me to use the ask_user_question tool with specific parameters. Let me do exactly that.":
    • img
    • text: Think The user wants me to use the ask_user_question tool with specific parameters. Let me do exactly that.
  • button:
    • img
  • text: "Tool call ask_user_question · {"questions": [{"id": "color", "question": "Which color do you prefer?", "header": "Pick one", "options": [{"label": "Blue", "description": "A cool recessive hue that reads as calm and trustworthy in long reading sessions and dense dashboards."}, {"label": "Green", "description": "A restful mid-spectrum hue with the highest perceived brightness, easiest on the eye over long sessions."}]}]}"
  • button "Think The user answered "Blue". I should now reply with the single word DONE and stop.":
    • img
    • text: Think The user answered "Blue". I should now reply with the single word DONE and stop.
  • paragraph: DONE
  • text: cache hit 95% · 8,769 tokens · 1 turns · 2 steps
  • textbox "Message the agent"
  • button "Add attachment":
    • img
  • combobox "Access mode":
    • option "Read-only" [selected]
    • option "Read-write"
  • button "Send message" [disabled]