mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-21 08:15:23 -04:00
[PR #23] [MERGED] Fixed various frontend issues #125
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/vxcontrol/pentagi/pull/23
Author: @asdek
Created: 3/27/2025
Status: ✅ Merged
Merged: 3/27/2025
Merged by: @asdek
Base:
master← Head:bug/fixes_frontend_issues📝 Commits (3)
336f068fix: issue with handling flow deletion logice0b8932fix: issue this reaching context limit in reporter agent0a6f78efix: a lot of issues in UI, update configuration and improve logging in various components📊 Changes
24 files changed (+794 additions, -274 deletions)
View changed files
📝
.gitignore(+1 -0)📝
backend/pkg/controller/flow.go(+3 -0)📝
backend/pkg/graph/schema.resolvers.go(+12 -7)📝
backend/pkg/providers/provider.go(+14 -0)📝
frontend/src/App.tsx(+1 -1)📝
frontend/src/components/RouteChangeTracker.tsx(+6 -1)📝
frontend/src/components/Terminal.tsx(+257 -69)📝
frontend/src/components/ui/textarea.tsx(+1 -1)📝
frontend/src/features/chat/ChatAgents.tsx(+26 -12)📝
frontend/src/features/chat/ChatForm.tsx(+14 -1)📝
frontend/src/features/chat/ChatMessage.tsx(+31 -20)📝
frontend/src/features/chat/ChatMessages.tsx(+30 -14)📝
frontend/src/features/chat/ChatScreenshots.tsx(+11 -4)📝
frontend/src/features/chat/ChatSidebar.tsx(+22 -9)📝
frontend/src/features/chat/ChatSubtask.tsx(+6 -4)📝
frontend/src/features/chat/ChatTabs.tsx(+77 -10)📝
frontend/src/features/chat/ChatTask.tsx(+20 -11)📝
frontend/src/features/chat/ChatTasks.tsx(+17 -7)📝
frontend/src/features/chat/ChatTools.tsx(+26 -12)📝
frontend/src/features/chat/ChatVectorStores.tsx(+25 -12)...and 4 more files
📄 Description
Description of the Change
Problem
The application suffers from several issues that affect performance and stability:
Solution
Completely refactored the Terminal component with:
Improved flow deletion in backend:
Implemented context size limits:
Fixed TypeScript errors:
UI improvements:
Type of Change
Areas Affected
Testing and Verification
Test Configuration
Test Steps
Test Results
The application shows significant improvements:
Security Considerations
No significant security implications. The changes focus on internal component behavior and error handling rather than security-sensitive areas.
Performance Impact
Performance measurements show substantial improvements:
Documentation Updates
Deployment Notes
The VS Code launch configuration has been updated to enable Langfuse and OpenTelemetry by default. Users should be aware that these services will be activated automatically after deployment.
Checklist
Code Quality
go fmtandgo vet(for Go code)npm run lint(for TypeScript/JavaScript code)Security
Compatibility
Documentation
Additional Notes
The Terminal component refactoring was particularly challenging due to complex interactions between XTerm.js addons and React lifecycle. The new implementation focuses on defensive programming with careful resource management and proper state tracking to prevent memory leaks.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.