fix(monitor): use global console channel and implement shard filtering #87

Merged
Philipp merged 3 commits from fix/shard-monitoring into main 2026-05-16 22:29:25 +02:00
Owner

This PR fixes the issue where console monitoring was empty when a specific shard was targeted on the official Screeps server.

Changes:

  • Unified Subscription: Changed WebSocket subscription path from shard/console (invalid) to the global console channel.
  • Shard Filtering: Implemented client-side filtering in handleConsoleEvent to only display logs matching the targeted shard.
  • Precise Timing: Retained the shard-specific api.time() call for accurate tick duration tracking.
  • Tests: Added and updated 48 unit tests verifying the fix and shard filtering logic.
  • Distribution: Rebuilt dist/index.js and bumped version to v0.2.1.
This PR fixes the issue where console monitoring was empty when a specific shard was targeted on the official Screeps server. ### Changes: - **Unified Subscription**: Changed WebSocket subscription path from `shard/console` (invalid) to the global `console` channel. - **Shard Filtering**: Implemented client-side filtering in `handleConsoleEvent` to only display logs matching the targeted shard. - **Precise Timing**: Retained the shard-specific `api.time()` call for accurate tick duration tracking. - **Tests**: Added and updated 48 unit tests verifying the fix and shard filtering logic. - **Distribution**: Rebuilt `dist/index.js` and bumped version to `v0.2.1`.
Philipp added 1 commit 2026-05-16 20:33:15 +02:00
fix(monitor): use global console channel and implement shard filtering
Lint / pre-commit Linting (push) Successful in 56s
Test / Run Tests (push) Successful in 1m8s
5fbc4606d3
CODEOWNERS rules requested review from AutoReview 2026-05-16 20:33:15 +02:00
Philipp added 1 commit 2026-05-16 21:51:05 +02:00
test: Fix monitor tests artifact mock and timeouts
Lint / pre-commit Linting (push) Successful in 45s
Test / Run Tests (push) Successful in 1m4s
05fe8a3dcd
Philipp added 1 commit 2026-05-16 22:23:54 +02:00
fix: downgrade @actions/artifact to v1 for Gitea compatibility
Lint / pre-commit Linting (push) Successful in 51s
Test / Run Tests (push) Successful in 1m19s
1874e823e3
Philipp merged commit 076e96f3de into main 2026-05-16 22:29:25 +02:00
Philipp deleted branch fix/shard-monitoring 2026-05-16 22:29:25 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Screeps/screeps-deploy-action#87