Refactor Ralph session rotation with watchdog and stall detection (#170)

* Improve scroll-to-bottom UI and session status handling

* Enhance Ralph service with session rotation and watchdog

* Add tests for Ralph session rotation and cleanup

* Add Kasm Docker build workflow
This commit is contained in:
Chris Scott authored and GitHub committed 2026-03-24 17:36:35 -04:00
1 parent 4ad6c5fd25
commit 27352ea5cf
11 files changed
+502 -25

No files matched your search

+50
View File
@@ -62,3 +62,53 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max
target: runner
build-kasm:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get latest tool versions
id: versions
run: |
UV_VERSION=$(git ls-remote --tags --sort=-v:refname https://github.com/astral-sh/uv.git 'refs/tags/[0-9]*' | head -1 | sed 's/.*refs\/tags\///')
OPENCODE_VERSION=$(curl -s https://api.github.com/repos/anomalyco/opencode/releases/latest | sed -n 's/.*"tag_name": *"\([^"]*\)".*/\1/p')
echo "uv=${UV_VERSION}" >> $GITHUB_OUTPUT
echo "opencode=${OPENCODE_VERSION}" >> $GITHUB_OUTPUT
- name: Docker meta (Kasm)
id: meta-kasm
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=semver,pattern={{version}},suffix=-kasm
type=semver,pattern={{major}}.{{minor}},suffix=-kasm
type=raw,value=latest-kasm
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push (Kasm)
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.kasm
platforms: linux/amd64
push: true
tags: ${{ steps.meta-kasm.outputs.tags }}
labels: ${{ steps.meta-kasm.outputs.labels }}
build-args: |
UV_VERSION=${{ steps.versions.outputs.uv }}
OPENCODE_VERSION=${{ steps.versions.outputs.opencode }}
cache-from: type=gha
cache-to: type=gha,mode=max