Skip to content

fix: enhance headless run functionality with timeout handling#40

Open
NisargIO wants to merge 9 commits intomainfrom
fix/le-ci-cd
Open

fix: enhance headless run functionality with timeout handling#40
NisargIO wants to merge 9 commits intomainfrom
fix/le-ci-cd

Conversation

@NisargIO
Copy link
Copy Markdown
Member

Added support for handling HeadlessRunTimeoutError in the runHeadless function. Introduced a new utility function to check for this specific error type and updated the execution flow to capture analytics for session and run failures. Improved error logging and ensured proper cleanup after execution.

Added support for handling HeadlessRunTimeoutError in the runHeadless function. Introduced a new utility function to check for this specific error type and updated the execution flow to capture analytics for session and run failures. Improved error logging and ensured proper cleanup after execution.
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
expect Ready Ready Preview, Comment Mar 27, 2026 2:55am

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 26, 2026

Open in StackBlitz

npm i https://pkg.pr.new/expect-cli@40

commit: e374cde

Added a new utility function to describe various ACP session updates, improving the clarity of logged information. Integrated this functionality into the runHeadless and Executor classes to provide real-time feedback on session activities. Enhanced logging in the AcpClient to capture session creation and prompt dispatch details.
Updated the CLI layers to conditionally use a logger layer based on verbosity settings, improving logging flexibility. Added a new character limit for verbose ACP raw text logging in the run-test utility, ensuring that lengthy messages are truncated for better readability. Enhanced the description of ACP session updates to include raw logging when verbose mode is enabled.
})
.pipe(Effect.catchCause(() => Effect.void));
yield* analytics.flush.pipe(Effect.catchCause(() => Effect.void));
return yield* error;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return yield* error;
return yield* error.asEffect();

Missing .asEffect() conversion when re-throwing HeadlessRunTimeoutError in catch handler causes type mismatch in Effect.gen generator

Fix on Vercel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant