feat: Langfuse observability, chat forking, Prompt Lab, and split-screen comparison#1040
Open
TerminallyLazy wants to merge 1 commit intoagent0ai:developmentfrom
Open
feat: Langfuse observability, chat forking, Prompt Lab, and split-screen comparison#1040TerminallyLazy wants to merge 1 commit intoagent0ai:developmentfrom
TerminallyLazy wants to merge 1 commit intoagent0ai:developmentfrom
Conversation
…-screen comparison Langfuse Observability: - Add langfuse_helper.py with client lifecycle management (init/flush/shutdown) - Add 10 agent lifecycle extensions for tracing (init, trace, iteration, generation, tool spans, utility calls, flush) - Add Observability settings tab with connection test endpoint - Add per-interaction trace viewer modal with drill-down into spans/generations - Migrate all extensions from Langfuse SDK v2 to v3 API Chat Forking: - Add fork_context() helper with serialization round-trip deep copy - Add /chat_fork API endpoint with optional truncation at fork point - Add forkChat() to frontend chats store with toast notifications - Add fork buttons to message action buttons and sidebar chat list - Add fork indicator icon for forked chats in sidebar Prompt Lab: - Add /prompt_refine endpoint with LLM-powered prompt variant generation - Add /prompt_judge endpoint with multi-criteria scoring (clarity/efficiency/fidelity/safety) - Add Prompt Lab modal with three-panel layout (original/editor/results) - Add refine-then-judge pipeline with variant cards and score display - Connect entry point from trace viewer's generation observations Split-Screen Comparison: - Add /chat_logs read-only endpoint for fetching logs from any context - Add split-view store with parallel log fetching, fork point detection, and polling - Add split-view component with shared (dimmed) vs divergent (highlighted) messages - Add compare button to sidebar for forked chats - Connect Prompt Lab's compareInSplitView() to split-screen overlay Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Details
Langfuse Observability
Chat Forking
Prompt Lab
Split-Screen Comparison
Files changed
40 files, +5,093 lines (26 new files, 14 modified)