From 0768ed3b33e43df7de05c59017c997bb5e2960f5 Mon Sep 17 00:00:00 2001 From: TutkuEroglu Date: Mon, 22 Jun 2026 02:59:54 +0300 Subject: [PATCH] docs(agents): fix stale platform adapter path in token-lock note MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gateway/platforms/telegram.py no longer exists (adapters moved to plugins/platforms//adapter.py) and telegram no longer uses the scoped-lock pattern. Point the token-lock canonical-pattern reference to plugins/platforms/irc/adapter.py, which acquires the lock in connect() and releases it in disconnect() — and is already cited as a canonical example in ADDING_A_PLATFORM.md. Co-Authored-By: Claude Opus 4.8 (1M context) --- AGENTS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index eb769fa2502..30deedf5bf1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1175,7 +1175,7 @@ automatically scope to the active profile. a unique credential (bot token, API key), call `acquire_scoped_lock()` from `gateway.status` in the `connect()`/`start()` method and `release_scoped_lock()` in `disconnect()`/`stop()`. This prevents two profiles from using the same credential. - See `gateway/platforms/telegram.py` for the canonical pattern. + See `plugins/platforms/irc/adapter.py` for the canonical pattern. 6. **Profile operations are HOME-anchored, not HERMES_HOME-anchored** — `_get_profiles_root()` returns `Path.home() / ".hermes" / "profiles"`, NOT `get_hermes_home() / "profiles"`.