feat(desktop): enable mini-app panels on macOS with escape-test evidence

Open
#115 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
15/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
rust, tauri
Domain
desktop, security

Research direction

Read #85 and the design rows in plans/261202-0003-client-bootstrap/design-feature-matrix.md, then follow plans/261202-0806-keep-all-design-features/plan.md for the desktop shared-file order. Start with tauri.macos.conf.json and identify the #85 escape probes and WKWebView checks to run on a real Mac with host controls. Done requires recording real bundled-asset evidence in plans/EVIDENCE.md, wiring the real route behind its capability, staging verification once that route exists, and Security QA review.

Written by the indexing model from the issue text.

Description

enhancement

Design: board 04 mini-app panel, rows C24, W26, W27, X28 on macOS

#85 enables desktop mini-app panels on Windows first. On macOS the dewee-app handler answers 404 and frame-src stays 'none' until this issue's own evidence exists.

Acceptance criteria

  • A macOS-specific configuration changes only frame-src to the dewee-app://localhost origin, with a test that it differs from the base policy in frame-src alone.
  • Verify the unknowns from the #85 design on WKWebView: the scheme's event.origin, frame-ancestors with a custom scheme, the presence of IPC globals in the subframe, and the postMessage IPC source.
  • Run the full #85 escape probe set on a real Mac on a build that serves bundled assets, with host controls. Record the evidence in plans/EVIDENCE.md.
  • Security QA reviews before app_view_origin returns an origin on macOS.
  • Wired, not fixtures. This issue closes only on a slice wired to the real route it depends on, behind its dark capability id (or its local switch for a client-only feature), and verified on staging once the route exists. A fixture-backed screen satisfies none of the boxes above.

Capability

Same as #85: the native command returns no origin until enabled, so the panel shows the off notice.

Denied, pending and recovery states

Denied or off: the honest off notice. Recovery: N/A.

Parity

Surface Evidence
Gateway API/RPC N/A
CLI N/A
MCP N/A
CCP / RGD / ACP N/A
Dewee client macOS desktop panel
Conversation N/A
Docs docs/MCP.md gate sentence; plans/EVIDENCE.md
Traces N/A

Dependencies

#85 merged (Windows), with a real macOS runner or machine. Same isolation lane as #85; it edits tauri.macos.conf.json and follows the plan's desktop shared-file order.

Rules for this issue

  • The owner kept this feature on 2026-12-02 (DECISIONS.md D23, recorded by the keep-all docs PR #132). Design rows and states are in plans/261202-0003-client-bootstrap/design-feature-matrix.md. The plan is plans/261202-0806-keep-all-design-features/plan.md.
  • Done means wired. This issue closes only with a slice wired to the real route it depends on: the relay route through the web BFF and the desktop host command, or, for a client-only feature, the real native or browser path. The slice runs behind its dark capability id and is verified on staging once the route exists. Fixtures are for tests only. A fixture-backed screen never closes this issue and is never listed in plans/EVIDENCE.md. Until the route merges, the feature renders its gated or dark state.
  • One relay integrator. Only the relay-integrator lane adds ClientMethod entries to CLIENT_METHODS in packages/core/src/protocol.ts, one route at a time in merge order, together with the BFF allowlist entry and the desktop host command. A feature lane does not edit protocol.ts or capabilities.ts. The desktop host's shared files (lib.rs, capabilities/default.json, Cargo.toml, Cargo.lock, build.rs, apps/desktop/src/desktop-session.ts) have one owner at a time, in the order the plan names; a lane puts its commands in its own module and adds only a registration line.
  • Ships dark. The client id below resolves from the server's capability read through the capability map (#135). A feature without both renders its gated or dark state, never sample data presented as real. Where the route belongs to a domain that still awaits server-side relay parity, its relay child flag stays off until that domain's upstream parity work lands (tracked privately).
  • Both hosts. Web/PWA and desktop, en/vi, light/dark, 390/768/1024/1440, keyboard-only.
  • Checks. Typecheck, Biome and focused tests. Tests cover flag off, denied, pending, revocation and recovery.
  • Review. An independent review runs before the PR leaves draft. No auto-merge.
Dominant language
No language data
Stars
1
Forks
2
Avg merge
1h 51m
Merged PRs (30d)
103

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nextlevelbuilder/dewee-desktop-app

All issues in nextlevelbuilder/dewee-desktop-app

Similar issues

More Desktop Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.