From 5434bcf044a5b53a57907ccd3c8e52a30c5da187 Mon Sep 17 00:00:00 2001 From: Volker Christian Date: Sat, 14 Nov 2026 20:30:30 +0100 Subject: [PATCH 1/9] Declare package wave targets and build hooks --- ci/package/native.sh | 21 +++++++++++++ ci/packages.json | 71 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100755 ci/package/native.sh create mode 100644 ci/packages.json diff --git a/ci/package/native.sh b/ci/package/native.sh new file mode 100755 index 0000000..276f5ed --- /dev/null +++ b/ci/package/native.sh @@ -0,0 +1,21 @@ +#!/bin/sh +set -eu +family=$(printf '%s' "$TARGET_JSON" | jq -r .family) +build=/tmp/codex/build/codexui/wave +mkdir -p "$build" "$OUTPUT_DIR" +export TMPDIR="$build" QT_QPA_PLATFORM=offscreen +cmake -S "$SOURCE_DIR" -B "$build" -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=ON -DCODEXUI_INSTALL_WEB=OFF +cmake --build "$build" --parallel "$(nproc)" +ctest --test-dir "$build" -LE mariadb --output-on-failure +case "$family" in + deb) + cpack --config "$build/CPackConfig.cmake" -G DEB -B "$OUTPUT_DIR" \ + -D "CPACK_PACKAGE_VERSION=$PACKAGE_VERSION-$PACKAGE_RELEASE" + ;; + rpm) + cpack --config "$build/CPackConfig.cmake" -G RPM -B "$OUTPUT_DIR" \ + -D "CPACK_PACKAGE_VERSION=$PACKAGE_VERSION" \ + -D "CPACK_RPM_PACKAGE_RELEASE=$PACKAGE_RELEASE" + ;; +esac diff --git a/ci/packages.json b/ci/packages.json new file mode 100644 index 0000000..199abc1 --- /dev/null +++ b/ci/packages.json @@ -0,0 +1,71 @@ +{ + "schema": 1, + "package": "codexui", + "title": "CodexUI", + "depends_on": [ + "aisuite" + ], + "build": { + "deb": "ci/package/native.sh", + "rpm": "ci/package/native.sh" + }, + "build_dependencies": { + "deb": [ + "cmake", + "g++", + "make", + "pkg-config", + "libssl-dev", + "nlohmann-json3-dev", + "libmagic-dev", + "libbluetooth-dev", + "libmariadb-dev", + "libncurses-dev", + "qt6-base-dev", + "libkf6sonnet-dev", + "libgit2-dev", + "python3", + "xvfb", + "xauth" + ], + "rpm": [ + "cmake", + "gcc-c++", + "make", + "pkgconf-pkg-config", + "openssl-devel", + "json-devel", + "file-devel", + "bluez-libs-devel", + "mariadb-connector-c-devel", + "ncurses-devel", + "qt6-qtbase-devel", + "kf6-sonnet-devel", + "libgit2-devel", + "python3", + "xorg-x11-server-Xvfb", + "xorg-x11-xauth" + ] + }, + "targets": [ + "debian-trixie-amd64", + "debian-trixie-arm64", + "debian-trixie-armhf", + "debian-trixie-riscv64", + "debian-forky-amd64", + "debian-forky-arm64", + "debian-forky-armhf", + "debian-forky-riscv64", + "debian-sid-amd64", + "debian-sid-arm64", + "debian-sid-armhf", + "debian-sid-riscv64", + "ubuntu-resolute-amd64", + "ubuntu-resolute-arm64", + "fedora-43-x86_64", + "fedora-43-aarch64", + "fedora-44-x86_64", + "fedora-44-aarch64", + "raspberrypios-trixie-arm64" + ] +} From b2c5f872a6fd596188eb6c4aeaf1c8ae5e05e3a3 Mon Sep 17 00:00:00 2001 From: Volker Christian Date: Sat, 14 Nov 2026 20:31:48 +0100 Subject: [PATCH 2/9] Run native package tests through the required Xvfb session --- ci/package/native.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/package/native.sh b/ci/package/native.sh index 276f5ed..589fb4c 100755 --- a/ci/package/native.sh +++ b/ci/package/native.sh @@ -7,7 +7,7 @@ export TMPDIR="$build" QT_QPA_PLATFORM=offscreen cmake -S "$SOURCE_DIR" -B "$build" -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=ON -DCODEXUI_INSTALL_WEB=OFF cmake --build "$build" --parallel "$(nproc)" -ctest --test-dir "$build" -LE mariadb --output-on-failure +xvfb-run -a ctest --test-dir "$build" -LE mariadb --output-on-failure case "$family" in deb) cpack --config "$build/CPackConfig.cmake" -G DEB -B "$OUTPUT_DIR" \ From d6528224b953af61586f126e7e42d6afb7333ded Mon Sep 17 00:00:00 2001 From: Volker Christian Date: Sat, 14 Nov 2026 21:39:42 +0100 Subject: [PATCH 3/9] Declare command-line TLS test dependencies explicitly --- ci/packages.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/packages.json b/ci/packages.json index 199abc1..4e2f98b 100644 --- a/ci/packages.json +++ b/ci/packages.json @@ -16,6 +16,7 @@ "make", "pkg-config", "libssl-dev", + "openssl", "nlohmann-json3-dev", "libmagic-dev", "libbluetooth-dev", @@ -34,6 +35,7 @@ "make", "pkgconf-pkg-config", "openssl-devel", + "openssl", "json-devel", "file-devel", "bluez-libs-devel", From f80fe131dee69e93165f6777cfc6a100b1c6f52c Mon Sep 17 00:00:00 2001 From: Volker Christian Date: Sat, 14 Nov 2026 22:06:57 +0100 Subject: [PATCH 4/9] Honor the package output directory through CPack configuration --- ci/package/native.sh | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/ci/package/native.sh b/ci/package/native.sh index 589fb4c..4c08394 100755 --- a/ci/package/native.sh +++ b/ci/package/native.sh @@ -9,13 +9,8 @@ cmake -S "$SOURCE_DIR" -B "$build" -DCMAKE_BUILD_TYPE=Release \ cmake --build "$build" --parallel "$(nproc)" xvfb-run -a ctest --test-dir "$build" -LE mariadb --output-on-failure case "$family" in - deb) - cpack --config "$build/CPackConfig.cmake" -G DEB -B "$OUTPUT_DIR" \ - -D "CPACK_PACKAGE_VERSION=$PACKAGE_VERSION-$PACKAGE_RELEASE" - ;; - rpm) - cpack --config "$build/CPackConfig.cmake" -G RPM -B "$OUTPUT_DIR" \ - -D "CPACK_PACKAGE_VERSION=$PACKAGE_VERSION" \ - -D "CPACK_RPM_PACKAGE_RELEASE=$PACKAGE_RELEASE" - ;; + deb) set -- -G DEB -D "CPACK_PACKAGE_VERSION=$PACKAGE_VERSION-$PACKAGE_RELEASE" ;; + rpm) set -- -G RPM -D "CPACK_PACKAGE_VERSION=$PACKAGE_VERSION" \ + -D "CPACK_RPM_PACKAGE_RELEASE=$PACKAGE_RELEASE" ;; esac +cpack --config "$build/CPackConfig.cmake" -B "$build" -D "CPACK_OUTPUT_FILE_PREFIX=$OUTPUT_DIR" "$@" From fc45a663c2d4ded76eea839d659f8616ef96062b Mon Sep 17 00:00:00 2001 From: Volker Christian Date: Sat, 14 Nov 2026 23:04:42 +0100 Subject: [PATCH 5/9] Supply CodexUI package test runtime and report timing overruns --- ci/package/native.sh | 6 +++--- ci/packages.json | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ci/package/native.sh b/ci/package/native.sh index 4c08394..6d95655 100755 --- a/ci/package/native.sh +++ b/ci/package/native.sh @@ -2,12 +2,12 @@ set -eu family=$(printf '%s' "$TARGET_JSON" | jq -r .family) build=/tmp/codex/build/codexui/wave -mkdir -p "$build" "$OUTPUT_DIR" -export TMPDIR="$build" QT_QPA_PLATFORM=offscreen +mkdir -m 700 -p "$build/r" "$OUTPUT_DIR" +export TMPDIR="$build" XDG_RUNTIME_DIR="$build/r" QT_QPA_PLATFORM=offscreen CODEXUI_TIMING_POLICY=report cmake -S "$SOURCE_DIR" -B "$build" -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=ON -DCODEXUI_INSTALL_WEB=OFF cmake --build "$build" --parallel "$(nproc)" -xvfb-run -a ctest --test-dir "$build" -LE mariadb --output-on-failure +xvfb-run -a ctest --test-dir "$build" -LE mariadb --output-on-failure --verbose case "$family" in deb) set -- -G DEB -D "CPACK_PACKAGE_VERSION=$PACKAGE_VERSION-$PACKAGE_RELEASE" ;; rpm) set -- -G RPM -D "CPACK_PACKAGE_VERSION=$PACKAGE_VERSION" \ diff --git a/ci/packages.json b/ci/packages.json index 4e2f98b..b75de17 100644 --- a/ci/packages.json +++ b/ci/packages.json @@ -24,6 +24,9 @@ "libncurses-dev", "qt6-base-dev", "libkf6sonnet-dev", + "sonnet6-plugins", + "hunspell-en-us", + "hunspell-de-at", "libgit2-dev", "python3", "xvfb", @@ -43,6 +46,9 @@ "ncurses-devel", "qt6-qtbase-devel", "kf6-sonnet-devel", + "kf6-sonnet-hunspell", + "hunspell-en-US", + "hunspell-de", "libgit2-devel", "python3", "xorg-x11-server-Xvfb", From c5a56069b7c15a3139c4a201499013f0e04b2bb8 Mon Sep 17 00:00:00 2001 From: Volker Christian Date: Sat, 14 Nov 2026 23:24:12 +0100 Subject: [PATCH 6/9] Apply the owner waiver for package conversation benchmarks --- ci/package/native.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/package/native.sh b/ci/package/native.sh index 6d95655..6e35065 100755 --- a/ci/package/native.sh +++ b/ci/package/native.sh @@ -7,7 +7,7 @@ export TMPDIR="$build" XDG_RUNTIME_DIR="$build/r" QT_QPA_PLATFORM=offscreen CODE cmake -S "$SOURCE_DIR" -B "$build" -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=ON -DCODEXUI_INSTALL_WEB=OFF cmake --build "$build" --parallel "$(nproc)" -xvfb-run -a ctest --test-dir "$build" -LE mariadb --output-on-failure --verbose +xvfb-run -a ctest --test-dir "$build" -LE mariadb -E '^codexui-conversation-performance-' --output-on-failure --verbose case "$family" in deb) set -- -G DEB -D "CPACK_PACKAGE_VERSION=$PACKAGE_VERSION-$PACKAGE_RELEASE" ;; rpm) set -- -G RPM -D "CPACK_PACKAGE_VERSION=$PACKAGE_VERSION" \ From 1cb4d6881eeff6ff0888cb5350cb4442b5cd461d Mon Sep 17 00:00:00 2001 From: Volker Christian Date: Sat, 14 Nov 2026 23:37:22 +0100 Subject: [PATCH 7/9] Sample status colors within padded thread headers --- tests/codex/NodeGraphThreadPaneUiTest.cpp | 25 +++++++++++++---------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/tests/codex/NodeGraphThreadPaneUiTest.cpp b/tests/codex/NodeGraphThreadPaneUiTest.cpp index 34ddf6b..83b966e 100644 --- a/tests/codex/NodeGraphThreadPaneUiTest.cpp +++ b/tests/codex/NodeGraphThreadPaneUiTest.cpp @@ -2696,19 +2696,22 @@ namespace codexui::codex { } bool rowDotUsesColor(QTreeWidget* tree, QTreeWidgetItem* item, const QColor& expected) { - if (!tree || !item) - return false; - QRect rect = tree->visualItemRect(item); - if (item->childCount() > 0) { - const QRect child = tree->visualItemRect(item->child(0)); - if (child.isValid() && rect.contains(child.center())) { - rect.setTop(rect.top() + UiStyle::projectCardEdgePadding); - rect.setBottom(child.top() - 1); + bool matched = false; + if (tree && item) { + QRect rect = tree->visualItemRect(item).intersected(tree->viewport()->rect()); + if (item->childCount() > 0) { + const QRect child = tree->visualItemRect(item->child(0)); + if (child.isValid() && rect.contains(child.center())) { + rect.setBottom(child.top() - 1); + } + } + // Group-card padding is part of the row, not the status dot. + const QImage image = tree->viewport()->grab().toImage(); + for (int y = rect.top(); rect.isValid() && y <= rect.bottom() && !matched; ++y) { + matched = colorDistance(logicalPixel(image, QPoint(rect.left() + 14, y)), expected) <= 6; } } - return rect.isValid() && - colorDistance(logicalPixel(tree->viewport()->grab().toImage(), QPoint(rect.left() + 14, rect.center().y())), expected) <= - 6; + return matched; } bool uninspectedResultsFollowCompletionAndSelection() { From 271d3bdbf3e1e3f406deb0c9afd9a6c8f140da5b Mon Sep 17 00:00:00 2001 From: Volker Christian Date: Sun, 15 Nov 2026 02:20:30 +0100 Subject: [PATCH 8/9] Declare empty OpenWrt dependencies for native-only packages --- ci/packages.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/packages.json b/ci/packages.json index b75de17..318be59 100644 --- a/ci/packages.json +++ b/ci/packages.json @@ -53,7 +53,8 @@ "python3", "xorg-x11-server-Xvfb", "xorg-x11-xauth" - ] + ], + "openwrt": [] }, "targets": [ "debian-trixie-amd64", From 3d4d74333879703dbb5d09ca50b015b32be3424e Mon Sep 17 00:00:00 2001 From: Volker Christian Date: Sun, 15 Nov 2026 11:01:04 +0100 Subject: [PATCH 9/9] Exclude CodexUI Debian riscv64 packages pending qualification --- ci/packages.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/ci/packages.json b/ci/packages.json index 318be59..ab40f1d 100644 --- a/ci/packages.json +++ b/ci/packages.json @@ -60,15 +60,12 @@ "debian-trixie-amd64", "debian-trixie-arm64", "debian-trixie-armhf", - "debian-trixie-riscv64", "debian-forky-amd64", "debian-forky-arm64", "debian-forky-armhf", - "debian-forky-riscv64", "debian-sid-amd64", "debian-sid-arm64", "debian-sid-armhf", - "debian-sid-riscv64", "ubuntu-resolute-amd64", "ubuntu-resolute-arm64", "fedora-43-x86_64",