<feed xmlns='http://www.w3.org/2005/Atom'>
<title>claude-plugins-official.git/plugins/security-guidance/tests/test_bootstrap_spawn_cwd.py, branch bump/cloud-sql-sqlserver</title>
<subtitle>Official Claude Code plugin directory
</subtitle>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/'/>
<entry>
<title>security-guidance: keep pip's downloads out of the system temp dir</title>
<updated>2026-11-03T17:54:56+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-11-03T17:21:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=1b445c78f3a95d12be56b9386e668aef863f5c24'/>
<id>1b445c78f3a95d12be56b9386e668aef863f5c24</id>
<content type='text'>
pip keeps each wheel it downloads in a pip-unpack-* folder under the temp
dir and removes it only on a normal exit. The SDK bootstrap kills pip at
its 120s timeout, so on a slow connection every attempt left its download
in the system temp dir, and attempts repeat while the SDK is missing.

Both pip installs (venv and --target fallback) now run with a temp folder
of their own under the plugin's state dir. It is removed when the attempt
ends, however it ends. A folder left by a bootstrap that was itself killed
is removed by a later bootstrap run.

Refs #6979
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
pip keeps each wheel it downloads in a pip-unpack-* folder under the temp
dir and removes it only on a normal exit. The SDK bootstrap kills pip at
its 120s timeout, so on a slow connection every attempt left its download
in the system temp dir, and attempts repeat while the SDK is missing.

Both pip installs (venv and --target fallback) now run with a temp folder
of their own under the plugin's state dir. It is removed when the attempt
ends, however it ends. A folder left by a bootstrap that was itself killed
is removed by a later bootstrap run.

Refs #6979
</pre>
</div>
</content>
</entry>
<entry>
<title>security-guidance: run SDK bootstrap subprocesses from the state dir</title>
<updated>2026-10-19T17:11:22+00:00</updated>
<author>
<name>Mohamed Hegazy</name>
<email>mhegazy@anthropic.com</email>
</author>
<published>2026-10-19T17:11:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/claude-plugins-official.git/commit/?id=1eee6df1f032b8719fecdd987273d908d168f467'/>
<id>1eee6df1f032b8719fecdd987273d908d168f467</id>
<content type='text'>
`python -c` and `python -m` put the working directory first on the import
path, and hooks run in the user's repository. A repository file named
claude_agent_sdk.py, venv.py or pip.py was imported in place of the real
module by the SessionStart check and the venv build. Run those
subprocesses from the plugin's state dir, and make state_dir() return an
absolute path as its docstring says, so a relative override isn't
resolved twice.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`python -c` and `python -m` put the working directory first on the import
path, and hooks run in the user's repository. A repository file named
claude_agent_sdk.py, venv.py or pip.py was imported in place of the real
module by the SessionStart check and the venv build. Run those
subprocesses from the plugin's state dir, and make state_dir() return an
absolute path as its docstring says, so a relative override isn't
resolved twice.
</pre>
</div>
</content>
</entry>
</feed>
