Skip to content

fix: warn when user .ts adapters are silently skipped#951

Merged
jackwener merged 1 commit intomainfrom
fix/warn-ts-adapters
Apr 11, 2026
Merged

fix: warn when user .ts adapters are silently skipped#951
jackwener merged 1 commit intomainfrom
fix/warn-ts-adapters

Conversation

@jackwener
Copy link
Copy Markdown
Owner

Summary

  • Add warning when .ts adapter files are found in user's ~/.opencli/clis/ directory
  • Without this, users who created custom .ts adapters will see their commands silently disappear after upgrading to the JS-only version
  • Follows the same pattern as the existing YAML warning (line 192-194)

Context

Found by @codex-mini0 during release review. The .ts cleanup in #948 only handles official adapters with .js counterparts. User-created .ts adapters have no counterpart and were silently ignored with no warning.

Test plan

  • Create a .ts adapter in ~/.opencli/clis/demo/hello.ts, run opencli list — should see warning in stderr
  • .js adapters should continue to load normally

Users who created custom .ts adapters in ~/.opencli/clis/ will see
their commands silently disappear after upgrading to the JS-only
version. Add an explicit warning so they know to convert to .js.
@jackwener jackwener merged commit 0f90b42 into main Apr 11, 2026
11 checks passed
@jackwener jackwener deleted the fix/warn-ts-adapters branch April 11, 2026 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant