Skip to content

[BUG] Arrow Key Navigation Broken When Using Multiple Pasted Text Blocks #2056

@herculesggimenes

Description

@herculesggimenes

Environment

  • Platform (select one):
    • Anthropic API
    • AWS Bedrock
    • Google Vertex AI
    • Other:
  • Claude CLI version: 1.0.22 (Claude Code)
  • Operating System: MacOS 15.5 (24F74)
  • Terminal: Iterm2

Bug Description

When entering a multiline message with pasted text blocks, the up arrow key navigation doesn't work properly. Instead of navigating to previous lines within the current message, pressing the up arrow jumps to the previous chat message.

Steps to Reproduce

  1. Open a Claude session with existing chat history
  2. Paste a text block
  3. Press Enter to create a new line
  4. Paste another text block
  5. Press Enter again to create an empty line
  6. Add some text on the new line
  7. Press the up arrow key

Expected Behavior

When pressing the up arrow key, it should navigate to the previous line within the current message (empty line → second pasted block → first pasted block), allowing in-message navigation.

Actual Behavior

When pressing the up arrow key, instead of navigating to the previous lines within the current message, it jumps to the previous chat message entirely, skipping over the pasted text blocks as if they were not navigable content.

Additional Context

Demonstrating.Text.Block.Navigation.and.Editing.Functionality.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    api:bedrockIssue relates to AWS Bedrockarea:tuiautocloseIssue will be closed automaticallybugSomething isn't workinghas reproHas detailed reproduction stepsplatform:macosIssue specifically occurs on macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions