← All problems
Developer tools Observed November 13, 2026

A pre-opened browser tab can go blank when an agent chat begins

A ZCode desktop user reports that an embedded browser tab keeps its tab shell but loses the loaded page when the first message starts a new chat, leaving the agent without the intended page context.

What someone actually noticed

The reporter describes opening a website in ZCode desktop's built-in browser before sending the first message in a new chat. After that message, the tab remains visible but its page becomes blank and its URL is empty. The agent's first-turn browser context consequently has no page to inspect. The reporter also says switching chats can trigger the same empty-URL restore.

The issue includes reproduction steps and logs, plus the reporter's proposed explanation involving an unpersisted tab URL during webview rebind. That diagnosis is the reporter's analysis, not a confirmed maintainer finding. When observed, the issue was open and its only reply was an automated acknowledgement.

Read the original signal: ZCode feedback GitHub issue reporting an embedded browser restore failure

Ways to solve it

Without new software, open a harmless test page in the built-in browser, send the first chat message, and manually check the URL and what the agent can actually see. Repeat after switching chats; record the version and steps for a product bug report. The reporter suggests having the agent open the page itself in the first message or re-entering the URL as temporary workarounds.

If the same transition repeatedly regresses during releases, automate that exact before-and-after check inside the team's existing desktop test suite. Limit any capture to a disposable fixture, and treat a failure as a signal to fix the host app rather than as a promise to recover lost browsing state.

A small app you could build

Browser Handoff Probe

A small regression test harness for desktop agent teams that checks whether a user-opened page survives the transition from a draft chat into the agent's first turn.

Who might use it: Teams building desktop agents with embedded browser tabs

  1. Open a disposable test page in an embedded tab before the first message
  2. Record the tab URL and a harmless page marker before and after chat creation
  3. Flag blank restores or missing first-turn context with a short reproducible trace
  4. Repeat the check on a chat switch without capturing real browsing content

What to verify before building

  • Reproduce the reporter's steps on the cited desktop version and check a newer version before claiming the bug still exists.
  • Ask desktop-agent maintainers whether their existing tests cover browser tabs opened before a first message and after chat switches.
  • Compare a manual fixture checklist with an automated probe across deliberate blank-restore and successful-restore cases; check both URL retention and agent visibility.

Reality check

This is one report about one ZCode desktop version, not evidence that other products share the defect or would buy a test tool. The reporter's proposed cause has not been confirmed by a maintainer, and a native fix plus an ordinary product regression test may be simpler than a separate harness. A URL check alone cannot prove that full page state, authentication or agent access survived.

An observation is not market validation. Check other reports and talk to the people who experience this before committing more than a tiny experiment.