From 42bcc8b3cc8d9ac620c7b8d1890e9edc64bc35f6 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 29 Nov 2026 10:17:37 -0600 Subject: [PATCH 01/16] java(deps[dev]): Update Spotless to 8.12.0 why: Spotless now honors trailing /** exclusions when walking source trees. The field catalog excludes its generated Java directory this way. spotlessCheck also handles stale formatted copies correctly. The build chooses its own Palantir Java Format version. what: - Update the Gradle plugin and its artifact verification metadata. See also: https://github.com/diffplug/spotless/releases/tag/gradle/8.12.0 --- gradle/libs.versions.toml | 2 +- gradle/verification-metadata.xml | 42 ++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index cfb634adb..71d3d18ed 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -12,7 +12,7 @@ jsr305 = "3.0.2" errorprone = "2.52.0" nullaway = "0.14.3" errorprone-plugin = "5.2.0" -spotless = "8.11.0" +spotless = "8.12.0" maven-publish-plugin = "0.37.0" palantir-format = "2.97.0" cyclonedx-plugin = "3.5.1" diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index f8c58761f..8f0025b3e 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -79,6 +79,11 @@ + + + + + @@ -100,6 +105,14 @@ + + + + + + + + @@ -124,6 +137,14 @@ + + + + + + + + @@ -148,6 +169,14 @@ + + + + + + + + @@ -3320,6 +3349,14 @@ + + + + + + + + @@ -3330,6 +3367,11 @@ + + + + + From d4eb6cdb84d01329ac003030b21f179d9b641085 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 29 Nov 2026 10:25:52 -0600 Subject: [PATCH 02/16] java(deps[dev]): Use Error Prone 2.53.0 why: The Java conventions check compilation with Error Prone and NullAway. This release extends impossible-null comparisons to Objects helpers and checks @MustBeClosed on constructor and method references. The annotations and compiler plugin come from the same release. what: - Move the annotation and compiler artifacts with their shared version. - Record verification metadata for the new compiler dependencies. See also: https://github.com/google/error-prone/releases/tag/v2.53.0 --- gradle/libs.versions.toml | 2 +- gradle/verification-metadata.xml | 50 ++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 71d3d18ed..666d00ece 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -9,7 +9,7 @@ re2j = "1.8" slf4j = "2.0.20" tomlj = "2.2.0" jsr305 = "3.0.2" -errorprone = "2.52.0" +errorprone = "2.53.0" nullaway = "0.14.3" errorprone-plugin = "5.2.0" spotless = "8.12.0" diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index 8f0025b3e..138b89707 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -1033,6 +1033,14 @@ + + + + + + + + @@ -1113,6 +1121,14 @@ + + + + + + + + @@ -1137,6 +1153,14 @@ + + + + + + + + @@ -1161,6 +1185,14 @@ + + + + + + + + @@ -1211,6 +1243,11 @@ + + + + + @@ -1364,6 +1401,14 @@ + + + + + + + + @@ -1414,6 +1459,11 @@ + + + + + From ae160d08ae4cd5c805e62d853eb9c78d73a23828 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 29 Nov 2026 10:34:04 -0600 Subject: [PATCH 03/16] java(deps[dev]): Use NullAway 0.14.4 why: Java compilation runs NullAway in JSpecify mode. 0.14.4 recognizes explicit nullable lambda parameters, checks nullable unboxing in enhanced-for loops and preserves wildcard nullability through generic supertypes. what: - Update the NullAway checker and its verified artifacts. See also: https://github.com/uber/NullAway/releases/tag/v0.14.4 --- gradle/libs.versions.toml | 2 +- gradle/verification-metadata.xml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 666d00ece..97b7b5e1e 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -10,7 +10,7 @@ slf4j = "2.0.20" tomlj = "2.2.0" jsr305 = "3.0.2" errorprone = "2.53.0" -nullaway = "0.14.3" +nullaway = "0.14.4" errorprone-plugin = "5.2.0" spotless = "8.12.0" maven-publish-plugin = "0.37.0" diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index 138b89707..5a7030f2b 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -1868,6 +1868,14 @@ + + + + + + + + From 294a05e4bcf9d387e2778a7633e4a8f1c73c72fb Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 29 Nov 2026 10:35:55 -0600 Subject: [PATCH 04/16] java(deps[dev]): Use JavaPoet 0.23.0 why: The generator builds field metamodels with JavaPoet. Upstream documented no public behavior change. Its only production source edit suppresses an internal CodeBlock compiler warning. Generated source and generator fixtures continue to exercise the rendering contract. what: - Update the code generator dependency and verify its artifacts. See also: - https://github.com/palantir/javapoet/releases/tag/0.23.0 - https://github.com/palantir/javapoet/compare/0.22.0...0.23.0 --- gradle/libs.versions.toml | 2 +- gradle/verification-metadata.xml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 97b7b5e1e..21a3fdef0 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -24,7 +24,7 @@ picocli = "4.7.7" reactive-streams = "1.0.4" snakeyaml = "2.7" testng-engine = "1.1.0" -javapoet = "0.22.0" +javapoet = "0.23.0" kotlinpoet = "2.4.0" dokka = "2.3.0" scala = "3.10.0" diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index 5a7030f2b..8f975a706 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -1651,6 +1651,14 @@ + + + + + + + + From d647b9615014cc99486c49c991c648e63aa47e4f Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 29 Nov 2026 10:42:19 -0600 Subject: [PATCH 05/16] java(deps[dev]): Update CycloneDX to 3.6.1 why: Published modules attach a CycloneDX inventory of runtime dependencies. 3.6.0 retains SPDX license expressions from Maven POMs. 3.6.1 tracks changes in the resolved graph so an existing inventory is regenerated when dependency versions or relationships change. what: - Update the SBOM plugin and its verified dependencies. See also: - https://github.com/CycloneDX/cyclonedx-gradle-plugin/releases/tag/cyclonedx-gradle-plugin-3.6.0 - https://github.com/CycloneDX/cyclonedx-gradle-plugin/releases/tag/cyclonedx-gradle-plugin-3.6.1 --- gradle/libs.versions.toml | 2 +- gradle/verification-metadata.xml | 61 ++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 21a3fdef0..7bc38a0e5 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -15,7 +15,7 @@ errorprone-plugin = "5.2.0" spotless = "8.12.0" maven-publish-plugin = "0.37.0" palantir-format = "2.97.0" -cyclonedx-plugin = "3.5.1" +cyclonedx-plugin = "3.6.1" japicmp = "0.27.0" clojure = "1.12.6" core-async = "1.9.865" diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index 8f975a706..cd2036f3b 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -355,6 +355,11 @@ + + + + + @@ -494,6 +499,14 @@ + + + + + + + + @@ -559,6 +572,14 @@ + + + + + + + + @@ -605,6 +626,14 @@ + + + + + + + + @@ -653,6 +682,14 @@ + + + + + + + + @@ -1619,6 +1656,14 @@ + + + + + + + + @@ -3368,6 +3413,14 @@ + + + + + + + + @@ -3384,6 +3437,14 @@ + + + + + + + + From 54c024da3e2f31b97152f4a3e0d2fb309e75de5b Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 29 Nov 2026 10:45:31 -0600 Subject: [PATCH 06/16] java(deps): Update Clojure to 1.12.7 why: Clojure 1.12.7 disables Java serialization of functions by default. The facade and its core.async adapter use Clojure functions in-process. Their CLI and Gradle tests should exercise the same serialization policy as the published runtime. what: - Align the version catalog, CLI examples and adapter documentation. - Record the Clojure artifact checksums. See also: https://clojure.org/news/2026/11/18/clojure-1-12-7 --- deps.edn | 2 +- examples/api/clojure/deps.edn | 2 +- gradle/libs.versions.toml | 2 +- gradle/verification-metadata.xml | 8 ++++++++ libtmux-clojure/README.md | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/deps.edn b/deps.edn index fb2ff8a20..896c1be6c 100644 --- a/deps.edn +++ b/deps.edn @@ -1,5 +1,5 @@ {:paths ["libtmux-clojure/src/main/clojure"] - :deps {org.clojure/clojure {:mvn/version "1.12.6"} + :deps {org.clojure/clojure {:mvn/version "1.12.7"} io.github.libtmux/libtmux {:mvn/version "0.1.2-SNAPSHOT"}} :aliases {:test diff --git a/examples/api/clojure/deps.edn b/examples/api/clojure/deps.edn index 03fe2032f..b95236dec 100644 --- a/examples/api/clojure/deps.edn +++ b/examples/api/clojure/deps.edn @@ -1,6 +1,6 @@ {:paths ["src/main/clojure"] :mvn/local-repo "m2" - :deps {org.clojure/clojure {:mvn/version "1.12.6"} + :deps {org.clojure/clojure {:mvn/version "1.12.7"} io.github.libtmux/libtmux-clojure {:mvn/version "0.1.2-SNAPSHOT"}} :aliases {:core-async diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 7bc38a0e5..164bed7a3 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -17,7 +17,7 @@ maven-publish-plugin = "0.37.0" palantir-format = "2.97.0" cyclonedx-plugin = "3.6.1" japicmp = "0.27.0" -clojure = "1.12.6" +clojure = "1.12.7" core-async = "1.9.865" manifold = "0.5.0" picocli = "4.7.7" diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index cd2036f3b..9c1a7f9e3 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -3090,6 +3090,14 @@ + + + + + + + + diff --git a/libtmux-clojure/README.md b/libtmux-clojure/README.md index 21322084c..77182b553 100644 --- a/libtmux-clojure/README.md +++ b/libtmux-clojure/README.md @@ -116,7 +116,7 @@ not settled: any release may change or remove exported identifiers, and the changelog marks each break. Pin an exact version to avoid one. Only the newest release is supported, with no backports. The Clojure façade -is currently pre-release; CI tests Clojure 1.12.6 on JDK 25 and 27 against +is currently pre-release; CI tests Clojure 1.12.7 on JDK 25 and 27 against the supported tmux endpoints, 3.3a and 3.8. [Report a defect][contributing] with the tmux version, endpoint choice, and the smallest reproducer. From 1a51fca2cddc981654805ac2545680267ca7bf98 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 29 Nov 2026 10:45:34 -0600 Subject: [PATCH 07/16] java(deps): Use Scala 3.10.1 why: The facades expose Scala types in their signatures and compile against the JVM library from this release. The compiler fixes generic signatures for exported module accessors and pattern matching on sealed Java classes. The sbt consumer should exercise the same patch. what: - Update the Scala catalog and the staged sbt consumer. - Record the compiler and library artifact checksums. - The new E235 warning fails test fixture compilation under -Werror until the next commit preserves their catch and cleanup semantics. See also: https://github.com/scala/scala3/releases/tag/3.10.1 --- gradle/libs.versions.toml | 2 +- gradle/verification-metadata.xml | 149 +++++++++++++++++++++++++++++++ module-tests/sbt/build.sbt | 2 +- 3 files changed, 151 insertions(+), 2 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 164bed7a3..ea33bc442 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -27,7 +27,7 @@ testng-engine = "1.1.0" javapoet = "0.23.0" kotlinpoet = "2.4.0" dokka = "2.3.0" -scala = "3.10.0" +scala = "3.10.1" scalafmt = "3.11.5" munit = "1.3.6" cats-effect = "3.7.1" diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index 9c1a7f9e3..5e36f1100 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -1982,6 +1982,14 @@ + + + + + + + + @@ -5585,6 +5593,14 @@ + + + + + + + + @@ -5593,6 +5609,14 @@ + + + + + + + + @@ -5601,6 +5625,14 @@ + + + + + + + + @@ -5609,6 +5641,14 @@ + + + + + + + + @@ -5721,6 +5761,14 @@ + + + + + + + + @@ -5753,6 +5801,14 @@ + + + + + + + + @@ -5769,6 +5825,14 @@ + + + + + + + + @@ -5785,6 +5849,14 @@ + + + + + + + + @@ -5801,6 +5873,14 @@ + + + + + + + + @@ -5817,6 +5897,14 @@ + + + + + + + + @@ -5833,6 +5921,14 @@ + + + + + + + + @@ -5849,6 +5945,14 @@ + + + + + + + + @@ -5921,6 +6025,14 @@ + + + + + + + + @@ -5977,6 +6089,14 @@ + + + + + + + + @@ -6520,6 +6640,11 @@ + + + + + @@ -6536,6 +6661,14 @@ + + + + + + + + @@ -6552,6 +6685,14 @@ + + + + + + + + @@ -6568,6 +6709,14 @@ + + + + + + + + diff --git a/module-tests/sbt/build.sbt b/module-tests/sbt/build.sbt index 994d95b60..19a61fb97 100644 --- a/module-tests/sbt/build.sbt +++ b/module-tests/sbt/build.sbt @@ -5,7 +5,7 @@ val libtmuxVersion = sys.props.getOrElse("libtmux.version", sys.error("pass -Dlibtmux.version=")) val staging = file(sys.props.getOrElse("libtmux.staging", "../../build/staging-repository")) -ThisBuild / scalaVersion := "3.10.0" +ThisBuild / scalaVersion := "3.10.1" ThisBuild / scalacOptions ++= Seq("-release:25", "-deprecation", "-feature", "-Werror") ThisBuild / resolvers += "libtmux staging" at staging.getAbsoluteFile.toURI.toString From 0610e049e704710a8d855d29a783e1947ef4f834 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 29 Nov 2026 10:45:34 -0600 Subject: [PATCH 08/16] scala(test): Preserve fixture failure handling why: Scala 3.10.1 reports E235 for catching all throwables. Cleanup must release the daemon and registered handles even after interrupted operations or failed assertions. Test workers must also report their original failures to the waiting test thread. what: - Run the workers as FutureTasks, keeping the timeouts, interruption and unwrapping of exceptions. - Scope E235 suppressions to cleanup that intentionally catches every failure so subsequent cleanup still runs. See also: https://github.com/scala/scala3/pull/26794 --- .../examples/RunnableExamplesSuite.scala | 35 ++++++++++--------- .../libtmux/scaladsl/BatchChainSuite.scala | 17 +++------ .../scaladsl/OldDaemonControlSuite.scala | 6 ++-- .../libtmux/scaladsl/fixture/OwnedTmux.scala | 5 +++ 4 files changed, 32 insertions(+), 31 deletions(-) diff --git a/examples/src/test/scala/io/github/libtmux/scaladsl/examples/RunnableExamplesSuite.scala b/examples/src/test/scala/io/github/libtmux/scaladsl/examples/RunnableExamplesSuite.scala index 9e9f417f9..8c5d92d29 100644 --- a/examples/src/test/scala/io/github/libtmux/scaladsl/examples/RunnableExamplesSuite.scala +++ b/examples/src/test/scala/io/github/libtmux/scaladsl/examples/RunnableExamplesSuite.scala @@ -6,8 +6,12 @@ import io.github.libtmux.scaladsl.fixture.OwnedTmux import java.lang.reflect.InvocationTargetException import java.nio.charset.StandardCharsets import java.nio.file.{Files, Path} -import java.util.concurrent.{CountDownLatch, TimeUnit} -import java.util.concurrent.atomic.AtomicReference +import java.util.concurrent.{ + ExecutionException, + FutureTask, + TimeUnit, + TimeoutException +} import munit.FunSuite import scala.jdk.CollectionConverters._ import scala.jdk.OptionConverters._ @@ -140,24 +144,23 @@ object RunnableExamplesSuite { * A daemon, so a body that never returns cannot hold the JVM either. */ def run(name: String, body: () => Unit, deadlineMillis: Long): Unit = { - val failure = new AtomicReference[Throwable]() - val finished = new CountDownLatch(1) - val runner: Runnable = () => - try body() - catch { - case thrown: InvocationTargetException => failure.set(thrown.getCause) - case thrown: Throwable => failure.set(thrown) - } finally finished.countDown() + val runner = new FutureTask[Unit](() => body()) val thread = new Thread(runner, "example-" + name) thread.setDaemon(true) thread.start() - if (!finished.await(deadlineMillis, TimeUnit.MILLISECONDS)) { - thread.interrupt() - throw new AssertionError( - s"$name did not return within $deadlineMillis ms" - ) + try runner.get(deadlineMillis, TimeUnit.MILLISECONDS) + catch { + case _: TimeoutException => + thread.interrupt() + throw new AssertionError( + s"$name did not return within $deadlineMillis ms" + ) + case failure: ExecutionException => + failure.getCause match { + case wrapped: InvocationTargetException => throw wrapped.getCause + case cause => throw cause + } } - Option(failure.get).foreach(thrown => throw thrown) } } diff --git a/integration-tests/src/test/scala/io/github/libtmux/scaladsl/BatchChainSuite.scala b/integration-tests/src/test/scala/io/github/libtmux/scaladsl/BatchChainSuite.scala index e956535c7..c4904c187 100644 --- a/integration-tests/src/test/scala/io/github/libtmux/scaladsl/BatchChainSuite.scala +++ b/integration-tests/src/test/scala/io/github/libtmux/scaladsl/BatchChainSuite.scala @@ -18,7 +18,7 @@ import io.github.libtmux.transport.{ } import java.nio.file.Files import java.time.Duration -import java.util.concurrent.{CompletableFuture, ExecutionException, TimeUnit} +import java.util.concurrent.{ExecutionException, FutureTask, TimeUnit} import java.util.concurrent.atomic.AtomicInteger import munit.FunSuite import scala.jdk.CollectionConverters._ @@ -479,17 +479,8 @@ final class BatchChainSuite extends FunSuite { private def shell(text: String): String = "'" + text.replace("'", "'\"'\"'") + "'" - private def start[A](body: => A): (Thread, CompletableFuture[A]) = { - val result = new CompletableFuture[A]() - val worker = Thread - .ofPlatform() - .start(() => { - try result.complete(body) - catch { - case failure: Throwable => result.completeExceptionally(failure) - } - () - }) - (worker, result) + private def start[A](body: => A): (Thread, FutureTask[A]) = { + val result = new FutureTask[A](() => body) + (Thread.ofPlatform().start(result), result) } } diff --git a/integration-tests/src/test/scala/io/github/libtmux/scaladsl/OldDaemonControlSuite.scala b/integration-tests/src/test/scala/io/github/libtmux/scaladsl/OldDaemonControlSuite.scala index ee430dc9f..cc6a21c1b 100644 --- a/integration-tests/src/test/scala/io/github/libtmux/scaladsl/OldDaemonControlSuite.scala +++ b/integration-tests/src/test/scala/io/github/libtmux/scaladsl/OldDaemonControlSuite.scala @@ -8,6 +8,7 @@ import io.github.libtmux.scaladsl.cats.Control import java.nio.file.{Files, Path} import java.time.Duration import munit.FunSuite +import scala.annotation.nowarn import scala.concurrent.duration._ /** Attaching a Cats control client to a real daemon below the floor is refused @@ -69,8 +70,9 @@ final class OldDaemonControlSuite extends FunSuite { } } } finally { - try raw(daemon, socket, "kill-server") - catch { case _: Throwable => () } + // A failing kill-server assertion must still allow socket cleanup. + (try raw(daemon, socket, "kill-server") + catch { case _: Throwable => () }): @nowarn("id=E235") Files.deleteIfExists(socket) Files.deleteIfExists(root) } diff --git a/integration-tests/src/testFixtures/scala/io/github/libtmux/scaladsl/fixture/OwnedTmux.scala b/integration-tests/src/testFixtures/scala/io/github/libtmux/scaladsl/fixture/OwnedTmux.scala index 30dd0cc51..c52118ad3 100644 --- a/integration-tests/src/testFixtures/scala/io/github/libtmux/scaladsl/fixture/OwnedTmux.scala +++ b/integration-tests/src/testFixtures/scala/io/github/libtmux/scaladsl/fixture/OwnedTmux.scala @@ -11,6 +11,7 @@ import io.github.libtmux.junit5.NamedServerFixture import java.nio.file.{Files, LinkOption, Path} import java.time.Duration import java.util.concurrent.TimeUnit +import scala.annotation.nowarn import scala.collection.mutable.ArrayBuffer import scala.jdk.CollectionConverters._ import scala.util.Using @@ -60,6 +61,8 @@ private[scaladsl] final class OwnedTmux private ( val descendants = process.toVector.flatMap(OwnedTmux.descendants) var endpointReleased = false var failure: Throwable = null + // Release every owned handle before rethrowing the first failure. + @nowarn("id=E235") def attempt(body: => Unit): Unit = try body catch { @@ -139,6 +142,8 @@ private[scaladsl] object OwnedTmux { acquire(binary)(_ => ()) } + // Even a failed assertion can leave a daemon or a temporary directory. + @nowarn("id=E235") def acquire(binary: String)(afterAcquired: OwnedTmux => Unit): OwnedTmux = { require( !sys.env.contains("TMUX") && !sys.env.contains("TMUX_PANE"), From 2cd8714fdbd3bb445adf6adb835cd0901c15a81e Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 29 Nov 2026 10:45:39 -0600 Subject: [PATCH 09/16] java(deps): Use fs2 3.16.0 why: libtmux-scala-cats exposes observation streams through fs2-core. 3.15.0 was a failed upstream release. 3.16.0 adds onErrorEvalTap and chunk-aware grouping for streams. The adapter uses fs2-core and its subscription tests exercise stream cancellation. what: - Update fs2-core and the artifact verification entries it resolves. See also: - https://github.com/typelevel/fs2/releases/tag/v3.15.0 - https://github.com/typelevel/fs2/releases/tag/v3.16.0 --- gradle/libs.versions.toml | 2 +- gradle/verification-metadata.xml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index ea33bc442..b18372b46 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -31,7 +31,7 @@ scala = "3.10.1" scalafmt = "3.11.5" munit = "1.3.6" cats-effect = "3.7.1" -fs2 = "3.14.0" +fs2 = "3.16.0" ox = "1.1.0" [libraries] diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index 5e36f1100..a1c7787e8 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -29,6 +29,14 @@ + + + + + + + + From d1f402c812fbc258a6eb1315d1e0bd28faba95fd Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 29 Nov 2026 10:45:42 -0600 Subject: [PATCH 10/16] java(deps): Use Ox 1.1.1 why: The Scala Ox adapter exposes subscription events as Flow and runs them inside a supervised scope. 1.1.1 corrects thread counts and adds telemetry integration for Ox flows. what: - Update the public Ox core dependency and its verified artifacts. See also: https://github.com/softwaremill/ox/releases/tag/v1.1.1 --- gradle/libs.versions.toml | 2 +- gradle/verification-metadata.xml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index b18372b46..7dedfb479 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -32,7 +32,7 @@ scalafmt = "3.11.5" munit = "1.3.6" cats-effect = "3.7.1" fs2 = "3.16.0" -ox = "1.1.0" +ox = "1.1.1" [libraries] jspecify = { module = "org.jspecify:jspecify", version.ref = "jspecify" } diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index a1c7787e8..db81b3a92 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -1741,6 +1741,14 @@ + + + + + + + + From 0ca6c7dbc1b628bac2fbed1a6d4d23be11e24b44 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 29 Nov 2026 10:45:51 -0600 Subject: [PATCH 11/16] java(deps): Update the MCP Java SDK to 2.2.0 why: The server and its stdio clients share the core protocol and Jackson 2 mapper. The SDK adopts JSpecify nullness, fixes tool list filtering and resource-template notifications, and adds a separate stateless protocol API. This server uses the synchronous session API. The published SDK also moves Reactor from 3.7.0 to 3.9.0-RC1 for embedders and for the stdio launcher. what: - Update the MCP core and Jackson 2 artifacts through their shared catalog version and record the resolved dependency checksums. - The logging capability deprecation fails -Werror until the next commit keeps the existing negotiated session capability explicit. See also: https://github.com/modelcontextprotocol/java-sdk/releases/tag/v2.2.0 --- gradle/libs.versions.toml | 2 +- gradle/verification-metadata.xml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 7dedfb479..bd102c253 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -4,7 +4,7 @@ kotlin = "2.4.21" coroutines = "1.11.0" junit = "6.1.3" jackson = "2.23.0" -mcp = "2.1.0" +mcp = "2.2.0" re2j = "1.8" slf4j = "2.0.20" tomlj = "2.2.0" diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index db81b3a92..d9e98b227 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -2332,6 +2332,14 @@ + + + + + + + + @@ -2348,6 +2356,14 @@ + + + + + + + + @@ -2369,6 +2385,17 @@ + + + + + + + + + + + @@ -5250,6 +5277,9 @@ + + + From c8f146d99e2681ebad2082c5ef2d9867ef4c3195 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 29 Nov 2026 10:45:51 -0600 Subject: [PATCH 12/16] mcp(build): Keep session logging enabled why: The SDK deprecated initiating logging in the modern protocol. Peers of the existing session-based stdio server still negotiate its logging capability. Dropping that declaration would change the wire response to initialize. what: - Suppress the deprecation only on the logging capability builder so javac continues to enforce warnings on the rest of the server. See also: https://github.com/modelcontextprotocol/java-sdk/releases/tag/v2.2.0 --- .../java/io/github/libtmux/mcp/TmuxMcpServer.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/libtmux-mcp/src/main/java/io/github/libtmux/mcp/TmuxMcpServer.java b/libtmux-mcp/src/main/java/io/github/libtmux/mcp/TmuxMcpServer.java index b28292d66..954331dc0 100644 --- a/libtmux-mcp/src/main/java/io/github/libtmux/mcp/TmuxMcpServer.java +++ b/libtmux-mcp/src/main/java/io/github/libtmux/mcp/TmuxMcpServer.java @@ -126,14 +126,17 @@ private static McpSyncServer serving( } private static McpSyncServer build(Connection connection, McpServerTransportProvider transport) { + // Session-based clients can still negotiate logging during initialization. + @SuppressWarnings("deprecation") + var capabilities = McpSchema.ServerCapabilities.builder() + .tools(false) + .resources(false, false) + .logging() + .build(); var specification = McpServer.sync(new SerializedTransportProvider(transport)) .serverInfo("libtmux", version()) .instructions(Instructions.forServer(connection)) - .capabilities(McpSchema.ServerCapabilities.builder() - .tools(false) - .resources(false, false) - .logging() - .build()) + .capabilities(capabilities) .resources(Resources.fixed(connection)); for (ToolSpec tool : connection.surface().tools().values()) { From 96038faccb4c8b6036a6e000e9184505ef0cac8d Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 29 Nov 2026 11:46:14 -0600 Subject: [PATCH 13/16] Build(fix): Verify Jackson 2.22.3 parent POMs why: GitHub's Gradle dependency submission job validates the project with a fresh JDK 21 build. Constructing the build-logic classpath reads Jackson parent metadata before the job can submit a dependency snapshot. Both POMs come from the CycloneDX plugin's Jackson graph. what: - Pin the SHA-256 of jackson-base and jackson-dataformats-text 2.22.3, verified against the Plugin Portal and Maven Central downloads and both registries' published checksums. See also: https://github.com/libtmux/libtmux-java/actions/runs/46288347573/job/141426011820 --- gradle/verification-metadata.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index d9e98b227..1df1963d1 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -318,6 +318,11 @@ + + + + + @@ -740,6 +745,11 @@ + + + + + From 383c8a0a135c19eeccfc08b107675f527aaca604 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 29 Nov 2026 11:52:15 -0600 Subject: [PATCH 14/16] Build(fix): Verify Jackson 3.2.2 parent POMs why: Building the Clojure module's CycloneDX inventory with an empty Gradle dependency cache resolves the Jackson 3.2.2 parent POMs. Strict verification stopped release staging before it wrote any SBOM. what: - Pin jackson-base and jackson-dataformats-text 3.2.2 to SHA-256 values verified against the Maven Central and Gradle Plugin Portal downloads and their published checksum sidecars. --- gradle/verification-metadata.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index 1df1963d1..ff42a5bbf 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -6686,6 +6686,11 @@ + + + + + @@ -6783,6 +6788,11 @@ + + + + + From 2cc00c9e2c13d76c2a4597405e5be5141a2cfee4 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sat, 28 Nov 2026 12:40:42 -0800 Subject: [PATCH 15/16] mcp(deps): Publish Reactor 3.9.0 why: MCP SDK 2.2.0 requests Reactor 3.9.0-RC1. The module uses Reactor in its transport wrappers, and callers implementing the SDK transport need its types on their compile classpath. Reactor 3.9.0 shipped on November 20 with the same dependencies as the release candidate. what: - Declare Reactor 3.9.0 on the MCP module's API configuration. - Replace the RC1 verification entries with the GA checksums. All three match the Maven Central sidecars and independently downloaded files. - Verify that Gradle and Maven consumers of the staged module select GA on the compile and runtime classpaths while retaining MCP SDK 2.2.0. --- gradle/libs.versions.toml | 2 ++ gradle/verification-metadata.xml | 14 +++++++------- libtmux-mcp/build.gradle.kts | 5 +++-- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index bd102c253..9fb273f65 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -5,6 +5,7 @@ coroutines = "1.11.0" junit = "6.1.3" jackson = "2.23.0" mcp = "2.2.0" +reactor = "3.9.0" re2j = "1.8" slf4j = "2.0.20" tomlj = "2.2.0" @@ -46,6 +47,7 @@ jackson-databind = { module = "com.fasterxml.jackson.core:jackson-databind", ver jackson-yaml = { module = "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml", version.ref = "jackson" } mcp-core = { module = "io.modelcontextprotocol.sdk:mcp-core", version.ref = "mcp" } mcp-json-jackson2 = { module = "io.modelcontextprotocol.sdk:mcp-json-jackson2", version.ref = "mcp" } +reactor-core = { module = "io.projectreactor:reactor-core", version.ref = "reactor" } re2j = { module = "com.google.re2j:re2j", version.ref = "re2j" } slf4j-nop = { module = "org.slf4j:slf4j-nop", version.ref = "slf4j" } tomlj = { module = "org.tomlj:tomlj", version.ref = "tomlj" } diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index ff42a5bbf..541f21ac6 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -2395,15 +2395,15 @@ - - - + + + - - + + - - + + diff --git a/libtmux-mcp/build.gradle.kts b/libtmux-mcp/build.gradle.kts index 0d5abad53..1f22fefbd 100644 --- a/libtmux-mcp/build.gradle.kts +++ b/libtmux-mcp/build.gradle.kts @@ -28,6 +28,8 @@ dependencies { // On this module's own signature: serving() takes a transport provider and every entry point // returns the SDK's server, so compiling against this module means compiling against the SDK. api(libs.mcp.core) + // Callers implement the SDK transport with Reactor's Mono, which the server wrappers also use. + api(libs.reactor.core) implementation(libs.mcp.json.jackson2) implementation(libs.jackson.databind) @@ -35,8 +37,7 @@ dependencies { add(launcherRuntime.name, libs.slf4j.nop) - // Only to let javac fully resolve the JSR-305 annotations reactor-core's own Nullable class - // carries; io.projectreactor:reactor-core is a transitive runtime dependency of libs.mcp.core. + // Let javac resolve the JSR-305 annotations on Reactor's Nullable class. compileOnly(libs.jsr305) testCompileOnly(libs.jsr305) From bf3f8e9c78891e56723bdd5fffbd0cb08ff2a68b Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 29 Nov 2026 19:01:05 -0600 Subject: [PATCH 16/16] Changelog(docs): Record Clojure and MCP runtimes why: Applications embedding the MCP server resolve its runtime dependencies. Clojure 1.12.7 changes how functions can be serialized. what: Record the stable Reactor dependency of the server and launcher and Clojure's serialization default. --- libtmux-clojure/CHANGELOG.md | 5 +++++ libtmux-mcp/CHANGELOG.md | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/libtmux-clojure/CHANGELOG.md b/libtmux-clojure/CHANGELOG.md index 274d9683d..b42b3e787 100644 --- a/libtmux-clojure/CHANGELOG.md +++ b/libtmux-clojure/CHANGELOG.md @@ -12,6 +12,11 @@ CI, and release tooling, are in the [main changelog](../CHANGELOG.md). ## Unreleased +### Changed + +- **The facade uses Clojure 1.12.7.** The runtime rejects Java serialization + and deserialization of Clojure functions by default. + ### Added - **`libtmux-clojure` adds Clojure APIs over the Java engine.** Use captured diff --git a/libtmux-mcp/CHANGELOG.md b/libtmux-mcp/CHANGELOG.md index cbd9751bb..6ac826cfb 100644 --- a/libtmux-mcp/CHANGELOG.md +++ b/libtmux-mcp/CHANGELOG.md @@ -14,6 +14,12 @@ changelog](../CHANGELOG.md). ## Unreleased +### Changed + +- **`libtmux-mcp` and its stdio launcher use MCP Java SDK 2.2.0 and Reactor + Core 3.9.0.** Applications embedding the server get the same Reactor release + on their compile and runtime classpaths, up from 3.7.0. + ### Fixed - **`run_shell_command` waits for the shell of a pane created a moment ago.**