Skip to content

[Fix] Remove unused variable causing lint error in headlessToolRuntime#592

Merged
Power-Maverick merged 1 commit into
devfrom
copilot/fix-build-error
Jun 30, 2026
Merged

[Fix] Remove unused variable causing lint error in headlessToolRuntime#592
Power-Maverick merged 1 commit into
devfrom
copilot/fix-build-error

Conversation

Copilot AI commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

CI was failing on the lint step due to an unused variable in headlessToolRuntime.ts. The getPowerPlatformManager helper was defined but never called — Power Platform requests already access services.powerPlatformManager directly via requestPowerPlatform.

Summary

Removes the dead getPowerPlatformManager closure from buildHeadlessToolboxApi to fix the @typescript-eslint/no-unused-vars lint error breaking CI.

Type of change

  • New feature
  • Bug fix
  • Refactor (no functional change)
  • Documentation
  • Chore / maintenance (dependency update, build, config)
  • Test addition / improvement

Changes

  • src/main/mcp/headlessToolRuntime.ts — removed unused getPowerPlatformManager function (lines 294–299); services.powerPlatformManager is accessed directly in requestPowerPlatform already

Architecture checklist

Packages (types & validation)

  • Not applicable — no changes to packages/

Code quality

  • pnpm run typecheck passes with 0 errors (warnings are acceptable)
  • pnpm run lint passes with 0 errors (warnings are acceptable)
  • pnpm run build completes successfully

Testing

  • pnpm run test:unit passes (for changes to src/main/, src/common/, or src/renderer/ utilities)
  • pnpm run test:e2e passes (for UI / navigation / end-to-end flows)
  • Manually tested in the running app (pnpm run dev)

Scenario tested: No functional change — dead code removal only.

Breaking changes

  • No breaking changes

Reviewer notes

Purely mechanical removal of dead code. No logic change.

  • I have added appropriate unit and/or e2e tests for this change
  • I have resolved all GitHub Copilot review comments
  • I have followed the guidelines in CONTRIBUTING.md

@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown

✅ PR Checklist

All required checklist items are complete. This PR is ready for review.

@github-actions

Copy link
Copy Markdown

Bundle Size Report 📦

Bundle Size
Main Process 1.31 MB
Renderer JS 582.32 KB
Renderer CSS 99.77 KB
Total 1.97 MB

Bundle Analysis Reports

The detailed bundle analysis reports are available in the workflow artifacts:

  • 📊 Main Process: stats-main.html
  • 📊 Renderer Process: stats-renderer.html

Download the artifacts from the workflow run to view interactive visualizations.


Bundle size tracking is now active! This helps prevent bundle bloat.

@Power-Maverick Power-Maverick marked this pull request as ready for review June 30, 2026 21:50
@Power-Maverick Power-Maverick merged commit dc25102 into dev Jun 30, 2026
6 of 14 checks passed
@Power-Maverick Power-Maverick deleted the copilot/fix-build-error branch June 30, 2026 21:50
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.

3 participants