feat: add code-mode sandbox command for direct CLI execution of Pytho… - #39
Conversation
…n scripts and inline code
There was a problem hiding this comment.
Code Review
This pull request introduces a new sandbox command to the code-mode CLI, enabling direct execution of Python scripts or inline code against a Looker instance, and updates the documentation and tests accordingly. The feedback highlights a few important improvements: using Python's ast module instead of a naive regex to safely rewrite sdk. attribute lookups without corrupting string literals, explicitly specifying encoding="utf-8" when reading files to avoid platform-specific decoding issues, and defensively checking if ctx is None before accessing its attributes to prevent potential runtime errors.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
…rewriting and improve file handling and context validation
…n scripts and inline code