From 84891b592effa2caf54d69f4c5a50850a7822c6b Mon Sep 17 00:00:00 2001 From: Dominik Jain Date: Mon, 20 Apr 2026 14:51:37 +0200 Subject: [PATCH] Usage reporting: Include context name --- CHANGELOG.md | 3 ++- src/serena/agent.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f5357697..1be82cdc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,8 @@ Status of the `main` branch. Changes prior to the next official version change w - Fix: Project activation message was provided more than once for case of dynamic project activation followed by `initial_instructions` #1372 - Security: Forbid `".."` in memory names to disallow accessing files outside dedicated memory directories - - Security: Add check for tool being read-only in the project server (previously only checked in `query_project` tool, i.e. client side) + - Security: Add check for tool being read-only in the project server (previously only checked in `query_project` tool, i.e. client side) + - Usage reporting now also includes the name of the Serena context that is used * JetBrains: - `Move` and `SafeDelete` tools: transform empty string to None (counteracts client errors) diff --git a/src/serena/agent.py b/src/serena/agent.py index ddeb4307..3abc69be 100644 --- a/src/serena/agent.py +++ b/src/serena/agent.py @@ -485,6 +485,7 @@ class SerenaAgent: "dashboard": int(self.serena_config.web_dashboard), "version": self.version, "backend": self._language_backend.value, + "context": self._context.name, } try: requests.get("https://oraios-software.de/serena_usage.php", params=params, timeout=1)