[BUG] Statusline wrapping causes input lag when pressing shift+enter

Resolved 💬 3 comments Opened Feb 1, 2026 by vvinhas Closed Feb 5, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's wrong?

When the statusline wraps to multiple lines (due to long content or narrow terminal), pressing shift+enter to add newlines in the input area has a noticeable delay before the newline renders. The UI becomes laggy specifically when the statusline spans 2+ lines.

Steps to Reproduce:

  1. Configure a custom statusline script that outputs long text (e.g., includes full working directory path)
  2. Alternatively, resize terminal narrow enough that statusline wraps
  3. Type in the input area and press shift+enter to add newlines
  4. Observe delay before newline appears

Expected Behavior:

Newline appears immediately

Actual Behavior:

Noticeable lag/delay rendering newlines when statusline wraps to multiple lines

What Should Happen?

Newline appears immediately regardless of statusline length

Error Messages/Logs

2026-02-01T18:52:58.775Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:52:59.379Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:52:59.996Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:53:00.612Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:53:01.207Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:53:01.817Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:53:02.435Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:53:03.025Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:53:03.637Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:53:04.238Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:53:04.850Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:53:05.463Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:53:06.067Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:53:06.674Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:53:07.274Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:53:07.883Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:53:08.487Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:53:09.093Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:53:09.703Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:53:10.333Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:53:10.926Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:53:11.520Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:53:12.142Z [DEBUG] High write ratio: blit=730, write=25005 (97.2% writes), screen=692x73
2026-02-01T18:53:12.750Z [DEBUG] High write ratio: blit=730, write=25008 (97.2% writes), screen=693x73
2026-02-01T18:53:13.370Z [DEBUG] High write ratio: blit=730, write=25012 (97.2% writes), screen=694x73
2026-02-01T18:53:13.954Z [DEBUG] High write ratio: blit=730, write=25016 (97.2% writes), screen=694x73
2026-02-01T18:53:14.567Z [DEBUG] High write ratio: blit=730, write=25022 (97.2% writes), screen=694x73
2026-02-01T18:53:15.185Z [DEBUG] High write ratio: blit=730, write=25023 (97.2% writes), screen=694x73
2026-02-01T18:53:15.789Z [DEBUG] High write ratio: blit=730, write=25023 (97.2% writes), screen=694x73
2026-02-01T18:53:16.396Z [DEBUG] High write ratio: blit=730, write=25023 (97.2% writes), screen=694x73

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.29 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

I'm using Ghostty

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗