mirror of
https://github.com/tester-army/e2e.git
synced 2026-11-21 03:05:26 +08:00
With `open_session {attach: true}` on `e2e mcp`, a coding agent can attach
a session to the test that's paused in an `e2e run` in the server's
directory. The agent gets the same browser or device the test is using, on
the paused screen.
- The session is only detached by `close_session`, so the test stays
paused.
- The session ends when the test is resumed or the run ends. The agent
resumes the test with `e2e run --step next`, or ends the run with
`e2e run --step stop`.
- The session is shown as one step of the test.
- A session also attaches to a test held at a step in an `e2e run --step`
without a terminal. An `e2e run --step` in a terminal doesn't listen for
commands, so a session can't be attached to it.