The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(build): stop the runtime install stamp from staling web/desktop
ethernetb3618bda35be
diff --git a/scripts/build/freshness.mjs b/scripts/build/freshness.mjsindex 0f970daef17..5d9e244054c 100644--- a/scripts/build/freshness.mjs+++ b/scripts/build/freshness.mjs@@ -44,7 +44,9 @@ export function sourceHash(source, product) {workspace, 'apps/shared', 'package.json', 'package-lock.json', '.npmrc', 'pm/lock.json','scripts/build','scripts/generate-icons.mjs', 'scripts/generate_icons.py',- 'assets', 'pyproject.toml', 'uv.lock', 'install-stamp.json',+ // The root install-stamp.json is runtime identity rewritten after every install; desktop's+ // baked stamp is a prepared input.+ 'assets', 'pyproject.toml', 'uv.lock',], name => {// Build scripts are inputs; workspace build directories are outputs.const parts = name.split('/')diff --git a/tests-js/product-builders.test.mjs b/tests-js/product-builders.test.mjsindex 4ad12cf4600..7fb47f4f646 100644--- a/tests-js/product-builders.test.mjs+++ b/tests-js/product-builders.test.mjs@@ -237,6 +237,9 @@ test('built web freshness follows shared sources and build inputs, not mtimes orexpect(productCurrent({ source, product: 'web', out })).toBe(true)put(source, 'web/node_modules/.tmp/tsbuildinfo', 'generated')expect(productCurrent({ source, product: 'web', out })).toBe(true)+ // Install completion rewrites the runtime identity after building products.+ put(source, 'install-stamp.json', '{"builtAt": "later"}')+ expect(productCurrent({ source, product: 'web', out })).toBe(true)put(icons, 'web/public/favicon.ico', 'changed prepared icon')expect(productCurrent({ source, product: 'web', out })).toBe(false)await buildWeb({ source, icons, out })