Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/components/extensions/extension-detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,12 @@ export function ExtensionDetail() {
(e) => e.cli_parent_id === group.instances[0]?.id && e.install_meta?.url,
)?.install_meta
: null;
// Fall back to pack (user-provided or backfilled) when no URL
// exists in install_meta or source — e.g. CLIs installed via
// curl that only have a manually entered pack like "org/repo".
const sourceUrl =
meta?.url_resolved ?? meta?.url ?? childMeta?.url_resolved ?? childMeta?.url ?? group.source.url;
meta?.url_resolved ?? meta?.url ?? childMeta?.url_resolved ?? childMeta?.url ?? group.source.url
?? (group.pack ? `https://github.com/${group.pack}` : null);
const repoPath = sourceUrl
? (() => {
const m = sourceUrl.match(/github\.com\/([^/]+\/[^/]+)/);
Expand Down
Loading