Skip to content

[FEATURE] Add collapse/expand functionality to question tool dialog #19400

Closed

Description

@mekrina

Feature Request

Add a collapse/expand button to the question tool dialog, similar to the existing functionality in the todo dock.

Problem

The question tool dialog takes up significant screen space and cannot be temporarily minimized. Users need to:

  • Review conversation history or code context before answering
  • Temporarily hide the dialog without dismissing it
  • Preserve their selected answers while collapsed

Proposed Solution

Implement the same collapse pattern used in session-todo-dock.tsx:

  • Clickable header with chevron icon button
  • When collapsed: show progress ("Question 1 of 3") + question preview
  • When expanded: show full question with all options
  • Smooth animation (0.3s transition)
  • Preserve user's selected answers

Reference Implementation

packages/app/src/pages/session/composer/session-todo-dock.tsx (lines 42-219)

This component already implements:

  • IconButton with rotating chevron icon
  • Spring-based collapse animation
  • State management for collapsed state
  • Preview text display when collapsed

Benefits

  • Better screen space management
  • Consistent UI pattern across dock components
  • Improved UX for complex questions

Activity

  1. aklajnert commented on Apr 18, 2026

    @aklajnert

    I am also often dealing with this issue. Sometimes the model response cannot be read at all, as the question interface covers it completely. The only way to work around is it playing with the dev tools, which is not possible in the standalone Destkop version.

  2. removed
    webRelates to opencode on web / desktop
    on May 3, 2026
  3. amat27 commented on May 4, 2026

    @amat27

    +1. Because how much Claude likes to ask questions, this is a big QoL improvement.

  4. rekram1-node commented on Jun 23, 2026

    @rekram1-node
    Collaborator

    Automated: closing question issues.

    GitHub Issues are for bug reports and feature requests only — questions / support are no longer tracked here.

    If this is a bug or feature request, please open a new issue with the appropriate template.

  5. rekram1-node commented on Jun 23, 2026

    @rekram1-node
    Collaborator

    Reopening – this was incorrectly closed by automated question-issue cleanup. Sorry for the noise.

  6. eXamadeus commented on Jun 27, 2026

    @eXamadeus
    Contributor

    I have a PR that solves this: #34116

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions