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
Scope google_genai snippet markers to the excerpted code (#346)
The docs page for the Google GenAI plugin pulled four of these snippets
with `selectedLines` ranges that started partway into the file, so
snipsync rendered each one with a leading `# ...` elision marker. The
marker also sits at column 0, which zeroes out the common indent prefix
and suppresses snipsync's dedenting, so the worker excerpts rendered
indented as well.
Move the SNIPSTART/SNIPEND markers to wrap exactly the code the page
shows, so the page can drop `selectedLines` entirely:
- tools/run_worker.py: the Worker construction with its activity
- vertex_ai/run_worker.py: the vertexai=True client and plugin
- mcp/run_worker.py: echo_session through the plugin registration
- streaming/run_workflow.py: consume() through the Client.connect that
installs the Pydantic data converter
The streaming range was also wrong, not just offset: it began at a
dangling `if` inside consume() and omitted the stream.subscribe() call
that the surrounding prose describes.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments