Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 8, 2025

Description

Removed 11 commented-out export statements from packages/connect/src/api/index.ts that referenced non-existent API modules:

  • cancel, dispose, init, manifest, off, on, removeAllListeners, uiResponse
  • disableWebUSB, renderWebUSBButton

These functions are implemented via factory dependencies in factory.ts, not as standalone API modules. The corresponding implementation files never existed in the api/ directory. Two lines incorrectly referenced composeTransaction instead of the actual function names.

Type definitions in packages/connect/src/types/api/ remain unchanged and are correctly used in the TrezorConnect interface.

Notes for QA

No user-facing changes. The removed exports were already commented out and non-functional.

Related Issue

Resolve #[issue_number]

Screenshots:

N/A

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • data.trezor.io
    • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/trezor-suite/trezor-suite/node_modules/jest-worker/build/workers/processChild.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Identify any dead code in the app and delete it.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Remove dead code from the application Remove dead code: commented-out exports in connect API Dec 8, 2025
Copilot AI requested a review from komret December 8, 2025 13:17
Copilot finished work on behalf of komret December 8, 2025 13:17
Copy link
Contributor

@komret komret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

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.

2 participants