Skip to content

Port the closed-session error, the session-control fixture rule, and LaunchOptions.Headed (upstream #1734) - #1697

Merged
kblok merged 2 commits into
mainfrom
fix/1678-core-closed-session-headed
Nov 16, 2026
Merged

kblok merged 2 commits into
mainfrom
fix/1678-core-closed-session-headed

Conversation

@kblok

@kblok kblok commented Nov 16, 2026

Copy link
Copy Markdown
Member

Closes #1678

Ports the part of upstream e2e-inc/e2e#1734 (commit dbe3dc5) that #1667's port left out.

  • An operation on a closed session fails with CANCELLED and the session is closed (E2ESessionOptions.Closed, upstream StandaloneSessionOptions.closed; AttemptBudget throws it once the session ended, as upstream's readOperation throws the abort reason).
  • EngineManifest.DefineEngine refuses a fixture named close, saveState, or setDefaultTimeout with INVALID_CONFIG (upstream SESSION_CONTROLS).
  • LaunchOptions.Headed, carried through StandaloneHostOptions.Headed to EnginePrepareInfo.Headed, EngineInitInfo.Headed, and the web engine's launch.
  • redactOpening moved out of OpenSession.cs into Run/RedactOpening.cs.
  • Docs, skill, and API pages updated.

Upstream parity

Upstream: tester-army/e2e dbe3dc5 (#1734). Verdict: complete, except the justified exception below.

  • Tests ported in full (the first was partial before): CoreTests.Says_a_closed_session_is_closed_and_redacts_a_secret_from_the_error_an_operation_throws; new DefineEngineTests.Refuses_a_fixture_named_like_a_method_of_an_e2e_dev_core_session.
  • Port-only symbols:
    • OpeningRedaction class: a C# member cannot share its type's name, so it holds upstream's redactOpening.
    • EngineStartOptions.Headed: the port does not call init per worker, so the session start carries it.
    • Headed on EnginePrepareInfo, EngineInitInfo, and PrepareScope is init with a default, not required, so existing constructions still compile.
  • No test for Headed: upstream has no it for it.
  • Not ported: engine-typed fixtures (Host<Fixtures>, Session<Fixtures>, Device on Session). Follow-up issue Core: engine-typed fixtures (Host<Fixtures>, Session<Fixtures>) and a Device member on Session (upstream #1734) #1696.
  • Local checks: built with -p:TargetFrameworks=net10.0; Core, OpenSession, and DefineEngine tests pass. Tests that launch a browser fail here because Chromium cannot be installed in this sandbox. The API reference pages were edited by hand because npm run api needs docfx, which is not available here. No real-model tests were run: the change does not touch the agent path beyond the session-end error.

Generated by Claude Code

…LaunchOptions.Headed (upstream #1734)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ls2e22aX75z2zUoWo2KJsM
@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 5 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 3dc730f and 0325b7b.

Files selected for processing: 23

  • docs-site/src/content/docs/api/E2E.Engine/EngineInitInfo.md
  • docs-site/src/content/docs/api/E2E.Engine/EnginePrepareInfo.md
  • docs-site/src/content/docs/api/E2E.Engine/EngineStartOptions.md
  • docs-site/src/content/docs/api/E2E/LaunchOptions.md
  • docs-site/src/content/docs/docs/core.mdx
  • docs-site/src/content/docs/reference/engine.mdx
  • docs-site/src/content/docs/reference/errors.mdx
  • skills/e2e-dotnet/SKILL.md
  • skills/e2e-dotnet/references/host.md
  • src/E2E/Core/Launch.cs
  • src/E2E/Engine/IEngine.cs
  • src/E2E/Engine/Manifest.cs
  • src/E2E/Engine/WebEngine.Leases.cs
  • src/E2E/Engine/WebEngine.cs
  • src/E2E/Run/Budget.cs
  • src/E2E/Run/E2ESession.cs
  • src/E2E/Run/OpenSession.cs
  • src/E2E/Run/PreparedEngines.cs
  • src/E2E/Run/RedactOpening.cs
  • src/E2E/Run/Standalone.cs
  • tests/E2E.Tests/Core/CoreTests.cs
  • tests/E2E.Tests/Engine/DefineEngineTests.cs
  • tests/E2E.Tests/OpenSession/OpenHostTests.cs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ls2e22aX75z2zUoWo2KJsM
@kblok
kblok merged commit 6f52e30 into main Nov 16, 2026
5 of 6 checks passed
@kblok
kblok deleted the fix/1678-core-closed-session-headed branch November 16, 2026 18:56
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.

Core: closed-session error, engine fixture-name rule, and Headed launch option (upstream #1734)

2 participants