feat: Refine Agent Editor and EditorManager for Enhanced UI and Configuration

- Updated the Agent Editor to improve model and host URL input handling, ensuring better user experience and configuration management.
- Added functionality to load the Gemini API key from the environment, providing users with a seamless way to configure their settings.
- Enhanced the EditorManager to update the agent editor dashboard and ensure the proposal drawer is always drawn, improving the overall UI flow and collaboration features.
This commit is contained in:
scawful
2025-10-05 04:10:15 -04:00
parent cbfed441ad
commit 12c2837c9a
2 changed files with 75 additions and 13 deletions

View File

@@ -551,8 +551,13 @@ absl::Status EditorManager::Update() {
}
#ifdef YAZE_WITH_GRPC
// Draw agent editor (includes chat widget and collaboration UI)
agent_editor_.Update();
// Update agent editor dashboard
status_ = agent_editor_.Update();
// Draw chat widget separately (always visible when active)
if (agent_editor_.GetChatWidget()) {
agent_editor_.GetChatWidget()->Draw();
}
#endif
// Draw background grid effects for the entire viewport
@@ -709,9 +714,10 @@ absl::Status EditorManager::Update() {
if (show_performance_dashboard_) {
gfx::PerformanceDashboard::Get().Render();
}
if (show_proposal_drawer_) {
proposal_drawer_.Draw();
}
// Always draw proposal drawer (it manages its own visibility)
proposal_drawer_.Draw();
#ifdef YAZE_WITH_GRPC
// Update ROM context for agent editor
if (current_rom_ && current_rom_->is_loaded()) {