Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix protocol issue
Claude Code does not always send the `listChanged` field during the
handshake. This can prevent a server built with this library to fail
during startup.
  • Loading branch information
kapunga committed Sep 6, 2025
commit 468854481fd419a816e5692a999008a5d8e3e625
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ object Initialize:
}

given Decoder[Changable] = Decoder.instance { c =>
c.downField("listChanged").as[Boolean].map(Changable.apply)
c.downField("listChanged").as[Option[Boolean]].map(_.getOrElse(false)).map(Changable.apply)
}

case class Subscribable(subscribe: Boolean, listChanged: Boolean)
Expand Down