Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
fd9a4fa
ci: Fix Release Version Resolution for Untagged and Resumed Runs (#233)
lia-by-librechat[bot] Sep 18, 2026
54aca92
feat: Route GitHub App credentials per repository (#236)
danny-avila Sep 19, 2026
dc48249
fix: Authenticate GitHub App bot identity lookup (#237)
danny-avila Sep 19, 2026
277fa77
feat: Advertise Workspace Command Timeout Ceiling (#238)
danny-avila Sep 19, 2026
95ebbd3
🌳 feat: Provision Conversation-Scoped Code Worktrees (#239)
danny-avila Sep 20, 2026
c8b3e14
fix: Close native scratch directory streams (#240)
danny-avila Sep 20, 2026
67d75d8
feat(code): route trusted VM GitHub App tokens by checkout (#248)
danny-avila Sep 23, 2026
cf0e668
🧹 fix: Await Job Cleanup and Measure Retained Resources (#249)
lia-by-librechat[bot] Sep 25, 2026
b03582a
feat: Allow Installation-Scoped GitHub Tokens for Trusted Workers (#263)
danny-avila Sep 27, 2026
6732988
⏳ fix: Let BYOM Workspace Calls Queue Past Thirty Seconds (#264)
lia-by-librechat[bot] Sep 27, 2026
2a31002
🔐 feat: Recover Code API Machine Credentials After Outages (#260)
lia-by-librechat[bot] Sep 28, 2026
337ddd6
⏳ fix: Honor Workspace Queue Budgets Per Request (#265)
danny-avila Sep 28, 2026
5b71e8c
fix: deduplicate files by destination before sandbox validation (#247)
proseer-lars Sep 28, 2026
1634027
🛤️ feat: Schedule Linked Worktrees as Their Own Workspace Lanes (#270)
danny-avila Sep 29, 2026
dbb8477
🛡️ fix: Guard Linked-Worktree Lanes Against Accidental Git Pruning (#…
lia-by-librechat[bot] Sep 29, 2026
3189cfd
🔓 fix: Let Linked-Worktree Lanes Commit When the Checkout Lives in th…
danny-avila Sep 29, 2026
1e683ce
🎯 feat: Diagnose Every Failing Workspace Edit and Negotiate Tolerant …
danny-avila Sep 30, 2026
836d001
🛡️ fix: Deny a Non-Lane Root's Own Git Metadata in the Native SRT San…
danny-avila Sep 30, 2026
05bad85
🧷 test: Retain the Contention Lock Owner Through Garbage Collection (…
lia-by-librechat[bot] Oct 2, 2026
e46fca4
🪟 feat: Preserve Command Output Heads and Tails (#275)
lia-by-librechat[bot] Oct 2, 2026
3db2584
♻️ feat: Reuse Verified Environment Preparation (#286)
danny-avila Oct 2, 2026
42a7fcd
🧰 feat: Share Explicit Environment Tool Resources (#287)
danny-avila Oct 2, 2026
cdb457d
📦 feat: Restore Isolated Dependency Snapshots (#288)
danny-avila Oct 2, 2026
572ccba
feat: Bound Managed Environment Storage (#289)
danny-avila Oct 2, 2026
a9528bc
🔬 feat: Begin the OpenShell Backend Evaluation Track (#282)
lia-by-librechat[bot] Oct 2, 2026
032a93f
feat: Retire Stale Linked Worktrees Automatically (#299)
danny-avila Oct 3, 2026
d6ac1b6
fix: Report Missing Workspace Paths as NOT_FOUND and Create Missing P…
danny-avila Oct 3, 2026
893ad36
feat: Quote the Current Text Where a Missing Workspace Edit Belongs (…
danny-avila Oct 3, 2026
961777e
feat: Persist Workspace Admission Across API Restarts (#302)
lia-by-librechat[bot] Oct 4, 2026
192f61c
📖 feat: Stream Bounded Workspace File Reads (#303)
lia-by-librechat[bot] Oct 4, 2026
e829f75
🗂️ fix: Guard Lane Worktree Registration (#304)
lia-by-librechat[bot] Oct 4, 2026
829992a
🛡️ fix: Harden Sandbox Startup and Internal Transports (#305)
lia-by-librechat[bot] Oct 4, 2026
e68fae8
🐳 ci: Publish Code API Images to GHCR (#307)
danny-avila Oct 5, 2026
4b2b8e1
fix: block sandbox descriptor passing into unix socket gc (#309)
danny-avila Oct 5, 2026
2318ba0
feat: replace tool-call sockets with anonymous pipes (#310)
danny-avila Oct 5, 2026
4401420
🧵 fix: Replace Runtime Socketpairs With Anonymous Pipes (#312)
danny-avila Oct 5, 2026
26d1ab8
🌿 feat: Report Lane Git Branch And Head On Command Results (#311)
berry-13 Oct 5, 2026
68c9f93
fix: Relay Loopback Resolvers Into KVM Guests (#314)
danny-avila Oct 5, 2026
a62d69e
🔒 Harden Runner Supervisors with Anonymous Pipes (#315)
danny-avila Oct 6, 2026
c854ab5
test: check parent-side nsjail startup failure (#318)
danny-avila Oct 6, 2026
58a023d
fix: resolve packaged pipe addon inside guests (#336)
dustinhealy Oct 17, 2026
1d3955c
🧭 feat: Add Guided Worker Setup And Saved Profiles (#339)
lia-by-librechat[bot] Oct 21, 2026
9ac42e4
🔑 feat: Recover Enrolled Worker Credentials On Startup (#341)
lia-by-librechat[bot] Oct 21, 2026
a3207a7
🪪 feat: Add Key-Bound Browser Enrollment And Resumable Setup (#342)
lia-by-librechat[bot] Oct 22, 2026
0eb6c2d
📑 feat: Add Standalone File Extraction Service (#306)
lia-by-librechat[bot] Oct 22, 2026
91efebe
Merge upstream/main into fork
ThabangLenonyana Oct 22, 2026
3d29af8
feat(sandbox): close skill package gaps and expose /etc-backed config…
ThabangLenonyana Oct 22, 2026
3f19a5d
feat(sandbox): SANDBOX_ALLOW_UNIX_SOCKETS opt-in for LibreOffice
ThabangLenonyana Oct 22, 2026
56c0c6c
ci(ecr): drop duplicated control-plane comment
ThabangLenonyana Oct 22, 2026
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
35 changes: 35 additions & 0 deletions .github/scripts/image-revision.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/usr/bin/env bash
# Prints the org.opencontainers.image.revision label of an image reference.
# Used by .github/workflows/images.yml, which must tell a missing tag apart
# from a registry that cannot answer.
#
# Exit 0 the revision was printed.
# Exit 3 the tag does not exist, or this token may not read it (a token that
# may not read a repository may not write to it either).
# Exit 1 the registry did not answer after retries, or the image has no
# revision label.
set -uo pipefail

ref=${1:?usage: image-revision.sh REF}
attempts=${IMAGE_REVISION_ATTEMPTS:-3}
err=$(mktemp)
trap 'rm -f "$err"' EXIT

for attempt in $(seq 1 "$attempts"); do
if json=$(docker buildx imagetools inspect "$ref" --format '{{ json .Image }}' 2>"$err"); then
if jq -er 'if has("config") then . else .["linux/amd64"] end
| .config.Labels["org.opencontainers.image.revision"]' <<<"$json"; then
exit 0
fi
echo "$ref has no revision label" >&2
exit 1
fi
if grep -qiE ': not found$|denied|\b40[134]\b' "$err"; then
exit 3
fi
cat "$err" >&2
if [ "$attempt" -lt "$attempts" ]; then
sleep $(( attempt * 5 ))
fi
done
exit 1
195 changes: 195 additions & 0 deletions .github/scripts/resolve-release-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
#!/usr/bin/env bash

# Resolves which version a release run publishes, or decides that it publishes
# nothing, and records the decision in $GITHUB_OUTPUT. Extracted from
# .github/workflows/release.yml so the four entry paths — an automatic release
# after CI, a rerun resuming a release whose tag was already cut, a dispatch,
# and a pushed tag — are covered by tests/release-version-resolution.sh.
#
# Inputs arrive as environment variables, mirroring the workflow's env block:
#
# EVENT_NAME github.event_name
# HEAD_SHA github.event.workflow_run.head_sha
# INPUT_VERSION github.event.inputs.version
# INPUT_DRAFT github.event.inputs.draft
# REF_NAME github.ref_name
# REF_TYPE github.ref_type
# GH_TOKEN a token `gh release view` can read releases with
#
# Outputs: skip, and for a real release version, app_version, chart_version,
# prerelease, latest, draft. Run from the repository root; the chart fields are
# read from helm/codeapi/Chart.yaml relative to it.

set -euo pipefail

EVENT_NAME="${EVENT_NAME:-}"
HEAD_SHA="${HEAD_SHA:-}"
INPUT_VERSION="${INPUT_VERSION:-}"
INPUT_DRAFT="${INPUT_DRAFT:-}"
REF_NAME="${REF_NAME:-}"
REF_TYPE="${REF_TYPE:-}"
GITHUB_OUTPUT="${GITHUB_OUTPUT:?GITHUB_OUTPUT must name the step output file}"

STABLE_TAG_PATTERN='^v[0-9]+[.][0-9]+[.][0-9]+$'

# `grep` exits 1 when nothing matches, and under `pipefail` that would abort the
# step. A commit with no stable tag is the ordinary state of `main`, so a
# no-match reads as an empty answer while a genuine grep failure — exit 2 and
# above — still fails the release.
select_stable_tags() {
local status=0
grep -E "$STABLE_TAG_PATTERN" || status=$?
[ "$status" -le 1 ]
}

# Highest stable tag among those `git tag` selects, empty when there are none.
newest_stable_tag() {
git tag "$@" | select_stable_tags | sort -V | tail -n 1
}

# The commit a tag resolves to. The caller first verifies that the ref exists,
# so a failure here means the tag ultimately names a non-commit object.
tag_commit() {
git rev-parse -q --verify "refs/tags/$1^{commit}"
}

SKIP=false
VERSION=""
HEAD_COMMIT=""

if [ "$EVENT_NAME" = "workflow_run" ]; then
HEAD_COMMIT="$(git rev-parse HEAD)"
if [ "$HEAD_COMMIT" != "$HEAD_SHA" ]; then
echo "::error::Checked out SHA does not match the successful CI run"
exit 1
fi

REMOTE_MAIN_SHA="$(git ls-remote origin refs/heads/main | awk '{print $1}')"
if [ -z "$REMOTE_MAIN_SHA" ]; then
echo "::error::Could not resolve the current main branch tip"
exit 1
fi
if [ "$REMOTE_MAIN_SHA" != "$HEAD_SHA" ]; then
echo "main advanced after this CI run; the newer successful run will release the combined changes"
SKIP=true
fi

# A rerun after tag creation but before release publication resumes the
# missing release rather than incrementing the version again.
EXACT_TAG="$(newest_stable_tag --points-at HEAD)"
if [ "$SKIP" = "false" ] && [ -n "$EXACT_TAG" ]; then
if gh release view "$EXACT_TAG" >/dev/null 2>&1; then
echo "$EXACT_TAG already publishes this commit; nothing to do"
SKIP=true
else
VERSION="$EXACT_TAG"
fi
elif [ "$SKIP" = "false" ]; then
PREVIOUS_TAG="$(newest_stable_tag --merged HEAD)"
if [ -z "$PREVIOUS_TAG" ]; then
echo "::error::Automatic releases require an existing stable vMAJOR.MINOR.PATCH tag"
exit 1
fi
VERSION="$(.github/scripts/next-release-version.sh "$PREVIOUS_TAG" "$PREVIOUS_TAG..HEAD")"
if [ -z "$VERSION" ]; then
echo "Only documentation, workflow, or test files changed since $PREVIOUS_TAG; no release needed"
SKIP=true
fi
fi
elif [ "$EVENT_NAME" = "workflow_dispatch" ]; then
# Releases describe what shipped to main. Dispatching from a topic branch
# would tag a commit that is not on the release line.
if [ "$REF_TYPE" != "branch" ] || [ "$REF_NAME" != "main" ]; then
echo "::error::Releases must be cut from main; this run is on '$REF_NAME'"
exit 1
fi
VERSION="$INPUT_VERSION"
else
VERSION="$REF_NAME"
fi

if [ "$SKIP" = "true" ]; then
echo "skip=true" >> "$GITHUB_OUTPUT"
exit 0
fi

# A bare "2.0.0" typed into the dispatch box is accepted; everything downstream
# works with the v-prefixed form the tag actually uses.
case "$VERSION" in
v*) ;;
*) VERSION="v$VERSION" ;;
esac

if [[ ! "$VERSION" =~ ^v[0-9]+[.][0-9]+[.][0-9]+(-rc[0-9]+)?$ ]]; then
echo "::error::Release tags must be v<major>.<minor>.<patch> or v<major>.<minor>.<patch>-rcN, for example v1.0.0 or v1.1.0-rc1 (got '$VERSION')"
exit 1
fi

if [ "$EVENT_NAME" = "workflow_run" ]; then
# A tag already pointing at this commit is the resumed release above, and the
# publish steps tolerate it. Only a tag on some other commit is a collision.
if git show-ref --verify --quiet "refs/tags/$VERSION"; then
if ! EXISTING_TAG_COMMIT="$(tag_commit "$VERSION")"; then
echo "::error::Calculated tag $VERSION already exists but does not point to a commit"
exit 1
fi
if [ "$EXISTING_TAG_COMMIT" != "$HEAD_COMMIT" ]; then
echo "::error::Calculated tag $VERSION already exists on a different commit"
exit 1
fi
fi
fi

read_chart_field() {
grep -m1 "^$1:" helm/codeapi/Chart.yaml \
| sed -E "s/^$1:[[:space:]]*//; s/[[:space:]]*#.*//; s/^[\"']//; s/[\"']\$//"
}
APP_VERSION="$(read_chart_field appVersion)"
CHART_VERSION="$(read_chart_field version)"

if [ "$EVENT_NAME" = "workflow_dispatch" ] \
&& git rev-parse -q --verify "refs/tags/$VERSION" >/dev/null; then
echo "::error::Tag $VERSION already exists. Pick a new version, or delete the tag if it was cut in error."
exit 1
fi

case "$VERSION" in
*-rc*) PRERELEASE=true ;;
*) PRERELEASE=false ;;
esac

# `latest` moves only when this is the highest stable version, so re-cutting an
# older patch cannot drag it backwards. The tag under dispatch does not exist
# yet, hence adding it to the comparison.
LATEST=false
if [ "$PRERELEASE" = "false" ]; then
HIGHEST_STABLE="$(
{
git tag --list 'v[0-9]*'
printf '%s\n' "$VERSION"
} \
| select_stable_tags \
| sort -V \
| tail -n 1
)"
if [ "$HIGHEST_STABLE" = "$VERSION" ]; then
LATEST=true
fi
fi

DRAFT=false
if [ "$INPUT_DRAFT" = "true" ]; then
DRAFT=true
fi

{
echo "skip=false"
echo "version=$VERSION"
echo "app_version=$APP_VERSION"
echo "chart_version=$CHART_VERSION"
echo "prerelease=$PRERELEASE"
echo "latest=$LATEST"
echo "draft=$DRAFT"
} >> "$GITHUB_OUTPUT"

echo "Releasing $VERSION (chart $CHART_VERSION, appVersion $APP_VERSION, prerelease=$PRERELEASE, latest=$LATEST, draft=$DRAFT)"
Loading
Loading