Save and use registry_owner for rating lookups on flat-dir tools
Tools in flat directories (no owner subdir) had no way to resolve the registry owner for rating API calls. This affected both own-published tools and admin-published official tools. - Publish dialog: save registry_owner from the publish response - Status sync worker: backfill registry_owner from hash-based lookup - get_tool_registry_info: check registry_owner before fallback_owner Existing tools get backfilled on next background sync. Co-Authored-By: Claude Opus 4.5 <[email protected]>
This commit is contained in:
@@ -658,6 +658,10 @@ class PublishDialog(QDialog):
|
||||
config_data = self._published_config.copy()
|
||||
config_data["registry_hash"] = config_hash
|
||||
config_data["registry_status"] = moderation_status
|
||||
# Save the registry owner so rating lookups work
|
||||
registry_owner = result.get("owner")
|
||||
if registry_owner:
|
||||
config_data["registry_owner"] = registry_owner
|
||||
# Clear any old feedback
|
||||
config_data.pop("registry_feedback", None)
|
||||
config_path.write_text(yaml.dump(config_data, default_flow_style=False, sort_keys=False))
|
||||
|
||||
Reference in New Issue
Block a user