You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MCP: screenshot right after set_option returns the frame from before the change #599
Right after set_option changes the theme, the MCP screenshot tool
returns the frame from before the change. The next screenshot shows the new
theme. set_option had already answered success, and list_options and
other calls in between reported the new value, so the setting was applied
but not yet drawn.
Seen 3 times out of 3, with the window unfocused each time:
on an isolated dev instance (TERMHERD_DATA_DIR and TMPDIR throwaways,
dev fixture, mcp.attach): dark → light, then light → nord, with a list_sessions or two snapshot calls between set_option and screenshot;
on the release app, driven from a session it hosts: dark → light.
Expected
A screenshot taken after set_option has answered shows the change, as the
calling rule "act, then observe" assumes. An agent checking a theme or colour
change otherwise reads the old frame and concludes the change did not land.
Steps to reproduce
Run an isolated instance with the bridge attached
(docs/agents/running.md, Driving an isolated build from outside).
Leave its window unfocused.
Call set_option with {"id": "theme", "value": "light"}.
Call screenshot: the chrome is still the previous theme.
Call screenshot again: the chrome is light.
Guess (unverified)
An idle, unfocused window draws no new frame until an event arrives, and the
screenshot request is that event: it captures the last presented frame and
triggers the redraw that the next capture sees. The idle-window capture
latency of #128 may share the cause.
Activity