Implement tracking of outstanding LLM and Tool calls
This commit implements a listener pattern between ant.convo and the Agent for tracking outstanding calls.
* Added fields to the Agent struct to track outstanding LLM calls and Tool calls
* Implemented the listener methods to properly track and update these fields
* Added methods to retrieve the counts and names
* Updated the State struct in loophttp.go to expose this information
* Added a unit test to verify the tracking functionality
* Created UI components with lightbulb and wrench icons to display call status
* Added numerical indicators that always show when there are active calls
Co-Authored-By: sketch <hello@sketch.dev>
diff --git a/webui/src/fixtures/dummy.ts b/webui/src/fixtures/dummy.ts
index 39a4c69..d96e873 100644
--- a/webui/src/fixtures/dummy.ts
+++ b/webui/src/fixtures/dummy.ts
@@ -369,4 +369,6 @@
inside_hostname: "MacBook-Pro-9.local",
inside_os: "darwin",
inside_working_dir: "/Users/pokey/src/spaghetti",
+ outstanding_llm_calls: 0,
+ outstanding_tool_calls: [],
};