Skip to content

[Bug] event-router.ts matchGlob doesn't handle brace expansion #1012

Closed

Description

@akramcodez

Description

The glob matching logic in the EventRouter relies on a simplistic implementation that fails on brace expansion and negation patterns.

Environment

  • Nanocoder version: 1.30.0 (main branch)

Steps to Reproduce

  1. Create a skill that subscribes to file changes using a brace expansion glob, e.g., *.{ts,tsx}.
  2. Edit a .tsx file.

Expected Behavior

The skill is triggered.

Actual Behavior

The skill is not triggered because matchGlob fails to parse the brace expansion.

Additional Context

  • I have searched existing issues to ensure this is not a duplicate
  • I can reproduce this issue consistently
  • This issue occurs with the latest version of nanocoder

Implementation Notes

In source/events/event-router.ts:106, there is a comment admitting that a swap to picomatch is pending. We should swap out the hand-rolled glob matching for picomatch to support standard glob features properly.

Activity

  1. added
    bug
    on Aug 28, 2026
  2. added a commit that references this issue on Aug 30, 2026
    122bec6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions