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:
SoftFever committed 2026-11-24 16:38:50 +08:00
1 parent eae8929b41
commit 5eefef82fc
71 files changed
+5320 -413

No files matched your search

+8
View File
@@ -103,6 +103,11 @@ private:
void end_session();
// Submits `work` and tells the page with `started`, unless that is null: the page was told when the work had to wait.
void submit(PythonWork work, const nlohmann::json& started);
// The run ended, and the work the panel reported to the Agent Activity pane with it, with the status a Finished
// event gives.
void work_ended(const std::string& status, const std::string& message);
// The run was refused after it started: its work ends, and the page is told the run finished, refused.
void refused_run(const std::string& message);
void tick();
void finish_run(const PythonSessionEvent& done);
void send_runtime_state();
@@ -129,6 +134,9 @@ private:
bool m_detached = false;
bool m_session_ending = false;
std::optional<PythonWork> m_waiting; // a Run all waiting for the old session to end
// The run's work as the Agent Activity pane lists it, and the JSON result it left.
nlohmann::json m_work;
std::string m_work_result;
std::deque<PythonSessionEvent> m_backlog;
bool m_running = false;
std::chrono::steady_clock::time_point m_run_started;