Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

test(e2e): run trusted extensions in Linux CI

vastsa6994316e8dab
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0e8ab1d7c..f8bb17d14 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -78,3 +78,41 @@ jobs:
- name: Test
run: cargo test -p host-core --locked
+
+ trusted-extensions-e2e:
+ name: Trusted extensions Electron E2E
+ runs-on: ubuntu-latest
+ timeout-minutes: 30
+ steps:
+ - uses: actions/checkout@v7
+
+ - uses: pnpm/action-setup@v6
+
+ - uses: actions/setup-node@v7
+ with:
+ node-version: 24
+ cache: pnpm
+
+ - uses: dtolnay/rust-toolchain@stable
+
+ - uses: Swatinem/rust-cache@v2
+
+ - name: Install virtual display
+ run: |
+ sudo apt-get update
+ sudo apt-get install --no-install-recommends --yes xvfb
+
+ - name: Install dependencies
+ run: pnpm install --frozen-lockfile
+
+ - name: Build workspace packages
+ run: pnpm build:js
+
+ - name: Build Desktop bundle
+ run: pnpm --filter @pi-desktop/desktop build
+
+ - name: Build host-core
+ run: cargo build -p host-core --locked
+
+ - name: Run trusted extensions E2E
+ run: xvfb-run --auto-servernum pnpm test:e2e:trusted-extensions
diff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.md
index 909af72e6..cb5d66a1b 100644
--- a/docs/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/spec/06-delivery/04-e2e-test-plan.md
@@ -15846,7 +15846,8 @@ plugin-form fixtures in an isolated temporary directory at runtime.
- **Acceptance**: B (model config), E (tools & permissions), F (persistence),
G (plugins), Security, Quality
- **Milestone**: Post-MVP (R7 v1)
-- **Status**: Automated scenario (`pnpm test:e2e:trusted-extensions`) with local
+- **Status**: Runs in the Linux CI integration candidate through
+ `pnpm test:e2e:trusted-extensions` under Xvfb, using local
synthetic OAuth credentials: the API-key and OAuth declared rows, permission
projection, Settings sign-in picker, Host-rendered device-code and secret
prompt, encrypted-credential handoff, refresh, model request auth,