fix: OpenClaw integration - #31
Conversation
SafeDep Report SummaryNo dependency changes detected. Nothing to scan. This report is generated by SafeDep Github App |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #31 +/- ##
==========================================
- Coverage 10.80% 10.80% -0.01%
==========================================
Files 194 194
Lines 22813 22836 +23
==========================================
+ Hits 2466 2468 +2
- Misses 20035 20056 +21
Partials 312 312 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟡 "Already installed" check returns early without writing new required manifest and package.json files
When InstallHooks detects that the plugin file (index.ts) already exists and contains "invokeGryph", it returns early at line 80 with a success warning, skipping the manifest and package.json writes at lines 127-137. This means that users upgrading from a previous gryph version (which didn't deploy these files) will get a misleading "already installed" success, while GetHookStatus (agent/openclaw/hooks.go:234-244) will report the installation as invalid due to the missing openclaw.plugin.json and package.json. The only workaround is gryph install --force, but users won't know this unless they run gryph status.
Suggested fix approach
The "already installed" check should also verify that the manifest and package.json exist. If they are missing, the install should proceed to write them (or at least the missing files) rather than returning early.
Was this helpful? React with 👍 or 👎 to provide feedback.
There was a problem hiding this comment.
🟡 UninstallHooks with RestoreBackup leaves manifest file behind
When UninstallHooks is called with RestoreBackup, it only restores the plugin file (index.ts) and returns early at line 160 without removing the gryph-specific manifest file (openclaw.plugin.json). This leaves a gryph artifact in the plugin directory even though the intent of restore-uninstall is to return to the pre-gryph state. The manifest was never backed up during install (only the plugin file was), so there's nothing to restore for it — it should simply be removed.
Was this helpful? React with 👍 or 👎 to provide feedback.



Uh oh!
There was an error while loading. Please reload this page.