[BUG] ClaudeFilePathFilter crashes on Windows with commands starting with "/"

Resolved 💬 4 comments Opened Dec 7, 2025 by Dyl-M Closed Dec 11, 2025

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?

The ClaudeFilePathFilter crashes when parsing Claude Code terminal output on Windows, specifically when commands start with /. The filter attempts to parse the prompt character > as part of a file path, which is invalid on Windows. It's happening since 0.1.13-beta release.

What Should Happen?

The file path filter should:

  • Ignore the Claude Code prompt (>) when detecting file paths
  • Validate paths before attempting to parse them
  • Not crash on invalid path characters

Error Messages/Logs

com.intellij.execution.filters.CompositeFilter$ApplyFilterException: Error while applying com.anthropic.code.plugin.terminal.ClaudeFilePathFilter@767f00b4 to '> /c '
	at com.intellij.execution.filters.CompositeFilter.applyFilter(CompositeFilter.java:71)
	at com.intellij.terminal.JediTermHyperlinkFilterAdapter.runFilters$lambda$2(JediTermHyperlinkFilterAdapter.kt:101)
	at com.intellij.openapi.application.rw.InternalReadAction.insideReadAction(InternalReadAction.kt:111)
	at com.intellij.openapi.application.rw.InternalReadAction.tryReadCancellable$lambda$4(InternalReadAction.kt:101)
	at com.intellij.openapi.application.rw.CancellableReadActionKt.cancellableReadActionInternal$lambda$3$lambda$2$lambda$1(cancellableReadAction.kt:32)
	at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.tryRunReadAction(NestedLocksThreadingSupport.kt:826)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1221)
	at com.intellij.openapi.application.rw.CancellableReadActionKt.cancellableReadActionInternal$lambda$3$lambda$2(cancellableReadAction.kt:30)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtilService.runActionAndCancelBeforeWrite(ProgressIndicatorUtilService.java:73)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:152)
	at com.intellij.openapi.application.rw.CancellableReadActionKt.cancellableReadActionInternal(cancellableReadAction.kt:28)
	at com.intellij.openapi.application.rw.InternalReadAction.tryReadCancellable(InternalReadAction.kt:100)
	at com.intellij.openapi.application.rw.InternalReadAction.tryReadAction(InternalReadAction.kt:86)
	at com.intellij.openapi.application.rw.InternalReadAction.readLoop(InternalReadAction.kt:73)
	at com.intellij.openapi.application.rw.InternalReadAction.access$readLoop(InternalReadAction.kt:15)
	at com.intellij.openapi.application.rw.InternalReadAction$runReadAction$6.invokeSuspend(InternalReadAction.kt:52)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:613)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:1189)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:778)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:765)
Caused by: java.nio.file.InvalidPathException: Illegal char <>> at index 0: > /c
	at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:199)
	at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:175)
	at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
	at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:95)
	at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:231)
	at java.base/java.nio.file.Path.resolve(Path.java:516)
	at com.intellij.platform.core.nio.fs.MultiRoutingFsPath.resolve(MultiRoutingFsPath.java:105)
	at com.intellij.platform.core.nio.fs.MultiRoutingFsPath.resolve(MultiRoutingFsPath.java:16)
	at com.anthropic.code.plugin.terminal.ClaudeFilePathFilter.findMatches$lambda$2(ClaudeConsoleFilterProvider.kt:118)
	at kotlin.sequences.TransformingSequence$iterator$1.next(Sequences.kt:210)
	at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:170)
	at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:194)
	at kotlin.sequences.SequencesKt___SequencesKt.toList(_Sequences.kt:817)
	at com.anthropic.code.plugin.terminal.ClaudeFilePathFilter.findMatches(ClaudeConsoleFilterProvider.kt:151)
	at com.anthropic.code.plugin.terminal.ClaudeFilePathFilter.applyFilter(ClaudeConsoleFilterProvider.kt:93)
	at com.intellij.execution.filters.CompositeFilter.applyFilter(CompositeFilter.java:65)
	... 21 more

Steps to Reproduce

  1. Open Claude Code terminal in JetBrains IDE on Windows
  2. Type any command starting with / (e.g., /commit-message)
  3. The exception is thrown immediately

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

JetBrains Pluggin : 0.1.12-beta

Claude Code Version

2.0.60

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PyCharm terminal

Additional Information

_No response_

View original on GitHub ↗

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