Spaces:
Sleeping
Sleeping
Commit History
-
fix: critical compaction, buddy SVG sprites, session events, max_tokens
Claw Web- Compaction: preserve system prompt after compacting (was losing all instructions) - Compaction: dynamic threshold (70% of model context window, not hardcoded 10k) - Compaction: /compact slash command uses dynamic config + force-compact at >8 msgs - Buddy: real SVG sprite animations replacing emoji stubs (6 stages x 10 moods) - Buddy: session_completed event now emitted and handled for XP - Buddy: file_created passes actual line count - Agent: max_tokens clamped to 32000 (HuggingFace Router limit) - Settings: max_tokens slider max=32000, buttons=[4k,8k,16k,24k,32k] - useChat: forwards all buddy_event fields (toolCallCount, lines)37d6c24 -
feat: auto-compact on context overflow + proactive compaction + token tracking + buddy server events
Claw Web- Auto-compact on 400 context_length error (matches original conversation.rs) - Proactive compaction at 80% context window usage - Context usage SSE events (estimatedTokens, contextWindow, usagePercent) - Buddy events SSE from agent loop (tool_call, file_created) - useChat.ts handles context_usage, buddy_event, auto_compact SSE - useBuddyNotification.tsx listens for server-driven buddy-event CustomEvents - MODEL_CONTEXT_WINDOWS for known models - agentMessagesToSession/sessionToAgentMessages converters3705a49 -
feat: Full Buddy companion pet system (6 modules matching original)
Claw Web- buddy/types.ts: Full type system (BuddyState, BuddyStats, evolution stages, XP rewards) - buddy/sprites.ts: Sprite configs for 6 evolution stages x 10 moods - buddy/companion.ts: State management, leveling, XP, evolution, persistence, decay - buddy/prompt.ts: Personality, context-aware messages, 17 achievements - buddy/useBuddyNotification.tsx: React hook for state/notifications/events - buddy/index.ts: Barrel export - BuddySprite.tsx: Full UI with stats panel, achievements, notifications, interactions - Home.tsx: Integrated useBuddy hook with full props0544bf7