feat(conductor): Restore mma_implementation track
This commit is contained in:
20
gui_2.py
20
gui_2.py
@@ -7,6 +7,7 @@ import json
|
||||
import sys
|
||||
import os
|
||||
import uuid
|
||||
import requests
|
||||
from pathlib import Path
|
||||
from tkinter import filedialog, Tk
|
||||
import aggregate
|
||||
@@ -300,6 +301,10 @@ class App:
|
||||
ai_client._gemini_cli_adapter = ai_client.GeminiCliAdapter(binary_path=self.ui_gemini_cli_path)
|
||||
else:
|
||||
ai_client._gemini_cli_adapter.binary_path = self.ui_gemini_cli_path
|
||||
|
||||
# Start hook server if not already running (required for bridge)
|
||||
if hasattr(self, 'hook_server'):
|
||||
self.hook_server.start()
|
||||
self.available_models = []
|
||||
self._fetch_models(value)
|
||||
|
||||
@@ -807,9 +812,12 @@ class App:
|
||||
if item in self._settable_fields:
|
||||
attr_name = self._settable_fields[item]
|
||||
setattr(self, attr_name, value)
|
||||
if item in ["current_provider", "current_model"]:
|
||||
ai_client.set_provider(self.current_provider, self.current_model)
|
||||
ai_client.reset_session()
|
||||
|
||||
if item == "gcli_path":
|
||||
if not ai_client._gemini_cli_adapter:
|
||||
ai_client._gemini_cli_adapter = ai_client.GeminiCliAdapter(binary_path=value)
|
||||
else:
|
||||
ai_client._gemini_cli_adapter.binary_path = value
|
||||
|
||||
elif action == "click":
|
||||
item = task.get("item")
|
||||
@@ -1325,17 +1333,17 @@ class App:
|
||||
# ---- Menubar
|
||||
if imgui.begin_main_menu_bar():
|
||||
if imgui.begin_menu("manual slop"):
|
||||
if imgui.menu_item("Quit", "Ctrl+Q")[0]:
|
||||
if imgui.menu_item("Quit", "Ctrl+Q", False)[0]:
|
||||
self.should_quit = True
|
||||
imgui.end_menu()
|
||||
|
||||
if imgui.begin_menu("View"):
|
||||
for name in self.show_windows:
|
||||
_, self.show_windows[name] = imgui.menu_item(name, None, self.show_windows[name])
|
||||
_, self.show_windows[name] = imgui.menu_item(name, "", self.show_windows[name])
|
||||
imgui.end_menu()
|
||||
|
||||
if imgui.begin_menu("Project"):
|
||||
if imgui.menu_item("Save All", "Ctrl+S")[0]:
|
||||
if imgui.menu_item("Save All", "Ctrl+S", False)[0]:
|
||||
self._flush_to_project()
|
||||
self._save_active_project()
|
||||
self._flush_to_config()
|
||||
|
||||
Reference in New Issue
Block a user