Skip to content

desktop: Send comment button overlaps the line comment draft text #2254

Done

Description

@ydavidtimothy-spec

Summary

In the Rune desktop app, the Send comment button in the file viewer's line comment editor is drawn on top of the comment draft instead of clear of it, hiding the words underneath. The overlap is obvious in light mode, where the dark button sits over the light editor; in dark mode it is camouflaged.

Environment

  • opencode version: 0.0.0-dev-1385 (Rune desktop build; the CLI on PATH is 2.4.1)
  • Client: desktop (OpenCode Rune)
  • Model and provider: Not relevant
  • OS: Windows 11 10.0.26300 (win32 x64)
  • Terminal: Not applicable (desktop app)
  • Shell: Not applicable (desktop app)
  • Install/channel: direct install, desktop-rune artifact, dev channel
  • Active plugins: @mohak34/opencode-notifier, @tarquinen/opencode-dcp, opencode-supermemory

Reproduction

  1. Open a Markdown file in the file viewer in OpenCode Rune.
  2. Click a line number, or select a line range, to start a line comment.
  3. Type a comment long enough to wrap over several lines.
  4. Look at the submit control. The Send comment button renders over the draft text, covering part of a line, instead of sitting below the field in the editor footer.

Expected Behavior

The submit button sits in the editor footer, or otherwise clear of the textarea, so the draft stays fully readable while it is being written.

Actual Behavior

The Send comment button overlaps the draft and hides the text behind it. In the screenshot it covers the end of * The system will generate the renewal ... and the start of the following words. Light mode makes this obvious; dark mode hides the overlap.

Additional Context

  • Screenshot: a line comment editor opened over a Markdown file in light theme. The draft starts "Hi Fernando, thanks, that clears it up. I've recorded the rules:" and the dark Send comment pill sits over the third bullet.
  • Reproduced consistently on this machine, in the file viewer (not the review diff).
  • Theme: light.
  • The button still submits correctly; the defect is that it obscures the draft.
  • Originally filed as desktop: Send comment button overlaps the line comment draft text opencode#67924 and redirected here by @opencodejr. The screenshot is held locally and can be attached on request.

Activity

  1. ydavidtimothy-spec commented on Dec 3, 2026

    @ydavidtimothy-spec
    Author
    line-comment-overlap

    Screenshot: the Send comment pill covers the draft text in light mode.

  2. Hona commented on Dec 3, 2026

    @Hona
    Member

    Fixed in PR #2271 (merged to dev in 0630414e694a1826df6dcd2ad38a98ec93b19b2a).

    The line-comment editor's multiline input had a fixed/capped height applied directly to the text field without an enclosing scroll viewport, so drafts longer than 4 lines painted past the field bounds over the Cancel and Comment / Send comment buttons. All multiline comment editors (Files/wide Review editor_v2, narrow Review editor_v1, compact quote comments, and browser element/page comments) now wrap their text field inside a session_view::scroller::scroller(...) viewport so overflowing text clips and scrolls cleanly above the footer row.

    Verified: pwsh scripts/guardrails.ps1 (11/11), cargo check and cargo clippy locally on Windows, and all CI builds green (macOS, Linux x64/arm64, Windows x64/arm64). Not visually verified in a live GUI window on hardware — please reopen if you still see any overlap in light or dark mode.

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

Metadata

Metadata

Assignees

No one assigned

    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