A step lists the browser tools only if its session holds the desktop's
grant when the step selects its tools. After the server restarts or
unloads a location, the desktop attaches again only once it sees the
session run, about 100 ms after that step selected its tools, so the
step ran without the browser and the model was told it was gone.
- core: the experimental.step.before session hook runs before a step
selects its agent, tools and instructions, as the MCP startup grace
does for servers that are still connecting.
- plugin-browser: a session whose attachment ended is expected. Its next
step waits for the desktop, 2 s at most and once; a step also waits
for an attach that is in flight.