Skip to content

Commit df428bb

Browse files
KJ-11claude
andcommitted
chore: trim over-explaining comments
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 0f5a5a4 commit df428bb

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

plugins/composio/hooks/session-start.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,8 @@ else
3333
cli_status="The local Composio CLI is available and signed in."
3434
fi
3535

36-
# Upgrade nudge: read the CLI's own 24h-throttled release cache — a local
37-
# file only, never the network. Nudge only for a plain X.Y.Z install that is
38-
# strictly older than a plain X.Y.Z latestVersion (the anchored closing quote
39-
# rejects prereleases instead of truncating them); anything missing or
40-
# malformed degrades to silence.
36+
# Upgrade nudge from the CLI's local release cache — never the network.
37+
# Stable X.Y.Z versions only; anything missing or malformed stays silent.
4138
update_cache="${HOME:-}/.composio/update-check.json"
4239
if [ -f "$update_cache" ]; then
4340
latest="$(sed -n 's/.*"latestVersion"[[:space:]]*:[[:space:]]*"\([0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}\)".*/\1/p' "$update_cache" 2>/dev/null | head -n 1)"

tests/test_package.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,7 @@ def test_readme_documents_the_combined_local_flow(self):
169169

170170
class HookBehaviorTests(unittest.TestCase):
171171
def run_hook(self, script, payload, tmpdir, path=None):
172-
# HOME is pinned to the sandbox so the upgrade-nudge cache read never
173-
# sees the developer's real ~/.composio/update-check.json.
172+
# HOME is pinned so tests never read the real ~/.composio.
174173
env = dict(os.environ, TMPDIR=tmpdir, HOME=tmpdir)
175174
if path is not None:
176175
env["PATH"] = path
@@ -272,8 +271,6 @@ def session_context(self, tmpdir, path):
272271
return json.loads(result.stdout)["hookSpecificOutput"]["additionalContext"]
273272

274273
def test_session_start_nudges_upgrade_for_older_stable_cli(self):
275-
# SessionStart compares `composio version` against the CLI's own
276-
# ~/.composio/update-check.json release cache (local file, no network).
277274
with tempfile.TemporaryDirectory() as tmpdir:
278275
self.write_update_cache(
279276
tmpdir,

0 commit comments

Comments
 (0)