# fix\(server\): text-only browser snapshots no longer hang on hidden tabs · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/4291ee611b7ac3bc9adca57fa133d2e163f29e51)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 4291ee611b7ac3bc9adca57fa133d2e163f29e51

Requested commit: 4291ee611b7ac3bc9adca57fa133d2e163f29e51

Commit: 4291ee611b7ac3bc9adca57fa133d2e163f29e51

Tree: 6a93ae81e719833fedcd7cd6742f08ed4bf55ef0

Author: Byntham

Committer: Byntham

## Message

```
fix(server): text-only browser snapshots no longer hang on hidden tabs

preview_snapshot always captured a screenshot, even when the agent asked
for neither includeImage nor save, which is the default. A desktop tab the
Browser panel is not showing draws no frames, so Page.captureScreenshot
never answers and the whole snapshot failed after 10 seconds, while the
text reads it waited on had finished long before.

The tool now asks the host for a screenshot only when it will show or save
one. Without it, the snapshot skips the capture and the screencast pause
around it, and the result has no screenshot field.

Refs #16567

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

- [8cd561ef6f8d09e22b50429982acaf1e9b896086](https://git.cafe/pingdotgg/t3code/commit/8cd561ef6f8d09e22b50429982acaf1e9b896086?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/4291ee611b7ac3bc9adca57fa133d2e163f29e51?format=markdown)
