Skip to content

Conversation

@joeyguerra
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings December 31, 2025 21:49
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug where robot.logger methods would fail if called before the Shell adapter's run() method initializes the readline interface. The fix moves the logger method overrides from the constructor to the run() method, after the readline interface is created.

Key changes:

  • Moved logger method setup from constructor to run() method in Shell adapter
  • Converted local variables to private class fields for log levels and priorities
  • Added test case to verify logging works before adapter initialization

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/adapters/Shell.mjs Refactored logger setup to occur in run() method after readline initialization; converted logger configuration variables to private fields
test/Shell_test.mjs Added test case to verify logging before adapter initialization doesn't throw errors

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@joeyguerra joeyguerra merged commit c9e78e0 into main Dec 31, 2025
6 of 7 checks passed
@joeyguerra joeyguerra deleted the logger-fix branch December 31, 2025 22:13
@github-actions
Copy link

🎉 This PR is included in version 13.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants