Open Source
Shaping the tools I use every day, one pull request at a time
A hand-picked selection: only the contributions worth reading about, not every merged pull request. Articles about Magento and Adobe Commerce are on the blog.
Expand the Varnish tracking parameter strip list — on GitHub
Marketing and tracking query parameters do not change page content, but each value created its own full page cache entry, which lowered the hit ratio. This backport of magento/magento2#40656 adds more parameters to the vcl_recv strip list in the varnish4.vcl to varnish7.vcl templates and to Identifier::getMarketingParameterPatterns(), so the PHP cache strips the same list.
Fix three agent runner defects in OpenCode, Codex and Claude sessions — on GitHub
When opencode serve never printed its URL, the runner kept talking to a port nobody might have bound. The Codex RPC dropped responses with string JSON-RPC ids, which the spec allows, so those requests never settled. Claude’s sendMessage reported success after the child had already exited. The session now fails fast with a clear error, numeric string ids settle their request, and stdin counts as closed once the child exits.
Stream assistant text into the cockpit as it is generated — on GitHub
Claude Code ran without --print and --include-partial-messages, so the cockpit only showed a reply once the whole block was complete, 17 to 20 seconds into a 300-word answer. Now content_block_delta frames map to item.delta events on the same item id the final block later completes, and text reaches the screen seven to eight seconds before the block finishes, with no cockpit change needed.
Fix the escaping example in the view models guide — on GitHub
Official docs showed $block->escape…() for output escaping and had the @var annotation the wrong way round. Documentation is copy-pasted into production more often than anyone admits.
Install ps so Magento integration tests stop crashing — on GitHub
Without ps in the image, Magento’s memory estimation fell through to its Windows code path and died with sh: tasklist.exe: not found. A genuinely great error message to debug on Linux.
Correct the documented PHP compatibility range — on GitHub
composer.json and reality both said PHP 8.1 worked; the README still said otherwise, and teams believe the README.
Fix MAGENTO_BACKEND_BASE_URL being ignored — on GitHub
Admin steps used amOnPage, which ignores a separate backend domain, so anyone running the admin on its own host could not run the suite. Switched to amOnUrl and put URL resolution in one class instead of five.
Rewrite the routing guide around ActionInterface — on GitHub
Official 2.4 documentation still taught the controller style the core had just moved away from. Ported the material from my DevBlog article on controller decomposition, with a routing flow diagram and the action interfaces developers actually need.
Generate PhpStorm URN mappings relative to the project root — on GitHub
The URN generator wrote absolute filesystem paths into .idea/misc.xml, so committing that file broke autocompletion for every other developer on the team.
Only merged work is listed here, and only the parts worth a comment — the full history, including everything still in review, lives on GitHub .
Auth::login()stored the authenticated user in the admin session beforeprocessLogin()calledregenerateId(). PHP writes the current session data under the old ID before switching, so the pre-login session ID stayed authenticated after login.processLogin()now takes the user out of the session before regenerating the ID and sets it again afterwards.