Skip to content

[CI only] upstream #7817: fix(pi): respect per-agent disabled state#41

Closed
bbingz wants to merge 3 commits into
mainfrom
fix/pi-disabled-extensions
Closed

[CI only] upstream #7817: fix(pi): respect per-agent disabled state#41
bbingz wants to merge 3 commits into
mainfrom
fix/pi-disabled-extensions

Conversation

@bbingz

@bbingz bbingz commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Exact-head CI verification for stablyai#7817. This PR is not intended to merge and will be closed after checks complete.

bbingz and others added 3 commits July 10, 2026 18:01
… extensions

When `agentStatusHooksEnabled` was true, Orca would still install the
managed `orca-*.ts` extension files into `~/.pi/agent/extensions` (and the
OMP equivalent) even if the user had explicitly disabled the Pi agent in
Settings > Agents.

This happened because `buildPtyHostEnv` defaulted `piAgentKind` to "pi"
for nearly all local PTY spawns (everything that was not OMP) and would
unconditionally call `piTitlebarExtensionService.buildPtyEnv` as long as
the global hooks flag was set. There was no check against the per-agent
`disabledTuiAgents` list from user settings.

We now guard both the Pi and OMP extension installation paths with
`isTuiAgentEnabled(...)`, and forward `disabledTuiAgents` from settings in
all three call sites of `buildPtyHostEnv`.

Fixes stablyai#7814
Regression tests for stablyai#7814 / stablyai#7817: with global agent status hooks on,
disabledTuiAgents must prevent managed orca-*.ts extension install into
~/.pi and ~/.omp.
@bbingz bbingz closed this Jul 13, 2026
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