Skip to content

Chat view should not resize the underlying terminal #361

Closed

Description

@praveng

Problem

Opening a pane in the mobile chat view changes the underlying terminal dimensions to the phone's viewport. The same pane then appears narrower in a desktop Herdr client.

This can make sense in terminal view, where the terminal needs to fit the screen. In chat view, though, the conversation has its own layout. Resizing the terminal provides no benefit and disrupts anyone switching between chat and the desktop terminal.

Proposal

Chat view should leave the underlying terminal size unchanged. Opening a pane, switching to chat, or opening the mobile keyboard should not resize the shared terminal while in chat view. Sending messages should still work normally.

The current implementation appears to attach the terminal component with the browser's dimensions even when the chat view covers it. The server then applies those dimensions to the shared pane. Keeping chat input available without taking ownership of terminal sizing would avoid this.

A separate terminal-view option to keep the current size, or an explicit “Fit to this device” action, would also be useful. But the main request is simpler: chat view should not change terminal dimensions at all.

Where

Chat and prompt cards; Terminal

Workarounds and alternatives

Observe mode preserves terminal sizing, but also disables input, so it is not a substitute for an interactive chat view.

Activity

  1. WOULDU-pres commented on Oct 3, 2026

    @WOULDU-pres
    Contributor

    안녕하세요. main(bb7ef50)에서 원인을 확인했습니다.

    PaneTerminal은 채팅 보기에서도 화면 뒤에 붙어 있어, 처음 연결할 때(attach)와 화면 크기가 바뀔 때 브라우저 기준 cols/rows를 서버로 보냅니다. 서버는 그 크기로 공유 터미널을 맞추기 때문에, 폰에서 채팅 보기만 열어도 데스크톱 쪽 터미널이 좁아집니다.

    채팅 보기에서는 공유 터미널 크기를 바꾸지 않고, 터미널 보기로 돌아올 때 그 기기 크기에 맞추는 방향으로 PR을 준비하겠습니다.

  2. added a commit that references this issue on Oct 3, 2026
    f20acfc
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