microsoft / microsoft/vscode

[gh-aw] Protected Files: fix: guard unlockFromCodingAgent against uninitialized input part (fixes #314442)

Open
#326,503 0 comments 0 reactions 0 assignees View on GitHub
agentic-workflows
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

> [!WARNING]
> **Protected Files**
>
> The push to pull request branch was blocked because the patch modifies protected files.
>
> **Target Pull Request:** [#314520](https://github.com/microsoft/vscode/pull/314520)
>
> **Please review the changes carefully** before pushing them to the pull request branch. These files may affect project dependencies, CI/CD pipelines, or agent behaviour.
>
>
> Protected files
>
> - `package.json`
- `CODEOWNERS`
- `package-lock.json`
- `README.md`
- `AGENTS.md`
- `CONTRIBUTING.md`
- `pnpm-lock.yaml`
- [.eslint-plugin-local/code-no-telemetry-common-property.ts](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.eslint-plugin-local/code-no-telemetry-common-property.ts)
- [.agents/skills/launch/SKILL.md](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.agents/skills/launch/SKILL.md)
- [.vscode/launch.json](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.vscode/launch.json)
- [.vscode/tasks.json](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.vscode/tasks.json)
- [.vscode/extensions.json](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.vscode/extensions.json)
- [.vscode/notebooks/endgame.github-issues](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.vscode/notebooks/endgame.github-issues)
- [.vscode/notebooks/my-endgame.github-issues](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.vscode/notebooks/my-endgame.github-issues)
- [.eslint-plugin-local/code-no-direct-gulp-import.ts](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.eslint-plugin-local/code-no-direct-gulp-import.ts)
- [.vscode/extensions/vscode-pr-pinger/package-lock.json](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.vscode/extensions/vscode-pr-pinger/package-lock.json)
- [.vscode/extensions/vscode-pr-pinger/package.json](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.vscode/extensions/vscode-pr-pinger/package.json)
- [.eslint-plugin-local/index.ts](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.eslint-plugin-local/index.ts)
- [.vscode/extensions/vscode-extras/src/npmUpToDateFeature.ts](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.vscode/extensions/vscode-extras/src/npmUpToDateFeature.ts)
- [.devcontainer/README.md](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.devcontainer/README.md)
- [.agents/skills/launch/scripts/launch.sh](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.agents/skills/launch/scripts/launch.sh)
- [.agents/skills/launch/scripts/monaco-paste.sh](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.agents/skills/launch/scripts/monaco-paste.sh)
- [.devcontainer/Dockerfile](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.devcontainer/Dockerfile)
- [.vscode/extensions/vscode-selfhost-test-provider/package-lock.json](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.vscode/extensions/vscode-selfhost-test-provider/package-lock.json)
- [.vscode/extensions/vscode-selfhost-test-provider/package.json](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.vscode/extensions/vscode-selfhost-test-provider/package.json)
- [.vscode/settings.json](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.vscode/settings.json)
- [.scratch-theme-test/sample.cpp](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.scratch-theme-test/sample.cpp)
- [.scratch-theme-test/sample.css](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.scratch-theme-test/sample.css)
- [.scratch-theme-test/sample.go](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.scratch-theme-test/sample.go)
- [.scratch-theme-test/sample.json](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.scratch-theme-test/sample.json)
- [.scratch-theme-test/sample.md](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.scratch-theme-test/sample.md)
- [.scratch-theme-test/sample.py](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.scratch-theme-test/sample.py)
- [.scratch-theme-test/sample.sh](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.scratch-theme-test/sample.sh)
- [.scratch-theme-test/sample.ts](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.scratch-theme-test/sample.ts)
- [.eslint-plugin-local/code-no-new-javascript-files.ts](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.eslint-plugin-local/code-no-new-javascript-files.ts)
- [.vscode/notebooks/api.github-issues](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.vscode/notebooks/api.github-issues)
- [.eslint-plugin-local/code-no-untyped-meta-access.ts](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.eslint-plugin-local/code-no-untyped-meta-access.ts)
- [.vscode/cglicenses.schema.json](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.vscode/cglicenses.schema.json)
- [.eslint-plugin-local/code-no-deprecated-copilot-sdk.ts](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.eslint-plugin-local/code-no-deprecated-copilot-sdk.ts)
- [.devcontainer/devcontainer-lock.json](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.devcontainer/devcontainer-lock.json)
- [.devcontainer/devcontainer.json](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.devcontainer/devcontainer.json)
- [.eslint-plugin-local/package.json](https://github.com/microsoft/vscode/blob/fix/chat-widget-unlock-input-guard-314442-8712a3e425881064/.eslint-plugin-local/package.json)
>
>

---

Apply the patch after review

The patch is available in the workflow run artifacts:

**Workflow Run:** [View run details and download patch artifact](https://github.com/microsoft/vscode-engineering/actions/runs/29670597881)

```sh
# Download the artifact from the workflow run
gh run download 29670597881 -n agent -D /tmp/agent-29670597881

# Apply the patch to the pull request branch
git fetch origin fix/chat-widget-unlock-input-guard-314442-8712a3e425881064
git checkout fix/chat-widget-unlock-input-guard-314442-8712a3e425881064
git am --3way /tmp/agent-29670597881/aw-microsoft-vscode-fix-chat-widget-unlock-input-guard-314442-8712a3e425881064.patch
git push origin fix/chat-widget-unlock-input-guard-314442-8712a3e425881064
```

To route changes like this to a review issue instead of blocking, configure `protected-files: fallback-to-issue` in your workflow configuration.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing target pull request #314520 and the patch artifact from workflow run 29670597881, then locate the unlockFromCodingAgent entry point named in the issue title. Confirm that the fix handles an uninitialized input part and validate the result using the checks associated with that pull request.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.