Repository navigation
update: an engine inside a macOS app bundle is left to its app - #2820
Merged
Merged
Conversation
InstallRefusal refused a replacement only for a package-managed path or an unwritable folder. A signed bundle in /Applications is usually writable by the person who installed it, and an explicit `codeaf update` run from an agent's shell inside the desktop app targets the bundled engine, so it could replace a file inside the bundle and break its signature. A target whose path sits inside `*.app/Contents` is now refused with a message that names the app and says to update it there, in the same place as the other refusals, so the launch offer, /update and the installer all answer the same way. CODEAF_NO_UPDATE_CHECK does not refuse: it is a documented switch for the launch check only, and an explicit update still works with it set. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
AbirAbbas
added a commit
that referenced
this pull request
Nov 19, 2026
…ild (#2840) * update: a desktop app's engine is told to update the app, not to rebuild The engine a desktop app carries is built from a bare commit, so `codeaf update` and the chat's /update answered it with the source-build note ("rebuild with make build, or install a release") before the app-bundle refusal from #2820 could be asked. That refusal was unreachable from the shipped app. BundleRefusal is InstallRefusal's answer for a target inside a macOS application bundle, with the wording kept in one place. Both update surfaces ask it before turning a source build away; every other refusal still lives inside the installer. Co-Authored-By: Claude Opus 5.5 <[email protected]> * changelog: update tells a desktop app's engine to update the app Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
AbirAbbas
added a commit
that referenced
this pull request
Nov 23, 2026
… (#2883) app/v3 was landed on dev on 2026-11-11. Five pull requests merged into app/v3 afterwards are now on dev, one commit each in this change: - connect: GitHub is a connector, and it is the Factory's GitHub (app/v3 #2645) - fix(app): connect independent custom providers and revalidate saves (app/v3 #2649) - app: --home is a home the person keeps: other tools' skills, program copies, fence (app/v3 #2819) - update: an engine inside a macOS app bundle is left to its app (app/v3 #2820) - update: a desktop app's engine is told to update the app, not to rebuild (app/v3 #2840) Co-authored-by: Santosh <[email protected]> Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.
What was wrong
update.InstallRefusalrefused an in-place replacement only for a package-managed path or an unwritable folder. A signed macOS application bundle in/Applicationsis usually writable by the person who installed it, and an explicitcodeaf updaterun from an agent's shell inside the desktop app targets the engine the app carries. It could replace a file inside the bundle and break the bundle's signature.Change
AppBundle(path)names the bundle (WorkAF.app) a path sits inside: a folder named*.appthat holdsContents, at any depth, case-insensitively.InstallRefusalrefuses such a target, after the package-manager check and before the writable-folder check. The message names the app and says to update the app (or install a separate codeaf with the usual curl line). The launch offer,/updateand the installer all go throughInstallRefusal, so they answer the same way. The check runs on the canonical path, so a link into a bundle is answered for the file it names.CODEAF_NO_UPDATE_CHECK=1does not makeupdaterefuse. It is a documented switch for the launch check only ("/updateandcodeaf updatestill work"), anyone may set it, and the path check already covers the app's engine. The desktop app's engine is caught by where it lives, not by an environment variable another install could also carry.Validation contract
<anywhere>/X.app/Contents/...is refused even when its folder is writable; the refusal says which app updates it.X.appwithoutContents,X.app.d/Contents, a bare.app), are unchanged.🤖 Generated with Claude Code