feat(logging): log full content - prompts, responses, tool I/O

- Log full message content instead of just hash
- Log full tool input arguments
- Log full tool output/results
- Add model info to session and token events

No privacy restrictions for internal monitoring.
This commit is contained in:
Oussama Douhou
2026-01-10 15:33:44 +01:00
parent 2ffc72f6f8
commit 6b68c0a926
12 changed files with 1150 additions and 15 deletions

46
start.sh Executable file
View File

@@ -0,0 +1,46 @@
#!/bin/bash
set -e
echo "🚀 Starting Oh My OpenCode Free - Custom Fork (Todo+Codebase Compaction)..."
if command -v docker &> /dev/null; then
CONTAINER_CMD="docker"
elif command -v podman &> /dev/null; then
CONTAINER_CMD="podman"
else
echo "❌ Neither Docker nor Podman found. Please install one of them."
exit 1
fi
echo "📦 Using $CONTAINER_CMD"
cd "$(dirname "$0")"
echo "🏗️ Building and starting OpenCode server container..."
$CONTAINER_CMD compose -f docker/docker-compose.yml up -d --build
echo "⏳ Waiting for server to start..."
sleep 5
# Check if server is running
if $CONTAINER_CMD ps | grep -q leader; then
echo "✅ OpenCode server is running!"
echo ""
echo "🌐 Server URL: http://localhost:8080"
echo ""
echo "📋 To attach from another terminal:"
echo " opencode attach http://localhost:8080"
echo ""
echo "🔍 To check server logs:"
echo " $CONTAINER_CMD logs leader"
echo ""
echo "🛑 To stop the server:"
echo " $CONTAINER_CMD compose -f docker/docker-compose.yml down"
echo ""
echo "🎯 Custom server is ready - Todo+Codebase compaction active!"
else
echo "❌ Failed to start server. Check logs:"
echo " docker logs leader"
exit 1
fi