Skip to content

Use one guarded pub/sub helper for the in-process event buses #321

Open

Description

@abhishekgahlot2

The thread, org, native and canonical signal modules each build a keyed EventEmitter bus. Thread and org guard listeners; native and canonical do not, so a throwing listener can interrupt publication.

Where to start

  1. Add one small keyed pub/sub helper (subscribe returns an unsubscribe, publish never throws, a throwing listener is logged with its key).
  2. Move the thread, org, native and canonical signal modules onto it, keeping their exported functions the same.
  3. Add a unit test: a throwing listener does not stop other listeners or throw into publish.

Code to look at:

Done when

  • backend/src/runs/thread-signals.ts, org-signals.ts, native-events.ts and canonical-events.ts no longer create their own EventEmitter.
  • The new test passes and existing stream tests pass unchanged.

Free to try

Sign up free at app.useagent.org. New accounts get free model credits (GLM or Claude Opus, up to a limit) and free cloud sandbox time, enough to finish this task without paying or adding a key.

Send it a small task in plain words and watch it work. You'll see the screens this issue is about. The link in the sign-up email works for 24 hours. Not there? Check spam.

Stuck? Comment here with a screenshot and we'll help.

Keep private details out of here

This page is public. Don't post your real email, phone number, address, payment details, API keys, or screenshots that show any of them. Send anything private, including how you'd like to be paid, to [email protected] with a link to your comment here.

Claim it

Comment /take and the issue is assigned to you. First come, first served.

Rules

  • Use the app while you work, and put before and after screenshots or a short recording in your pull request. For backend or docs work, show the result end to end.
  • One change per pull request. Run the checks in CONTRIBUTING.md.
  • AI help is fine, blind AI output is not. You must understand, run and explain every line you submit.
  • Untested or generated pull requests, and pull requests on an issue someone else claimed, are closed without a reply and don't count for Hacktoberfest.

Activity

  1. added
    enhancement
    help wanted
    hacktoberfest
    on Oct 17, 2026
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

    enhancementhacktoberfesthelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions