[BUG] Loop file system calls on .config.json when typing "/"

Resolved 💬 2 comments Opened Jan 21, 2026 by juancarlosm Closed Jan 21, 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?

Summary

I noticed that when interacting with claude code, typing the forward slash / character (to start a command) triggers a continuous loop of file system operations, causing high CPU usage.

Steps to Reproduce

  1. Start claude code.
  2. Type a single forward slash / or any /command in the input prompt.
  3. Do not press enter. Just leave the / in the input buffer.

Observed Behavior

I noticed increased resource usage.

I attached strace to the process to investigate, and it shows the application is continuously calling access and statx on the .config.json file several times per second without pausing.

Strace output snippet: (strace -ff -pPID):

[pid 632080] access("/home/user/.claude/.config.json", F_OK) = 0
[pid 632080] statx(AT_FDCWD, "/home/user/.claude/.config.json", AT_STATX_SYNC_AS_STAT, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFREG|0664, stx_size=253, ...}) = 0
[pid 632080] access("/home/user/.claude/.config.json", F_OK) = 0
[pid 632080] statx(AT_FDCWD, "/home/user/.claude/.config.json", AT_STATX_SYNC_AS_STAT, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFREG|0664, stx_size=253, ...}) = 0
... (repeats indefinitely) ...

### What Should Happen?

The application should read the configuration file once (or use a cached version) when the `/` is typed, instead of continuously polling the file system. Resource usage should remain low while waiting for user input.

### Steps to Reproduce

1. Start `claude code`.
2. Type a single forward slash `/` or any `/command` in the input prompt.
3. Do not press enter. Just leave the `/` in the input buffer.
4. Check system resource usage or strace the claude process

### Claude Code Version

2.1.14 (Claude Code)

### Platform

Anthropic API

### Operating System

Ubuntu/Debian Linux

### Terminal/Shell

Terminator

View original on GitHub ↗

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