conductor(checkpoint): Phase 4: Execution and Modals Simulation complete

This commit is contained in:
2026-02-25 00:00:28 -05:00
parent 536f8b4f32
commit e8959bf032
4 changed files with 118 additions and 2 deletions

View File

@@ -270,13 +270,16 @@ class App:
'current_provider': 'current_provider',
'current_model': 'current_model',
'token_budget_pct': '_token_budget_pct',
'token_budget_label': '_token_budget_label'
'token_budget_label': '_token_budget_label',
'show_confirm_modal': 'show_confirm_modal'
}
self._clickable_actions = {
'btn_reset': self._handle_reset_session,
'btn_gen_send': self._handle_generate_send,
'btn_md_only': self._handle_md_only,
'btn_approve_script': self._handle_approve_script,
'btn_reject_script': self._handle_reject_script,
'btn_project_save': self._cb_project_save,
'btn_disc_create': self._cb_disc_create,
}
@@ -537,6 +540,20 @@ class App:
except Exception as e:
print(f"Error executing GUI task: {e}")
def _handle_approve_script(self):
"""Logic for approving a pending script."""
if self.show_confirm_modal:
self.show_confirm_modal = False
if self.pending_script_callback:
self.pending_script_callback(True)
def _handle_reject_script(self):
"""Logic for rejecting a pending script."""
if self.show_confirm_modal:
self.show_confirm_modal = False
if self.pending_script_callback:
self.pending_script_callback(False)
def _handle_reset_session(self):
"""Logic for resetting the AI session."""
ai_client.reset_session()