The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
chore: upgrade managed tmux to 3.7c, restrict pkg-config paths, and disable jemalloc
0xken152ee4d8bf8e3f
diff --git a/.github/workflows/release-tmux-runtime.yml b/.github/workflows/release-tmux-runtime.ymlindex 74ee14bf7..ef77eea89 100644--- a/.github/workflows/release-tmux-runtime.yml+++ b/.github/workflows/release-tmux-runtime.yml@@ -7,8 +7,8 @@ name: Release tmux runtime# traps live in cli/scripts/build-managed-tmux.sh; publishing is desktop/scripts/publish-managed-# tmux-runtime.sh, a sibling of the Node publisher, writing harness/runtime/tmux/metadata.json.#-# gh workflow run release-tmux-runtime.yml -f tmux_version=3.5a # build + publish-# gh workflow run release-tmux-runtime.yml -f tmux_version=3.5a -f publish=false # build only, inspect the artifacts+# gh workflow run release-tmux-runtime.yml -f tmux_version=3.7c # build + publish+# gh workflow run release-tmux-runtime.yml -f tmux_version=3.7c -f publish=false # build only, inspect the artifacts## A macos-15 runner is Apple Silicon; the x64 archive is cross-built there and smoke-tested under# Rosetta by the build script itself. Nothing consumes the manifest until install.sh is taught to.@@ -19,7 +19,7 @@ on:tmux_version:description: 'tmux release to build (its sha256 is pinned in the build script)'required: true- default: '3.5a'+ default: '3.7c'publish:description: 'Upload the archives and rewrite harness/runtime/tmux/metadata.json'type: booleandiff --git a/cli/scripts/build-managed-tmux.sh b/cli/scripts/build-managed-tmux.shindex f9b085fc2..7c7f049b8 100755--- a/cli/scripts/build-managed-tmux.sh+++ b/cli/scripts/build-managed-tmux.sh@@ -29,7 +29,7 @@ case "$PLATFORM" inesac[ "$(uname -s)" = Darwin ] || { echo "error: the managed tmux is built on macOS" >&2; exit 1; }-TMUX_VERSION="${TMUX_VERSION:-3.5a}"+TMUX_VERSION="${TMUX_VERSION:-3.7c}"LIBEVENT_VERSION="${LIBEVENT_VERSION:-2.1.12-stable}"NCURSES_VERSION="${NCURSES_VERSION:-6.5}"@@ -39,7 +39,7 @@ LIBEVENT_SHA256="${LIBEVENT_SHA256:-92e6de1be9ec176428fd2367677e61ceffc2ee1cb119NCURSES_URL="https://invisible-mirror.net/archives/ncurses/ncurses-${NCURSES_VERSION}.tar.gz"NCURSES_SHA256="${NCURSES_SHA256:-136d91bc269a9a5785e5f9e980bc76ab57428f604ce3e5a5a90cebc767971cc6}"TMUX_URL="https://github.com/tmux/tmux/releases/download/${TMUX_VERSION}/tmux-${TMUX_VERSION}.tar.gz"-TMUX_SHA256="${TMUX_SHA256:-16216bd0877170dfcc64157085ba9013610b12b082548c7c9542cc0103198951}"+TMUX_SHA256="${TMUX_SHA256:-7c60cae9a0e25288e2e24750aafc9e8800fc7fd4555e447e1b29ee4201cfb3bf}"for command in curl tar shasum make cc codesign otool; docommand -v "$command" >/dev/null 2>&1 || { echo "error: $command is required" >&2; exit 1; }@@ -88,7 +88,10 @@ export CC=/usr/bin/clangexport CFLAGS="-arch $ARCH -O2 -isysroot $SDKROOT"export LDFLAGS="-arch $ARCH -isysroot $SDKROOT -L$DEPS/lib"export CPPFLAGS="-I$DEPS/include -I$DEPS/include/ncursesw"-export PKG_CONFIG_PATH="$DEPS/lib/pkgconfig"+# LIBDIR, not PATH: PATH is prepended to pkg-config's default search list, which on any Mac with+# Homebrew (every CI runner included) still finds /usr/local and /opt/homebrew — tmux 3.7 then+# linked an Intel Homebrew jemalloc. LIBDIR replaces the list, so only our own .pc files exist.+export PKG_CONFIG_LIBDIR="$DEPS/lib/pkgconfig"echo ">> libevent $LIBEVENT_VERSION"(@@ -136,7 +139,7 @@ echo ">> tmux $TMUX_VERSION"# without any macOS-unfriendly -static flag.LIBEVENT_CORE_CFLAGS="-I$DEPS/include" LIBEVENT_CORE_LIBS="-L$DEPS/lib -levent_core" \LIBTINFO_CFLAGS="-I$DEPS/include -I$DEPS/include/ncursesw" LIBTINFO_LIBS="-L$DEPS/lib -ltinfow" \- ./configure $HOST_FLAG --prefix="$STAGE" --disable-utf8proc >/dev/null+ ./configure $HOST_FLAG --prefix="$STAGE" --disable-utf8proc --disable-jemalloc >/dev/nullmake -j"$NPROC" >/dev/null 2>&1cp tmux "$STAGE/bin/tmux"cp COPYING "$STAGE/LICENSE.tmux"@@ -148,8 +151,8 @@ cp "$WORK/src/ncurses/COPYING" "$STAGE/LICENSE.ncurses"# here is notarized: curl sets no quarantine flag, so Gatekeeper never sees the binary.codesign -s - --force "$STAGE/bin/tmux" 2>/dev/null-# The whole point: nothing but the OS may be needed at run time — no package-manager library, and-# not the system's ncurses 5.4 either (see the tmux configure note above).+# The whole point: nothing but the OS may be needed at run time — no package-manager library (a+# Homebrew jemalloc, say), and not the system's ncurses 5.4 either (see the tmux configure note).if otool -L "$STAGE/bin/tmux" | tail -n +2 | grep -Ev '^\s+/usr/lib/lib(System\.B|resolv\.9|util)\.dylib '; thenecho "error: tmux links a library outside libSystem:" >&2otool -L "$STAGE/bin/tmux" >&2diff --git a/desktop/RELEASE.md b/desktop/RELEASE.mdindex a6d5976b7..2da2141f8 100644--- a/desktop/RELEASE.md+++ b/desktop/RELEASE.md@@ -70,14 +70,19 @@ read from macOS's own `/usr/share/terminfo`); the result links only `libSystem`signed. Its three macOS traps — the toolchain `clang` needing `SDKROOT`, tmux's configure silentlylinking the system ncurses 5.4 unless `LIBTINFO_LIBS` is explicit, and libevent's autoconf detectinga `pipe2` macOS does not have — are handled in the script and gated by `otool -L` and a real-`new-session` smoke test (under Rosetta for the x64 build).+`new-session` smoke test (under Rosetta for the x64 build). pkg-config is pointed at our own+`.pc` files only (`PKG_CONFIG_LIBDIR`) and jemalloc is disabled: with Homebrew on the build host —+every CI runner — tmux 3.7's configure otherwise picks up a Homebrew jemalloc. Keep the pinned tmux+level with what Homebrew ships (3.7c today): a tmux client and server must agree on their protocol,+and a managed client older than a Homebrew server on the same socket only says "server exited+unexpectedly".Publish from CI, never by hand unless rebuilding the same version:```bash-gh workflow run release-tmux-runtime.yml -f tmux_version=3.5a # build both, publish-gh workflow run release-tmux-runtime.yml -f tmux_version=3.5a -f publish=false # build only, inspect-make upload-tmux-runtime ARGS="3.5a /path/to/archives" # the publisher CI calls+gh workflow run release-tmux-runtime.yml -f tmux_version=3.7c # build both, publish+gh workflow run release-tmux-runtime.yml -f tmux_version=3.7c -f publish=false # build only, inspect+make upload-tmux-runtime ARGS="3.7c /path/to/archives" # the publisher CI calls```The manifest is `harness/runtime/tmux/metadata.json` — its own file, because `install.sh` slices a