Skip to content

fix: resolve lint errors and fix infinite loop in NewSkillsDialog#15

Merged
RealZST merged 1 commit intomainfrom
fix/install-dialog-lint
Apr 13, 2026
Merged

fix: resolve lint errors and fix infinite loop in NewSkillsDialog#15
RealZST merged 1 commit intomainfrom
fix/install-dialog-lint

Conversation

@RealZST
Copy link
Copy Markdown
Owner

@RealZST RealZST commented Apr 13, 2026

Summary

  • Fixed same infinite re-render loop in NewSkillsDialog as fix: prevent infinite re-render loop in InstallDialog #13 fixed in InstallDialog (single detected agent triggers infinite loop)
  • Resolved all lint errors (47 → 0) and reduced warnings (17 → 12)
  • No functional changes beyond bug fixes — remaining changes are formatting and type safety improvements

Changes

Change Files Risk
Fix infinite loop (same as #13) new-skills-dialog.tsx Bug fix
Fix React hook ordering (hooks after early return) detail-cli-sections.tsx Bug fix
Add missing kindMap useMemo dependency audit.tsx Stale data fix
Remove unused variable extension-filters.tsx Cleanup
catch (e: any)catch (e: unknown) detail-header.tsx, new-skills-dialog.tsx, extension-store.ts Type safety
Remove unnecessary ! / <> wrapper delete-dialog.tsx, detail-cli-sections.tsx Cleanup
Fix assignment-in-expression onboarding.tsx Lint fix
Biome auto-formatting ~25 files Formatting only

Test plan

  • All 84 tests pass
  • TypeScript compiles with no errors
  • Lint errors reduced from 47 to 0

🤖 Generated with Claude Code

- Fix same infinite re-render loop in NewSkillsDialog as InstallDialog
  (useEffect with unstable detectedAgents dependency when single agent)
- Fix React hook ordering in CliSections (hooks called after early return)
- Add missing kindMap dependency to useMemo in audit page
- Remove unused extensions variable from ExtensionFilters
- Replace catch (e: any) with catch (e: unknown) for type safety
- Remove unnecessary Fragment wrapper and non-null assertions
- Fix assignment-in-expression lint warning in onboarding
- Apply biome auto-formatting across codebase

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@RealZST RealZST merged commit 7b90e56 into main Apr 13, 2026
3 checks passed
@RealZST RealZST deleted the fix/install-dialog-lint branch April 14, 2026 07:08
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