Skip to content

docs: updates for vars and on-deactivate - #83

Merged
mkenigs merged 3 commits into
mainfrom
agent/activation-vars-plugins-deactivate
Aug 27, 2026
Merged

docs: updates for vars and on-deactivate#83
mkenigs merged 3 commits into
mainfrom
agent/activation-vars-plugins-deactivate

Conversation

@mkenigs

@mkenigs mkenigs commented Aug 27, 2026

Copy link
Copy Markdown
Contributor
  • docs(activation): set [vars] before plugin profile.d scripts
    Flox 1.15.0 sources the interpreter's profile.d scripts, exports the
    manifest's [vars], and only then sources plugin profile.d scripts, so
    plugin scripts can read [vars] entries. Reorder the timeline diagram to
    match and describe the precedence: a plugin's export wins over a
    same-named [vars] entry, and hook.on-activate is the way to override it.

    Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com

  • docs(activation): diagram teardown when the last shell exits
    Two shells can share one activation, and the deactivation section didn't
    say what happens when each of them leaves. Add a sequence diagram and
    prose: profile.deactivate runs for every flox deactivate, the activation
    stays up while another shell is attached, and only the last detach tears
    it down — stopping services, then running hook.on-deactivate in the
    background process.

    Note the same once-per-activation property in the hook.on-activate
    summary, since that is where readers look for what a hook does: the hook
    runs for the first flox activate, and its on-deactivate bookend when the
    last activation detaches.

    Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com

mkenigs and others added 2 commits August 27, 2026 22:17
Flox 1.15.0 sources the interpreter's profile.d scripts, exports the
manifest's [vars], and only then sources plugin profile.d scripts, so
plugin scripts can read [vars] entries. Reorder the timeline diagram to
match and describe the precedence: a plugin's export wins over a
same-named [vars] entry, and hook.on-activate is the way to override it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TaaEqpV6jLfLPJWSXKc7MZ
Two shells can share one activation, and the deactivation section didn't
say what happens when each of them leaves. Add a sequence diagram and
prose: profile.deactivate runs for every flox deactivate, the activation
stays up while another shell is attached, and only the last detach tears
it down — stopping services, then running hook.on-deactivate in the
background process.

Note the same once-per-activation property in the hook.on-activate
summary, since that is where readers look for what a hook does: the hook
runs for the first flox activate, and its on-deactivate bookend when the
last activation detaches.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TaaEqpV6jLfLPJWSXKc7MZ
@mintlify

mintlify Bot commented Aug 27, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
flox 🟢 Ready View Preview Aug 27, 2026, 10:52 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

The plugins concept page reached docs.json without a regeneration, so
the committed llms.txt has been missing it since. check-llms-txt runs on
any PR that touches an .mdx file, so this drift fails CI here.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TaaEqpV6jLfLPJWSXKc7MZ
@mkenigs
mkenigs added this pull request to the merge queue Aug 27, 2026
Merged via the queue into main with commit 892278e Aug 27, 2026
4 checks passed
@mkenigs
mkenigs deleted the agent/activation-vars-plugins-deactivate branch August 27, 2026 23:20
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.

2 participants