[Bug] Terminal Window Resizing Incorrectly When Switching Tabs

Resolved 💬 3 comments Opened Oct 7, 2025 by kthakkar100 Closed Oct 11, 2025

Bug Description
when switching between two terminal tabs, if I have claude code in one terminal and the other tab is something else, when I switch from the other tab to the claude code tab the terminal becomes smaller automatically. if it helps -> the terminal is attached to one half of the screen using macos's built in snap feature. I'm using 16 inch mac pro m4 pro -> sequoia 15.4.1

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.0.8
  • Feedback ID: ec26f088-ddfe-43b8-a498-0c3bcd4bb58e

Errors

[{"error":"Error: Tab close: Invalid tab not found!\n    at mk2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1077:18566)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async xYB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2595:10081)\n    at async AbortSignal.J (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2595:9099)","timestamp":"2025-10-06T06:41:47.409Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at XK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2195:1226)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2195:954\n    at Array.map (<anonymous>)\n    at fX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2195:945)\n    at Y2B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2195:13021)\n    at qC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:34:19415)\n    at Wp (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:42814)\n    at G9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38355)\n    at zh (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38283)\n    at yC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38137)","timestamp":"2025-10-06T07:04:39.509Z"},{"error":"Error: Request was aborted.\n    at nu._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:884:4711)\n    at processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at runNextTicks (node:internal/process/task_queues:69:3)\n    at process.processTimers (node:internal/timers:540:9)","timestamp":"2025-10-06T07:19:53.570Z"},{"error":"Error: String not found in file. Failed to apply edit.\n    at X31 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:994:730)\n    at KM1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:994:104)\n    at Object.H_2 [as renderToolUseRejectedMessage] (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1090:3738)\n    at sAB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2195:5240)\n    at qC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:34:19415)\n    at Wp (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:42814)\n    at G9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38355)\n    at zh (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38283)\n    at yC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38137)\n    at PH (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:35216)","timestamp":"2025-10-06T08:09:11.990Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at XK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2195:1226)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2195:954\n    at Array.map (<anonymous>)\n    at fX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2195:945)\n    at Y2B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2195:13021)\n    at qC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:34:19415)\n    at Wp (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:42814)\n    at G9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38355)\n    at zh (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38283)\n    at yC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:36:38137)","timestamp":"2025-10-06T08:09:11.998Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at XK (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2195:1226)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2195:954\n    at Array.map (<anonymous>)\n    at fX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2195:945)\n    at aXB (file:///opt/homebrew

Note: Error logs were truncated.

View original on GitHub ↗

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