Skip to content

The session with HTML inside doesn’t render when I switch to it (shared session attached) #3819

Closed

Description

@istarkov

Description

This session doesn’t render in the terminal. See attached shared session.

Seems like scroll issue, like scroll position is out of content. If I scroll up I see the content

disabling any of this params, fixes the issue

https://github.com/sst/opencode/blob/93e52f7ecfd8267038fba0e859c347740e3c260b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx#L529-L530

OpenCode version

1.0.15

Steps to reproduce

See attached session https://opencode.ai/s/t0taTOMH
Just asked to output few html files.

Screenshot and/or share link

https://opencode.ai/s/t0taTOMH

Image

Screenshot from the video (it starts to render)

Image

Operating System

macos

Terminal

iterm2

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 3, 2025
  2. github-actions commented on Nov 3, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  3. changed the title [-]Session with html code inside doesn't rendered[/-] [+]The session with HTML inside doesn’t render when I switch to it[/+] on Nov 3, 2025
  4. changed the title [-]The session with HTML inside doesn’t render when I switch to it[/-] [+]The session with HTML inside doesn’t render when I switch to it (shared session attached)[/+] on Nov 3, 2025
  5. istarkov commented on Nov 3, 2025

    @istarkov
    ContributorAuthor

    Investigating....

    Scroll 99%. This also partially fixes the issue, except blocks after html are not rendered sometimes

      createEffect(() => {
        const currentSessionID = route.sessionID
    
        setTimeout(() => {
          scroll.scrollTo(0)
        }, 500)
    
        setTimeout(() => {
          scroll.scrollTo(scroll.scrollHeight)
        }, 1500)
      })
    
  6. istarkov commented on Nov 4, 2025

    @istarkov
    ContributorAuthor

    Fixed in dev branch

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions