paritytech / paritytech/host-rust-core
truapi-host: show permission and confirmation prompts inside the product
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 10
- Forks
- 3
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 148
Description
Part of #517.
Context
Confirmations render in the terminal today, and truapi-host dev auto-approves every one of them. A product developer therefore never sees what a user sees, and code that mishandles a denied permission still looks correct locally. Auto-approval should be the shortcut, not the whole experience.
The CLI already serves the bridge the product loads, so it can also draw host-owned UI into the page, the way a mobile host draws its own sheet over a product.
Required behavior
- The bridge can render permission and confirmation prompts as an overlay in the product page, owned by the host and not by the product.
- Prompts sit close enough to the mobile hosts that a developer feels the same interruption, including denial.
- Manual approval is the default for those prompts; auto-approve stays opt-in for scripted runs.
- The terminal transcript still records every request, so
--scriptand CI runs are unaffected. - Products with no standing grant get the full prompt path, which is what makes this useful for developers outside the trusted set.
Related: docs/rfcs/0002-permission-model.md.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with truapi-host dev and the related docs/rfcs/0002-permission-model.md to understand the existing terminal prompts, grants, and auto-approval path. Trace how the bridge serves the product page and how --script records requests. Done means host-owned permission and confirmation overlays support manual approval and denial, while scripted runs remain opt-in auto-approved and the terminal transcript still records every request.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- cli, frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100