Skip to content

feat: add code-mode sandbox command for direct CLI execution of Pytho… - #39

Merged
bwebs merged 2 commits into
mainfrom
bryan/code-mode-sandbox
Jun 13, 2026
Merged

feat: add code-mode sandbox command for direct CLI execution of Pytho…#39
bwebs merged 2 commits into
mainfrom
bryan/code-mode-sandbox

Conversation

@bwebs

@bwebs bwebs commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

…n scripts and inline code

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread lkr/codemode/main.py Outdated
Comment thread lkr/codemode/main.py
Comment thread lkr/codemode/main.py
…rewriting and improve file handling and context validation
@bwebs
bwebs merged commit f7fc39b into main Jun 13, 2026
1 check passed
@bwebs
bwebs deleted the bryan/code-mode-sandbox branch June 13, 2026 01:06
bwebs added a commit that referenced this pull request Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant