Skip to content

The macOS app now asks before editing your shell startup files.…#455

Merged
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync
Jul 3, 2026
Merged

The macOS app now asks before editing your shell startup files.…#455
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync

Conversation

@inkeep-oss-sync

Copy link
Copy Markdown
Contributor

The macOS app now asks before editing your shell startup files. Putting ok on your PATH used to happen silently on first launch — a managed block appended to ~/.zshrc / ~/.bash_profile / fish's conf.d. That write is now a pre-checked "Add the ok command to your terminal" toggle in the first-launch dialog, and nothing touches your shell config if you uncheck it. Declining only affects ok typed in an external terminal: the app's built-in terminal now has ok available regardless, and MCP wiring and "Open with AI" launches never depended on it. Decisions are recorded in path-install.json; machines that already have the managed block are treated as consented (no re-prompt, block left in place), deleting the block still opts out permanently, and a declined install can be re-run any time from File → Set up OpenKnowledge integrations… (the renamed "Configure AI tool integrations…" item).

…) (#2405)

OK Desktop silently appended a managed block to ~/.zshrc /
~/.bash_profile / fish conf.d on first packaged launch. The rc-file
append is now gated on explicit consent, folded into the existing
first-launch "Add OpenKnowledge to your AI tools" dialog as a distinct
pre-checked toggle — making that dialog's PATH disclosure truthful.

- path-install.json gains an additive consent field (version stays 1);
  startup appends only on a recorded grant or grandfather evidence
  (healthy managed block on disk => stamped consented, no re-nag).
- OK-owned steps (~/.ok/bin symlinks, ~/.ok/env.sh) stay eager;
  delete-the-block opt-outs and self-heal are preserved.
- Confirm handler finalizes the PATH decision after editor writes and
  before the MCP marker, so a failed rc write defers the marker
  (same-boot retry, next-boot re-fire).
- Built-in terminal prepends ~/.ok/bin in buildShellEnv, so declining
  only affects ok in external terminals; dialog warning is scoped to
  exactly that.
- File-menu re-trigger renamed to "Set up OpenKnowledge integrations…".
- Consent decisions emit path-install-consent-granted/-declined events.
- Docs: what-open-knowledge-writes reflects the consent gate.

Spec: specs/2026-07-02-shell-path-install-consent/SPEC.md
GitOrigin-RevId: 0902459b1dd53bf87ea906b930c1a2e6bc03bd59

@inkeep-internal-ci inkeep-internal-ci Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval from agents-private public-mirror-sync (run: https://github.com/inkeep/agents-private/actions/runs/28634201975). Source of truth is the monorepo; direct edits on inkeep/open-knowledge are overwritten on next sync.

@inkeep-oss-sync inkeep-oss-sync Bot merged commit d27f3ae into main Jul 3, 2026
@inkeep-oss-sync inkeep-oss-sync Bot deleted the copybara/sync branch July 3, 2026 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant