Repository navigation
Add support for Async.AwaitEvent #4239
Description
Activity
- added a commit that references this issue
on Mar 30, 2026 github-actions commented
on Mar 30, 2026 on Mar 30, 2026 – with GitHub ActionsContributorMore actions🤖 This is an automated response from Repo Assist.
Investigation summary
Async.AwaitEventwas not implemented in the JS/TS runtime library (fable-library-ts/Async.ts). The compiler'sReplacements.fsalready handles the call site correctly — theasyncsfallthrough maps any unrecognisedAsyncmethod viaNaming.lowerFirst, soAwaitEvent→awaitEventwas already being emitted. Only the runtime function itself was missing.Implementation approach
I've submitted a draft PR (branch
repo-assist/fix-issue-4239-async-await-event) that:- Adds
awaitEvent<Del, T>(event, cancelAction?)toAsync.ts— registers a one-shot handler on the event, resolves theAsync(T)when it fires, and removes the handler on cancellation (calling the optionalcancelActionbefore raisingOperationCanceledException). - Adds a test case to
AsyncTests.fs.
The implementation follows the same pattern as
sleep: usesprotectedContandctx.cancelToken.addListenerfor cancellation support.Note: This only covers the JS/TS target. Other targets (Python, Dart, Rust, Beam) would need separate runtime implementations.
Note
🔒 Integrity filtering filtered 135 items
Integrity filtering activated and filtered the following items during workflow execution.
This happens when a tool call accesses a resource that does not meet the required integrity or secrecy level of the workflow.- #4393 (
list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".) - #4220 (
list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".) - #4166 (
list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".) - #4143 (
list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".) - #4104 (
list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".) - #4044 (
list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".) - #4038 (
list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".) - #3290 (
list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".) - #2279 (
list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".) - #2154 (
list_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".) - issue:Error doesn't show .fs line number #2052 (
list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".) - issue:Compile Error when referencing another project with
EntryPoint#2366 (list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".) - issue:simulate this Test Local Machine Timezone to fix this #2375 (
list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".) - issue:StackOverflow with Fable but not with fsc in release #2392 (
list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".) - issue:Inconsistencies with DateTime string formatting #2408 (
list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".) - issue:Explicit base constructor call not properly called #2425 (
list_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".) - ... and 119 more items
Generated by Repo Assist · ◷
To install this agentic workflow, run
gh aw add githubnext/agentics/workflows/repo-assist.md@346204513ecfa08b81566450d7d599556807389f- Adds