mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-01 09:22:58 -05:00
Add the Agent Activity pane
A new pane, opened from View > Agent Activity or the Speed Dial, lists live what an AI agent and other automation (Action Replay, Run Script, the command line, plugins) do in OrcaSlicer while it is open: each call with its source, what it changed, failures with their reason, the steps of a run and the dialogs a rule answered. Opening a call shows its request and response with passwords, keys and typed text masked, so a person can watch and check what an agent is doing to their project.
This commit is contained in:
1 parent
eae8929b41
commit
5eefef82fc
71 files changed
+5320
-413
No files matched your search
@@ -89,6 +89,7 @@
|
||||
#include "PrintHostDialogs.hpp"
|
||||
#include "RecordingIndicator.hpp"
|
||||
#include "ActionReplayDialog.hpp"
|
||||
#include "AgentActivityPanel.hpp"
|
||||
#include "RunScriptPanel.hpp"
|
||||
#include "CodeEditorWindow.hpp"
|
||||
#include "NativeCommands.hpp"
|
||||
@@ -1378,6 +1379,8 @@ void MainFrame::shutdown()
|
||||
m_plugin_pages->shutdown();
|
||||
if (RunScriptPanel* panel = wxGetApp().run_script_panel_if_built())
|
||||
panel->main_window_closing();
|
||||
if (AgentActivityPanel* panel = wxGetApp().agent_activity_panel_if_built())
|
||||
panel->main_window_closing();
|
||||
if (m_plater != nullptr)
|
||||
m_plater->remove_dock_panes();
|
||||
#ifdef SLIC3R_CAD
|
||||
@@ -3701,6 +3704,15 @@ void MainFrame::init_menubar_as_editor()
|
||||
[]() { return wxGetApp().app_config->get("show_imex_toolhead_boxes") != "false"; },
|
||||
this);
|
||||
|
||||
append_menu_check_item(
|
||||
viewMenu, wxID_ANY, _L("Agent Activity"), _L("Show or hide the Agent Activity pane, which lists what automation does in the app"),
|
||||
[](wxCommandEvent&) { wxGetApp().agent_activity_panel().toggle(); }, this, []() { return true; },
|
||||
[]() {
|
||||
AgentActivityPanel* panel = wxGetApp().agent_activity_panel_if_built();
|
||||
return panel != nullptr && panel->on_screen();
|
||||
},
|
||||
this);
|
||||
|
||||
append_menu_item(
|
||||
viewMenu, wxID_ANY, _L("Reset Window Layout"), _L("Reset to default window layout"),
|
||||
[this](wxCommandEvent&) { m_plater->reset_window_layout(); }, "", this,
|
||||
|
||||
Reference in new issue
Block a user