chore(v4): Disable Amazon Q in Code Editor for SMAI + SMUS - #1289
Open
marfriaz wants to merge 1 commit into
Open
chore(v4): Disable Amazon Q in Code Editor for SMAI + SMUS#1289marfriaz wants to merge 1 commit into
marfriaz wants to merge 1 commit into
Conversation
Contributor
|
Please wait for 4.4 PR close and make the change to 4.5 template following https://build.amazon.com/7965453141 |
Description: Disable (do not uninstall) the amazon-q-vscode VS Code extension in Code Editor by passing --disable-extension amazonwebservices.amazon-q-vscode to the sagemaker-code-editor launch in both start scripts: - start-code-editor (SMAI) - start-sagemaker-ui-code-editor (SMUS) The flag is added to every launch invocation (persistent, recovery, and default settings-folder paths) so Q is disabled on both surfaces. The extension remains installed on disk.
marfriaz
force-pushed
the
marfriaz/disable-q-code-editor-smai-smus
branch
from
August 6, 2026 17:25
6d660fc to
cdee537
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Disable (do not uninstall) the
amazon-q-vscodeVS Code extension in Code Editor via the VS Codeextensions.allowedpolicy incode_editor_machine_settings.json. That settings file is copied into both the SMAI (sagemaker-code-editor-server-data) and SMUS (sagemaker-ui-code-editor-server-data) server-data dirs, so this single edit disables Q on both surfaces. The extension stays installed on disk and can be re-enabled by setting the value totrueor removing the key.This mirrors the intent of #1286 (which disabled the JupyterLab gen-AI Q extension); this is the Code Editor / VS Code equivalent. It supersedes #1255, which removed Q from the SMUS manifest only (uninstall, SMUS-only).
Type of Change
Release Information
Does this change need to be included in patch version releases? By default, any pull requests will only be added to the next SMD image minor version release once they are merged in template folder. Only critical bug fix or security update should be applied to new patch versions of existed image minor versions.
If yes, please explain why:
N/A — template-only change; applies to the next minor image release and onward, no patch backport.
How Has This Been Tested?
code_editor_machine_settings.jsonis valid JSON.Dockerfilethat this settings file is copied into both server-data dirs (sagemaker-code-editor-server-dataandsagemaker-ui-code-editor-server-data), so the policy applies to both SMAI and SMUS.truere-enables it. Note:extensions.allowedrequires the Code Editor fork to be VS Code ≥ 1.96 — please confirm the currentsagemaker-code-editorversion honors it.Checklist:
Test Screenshots (if applicable):
Related Issues
Additional Notes
Single-file, reversible change. Reverting = set
"amazonwebservices.amazon-q-vscode": trueor remove theextensions.allowedentry.