[BUG] Claude Code interactive TUI immediately exits in non-git directories

Resolved 💬 3 comments Opened Mar 4, 2026 by neatobandit0 Closed Mar 8, 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 launching claude in a directory that is not a git repository, the interactive TUI renders the welcome screen and prompt, then immediately exits back to the shell without accepting any input.

What Should Happen?

Claude Code should start an interactive session in any directory, regardless of git status

Error Messages/Logs

Steps to Reproduce

mkdir /tmp/test-empty && cd /tmp/test-empty
claude

Welcome screen appears, prompt shows, then immediately exits to shell

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

v2.1.68

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Xterm

Additional Information

_No response_

View original on GitHub ↗

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