Repository navigation
Description
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
- Add one small keyed pub/sub helper (subscribe returns an unsubscribe, publish never throws, a throwing listener is logged with its key).
- Move the thread, org, native and canonical signal modules onto it, keeping their exported functions the same.
- Add a unit test: a throwing listener does not stop other listeners or throw into publish.
Code to look at:
backend/src/worker-events.ts:9backend/src/runs/native-events.ts:29backend/src/runs/canonical-events.ts:31backend/src/runs/thread-signals.ts:30backend/src/runs/org-signals.ts:41
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