Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
Revert "feat: out of band diagnostics on local health check" (#6275)
Kian Jones0b24a8439005
diff --git a/Dockerfile b/Dockerfileindex 652c04898..7ac541918 100644--- a/Dockerfile+++ b/Dockerfile@@ -36,9 +36,7 @@ COPY pyproject.toml uv.lock ./# Then copy the rest of the application codeCOPY . .-RUN uv sync --frozen --no-dev --all-extras --python 3.11 && \- # Install py-spy for Python stack trace diagnostics- uv pip install py-spy+RUN uv sync --frozen --no-dev --all-extras --python 3.11# Runtime stageFROM ankane/pgvector:v0.5.1 AS runtime@@ -49,8 +47,6 @@ ARG NODE_VERSION=22RUN apt-get update && \# Install curl, Python, and PostgreSQL client librariesapt-get install -y curl python3 python3-venv libpq-dev && \- # Install diagnostic tools (gdb for stack traces, procps for ps/top, net-tools for netstat)- apt-get install -y gdb procps net-tools && \# Install Node.jscurl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - && \apt-get install -y nodejs && \@@ -86,10 +82,6 @@ COPY --from=builder /app .# Copy initialization SQL if it existsCOPY init.sql /docker-entrypoint-initdb.d/-# Copy diagnostic monitor script-COPY diagnostic_monitor.sh /app/diagnostic_monitor.sh-RUN chmod +x /app/diagnostic_monitor.sh-EXPOSE 8283 5432 4317 4318ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]diff --git a/letta/server/startup.sh b/letta/server/startup.shindex 665097980..5d8d736a2 100755--- a/letta/server/startup.sh+++ b/letta/server/startup.sh@@ -68,16 +68,11 @@ fi/usr/local/bin/otelcol-contrib --config "$CONFIG_FILE" &OTEL_PID=$!-# Start diagnostic monitor in background-echo "Starting diagnostic monitor..."-/app/diagnostic_monitor.sh 2>&1 | while IFS= read -r line; do echo "[DIAG] $line"; done &-DIAG_PID=$!-# Function to cleanup processes on exitcleanup() {echo "Shutting down..."- kill $OTEL_PID $DIAG_PID 2>/dev/null- wait $OTEL_PID $DIAG_PID 2>/dev/null+ kill $OTEL_PID+ wait $OTEL_PID}trap cleanup EXIT