Skip to content

TUI scroll position resets to top after approving a tool permission prompt #2296

Description

@liqiyian

What version of Kimi Code is running?

0.29.2

Which open platform/subscription were you using?

Kimi Code (OAuth)

Which model were you using?

K3-256K

What platform is your computer?

Linux (kernel 6.6.119, ChromeOS Crostini container)

What issue are you seeing?

In a long session, whenever a tool permission (approval) prompt appears and I confirm/approve it, the transcript view jumps all the way back to the very top of the conversation, instead of keeping the position I was reading or following new output at the bottom.

What steps can reproduce the bug?

  1. Have a session long enough to exceed the terminal viewport.
  2. Scroll up to read earlier messages.
  3. The agent requests a tool approval; the permission prompt appears.
  4. Select an option to approve.
  5. After the prompt closes and the UI re-renders, the view is reset to the top of the transcript.

What is the expected behavior?

After the permission prompt closes, the scroll position should be preserved (stay where I was reading), or at least follow new output at the bottom — never reset to the very top.

Additional information

Possibly related to #1487 and #981 (streaming-triggered jumps to top), but the trigger here is specifically the approval dialog close/re-render, not streaming output. Reproducible consistently on every approval.

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