Repository navigation
fix: review agent app requests before first use - #512
Merged
Merged
Conversation
Signed-off-by: ahmad-ajmal <ahmadajmal1514@gmail.com>
ahmad-ajmal
force-pushed
the
fix/trigger-approval-modal
branch
from
October 29, 2026 09:43
013a692 to
1e6409e
Compare
ahmad-ajmal
pushed a commit
that referenced
this pull request
Nov 19, 2026
fix: review agent app requests before first use
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Move Agent App request approval to a visible review before first use and after new or changed request definitions are delivered. The app runs in the background while the user reviews its requests.
Why
An app could appear broken because a request was refused pending an approval the user did not know was needed. Users now see the review before use and receive actionable feedback if a later request is blocked.
Legacy per-app booleans do not identify reviewed definitions, so existing apps receive one UI review. The agent-facing approval action, chat consent-question runs and creation/promotion pre-approval are removed. Bridge authentication, capabilities, cooldowns and development-environment deferral remain enforced. Earlier blocked requests are never automatically replayed after approval.
How to test
Validation
tsc --noEmit, Vite production build andgit diff --checkpass. Earlier data-safety acceptance passed in a disposable profile.Latest feedback screenshots
The first seven captures show the running CraftBot UI with disposable test apps/data. The two phone captures use the automated responsive fixture. Images live on the separate screenshots branch and are not part of the source diff.
Blocked-request feedback, banners and permission management (9 screenshots)
Blocked request while viewing another chat
Four refused fires produced one actionable notification.
Review opened from the notification
Review requests opened the correct Expenses Tracker dialog.
Permission banner in the chat side panel
The app remains usable while its requests are off.
Before approval
The local-only QA app shows the banner while requests are off.
After approval
The banner disappears once all requests are approved.
Saved approval confirmation
The running app confirms only that permission was saved. The banner disappears, and earlier blocked actions require a new attempt.
Permissions remain accessible from the app menu
Review requests remains available after the banner disappears.
Notification at phone width
Responsive fixture: the warning and Review requests action fit at 390px; 320px is also tested.
Approved app panel at phone width
Responsive fixture: the approved app keeps its contents and no longer shows the permission banner.
Earlier consent-flow screenshots and live validation
Live verification used the real CraftBot backend, PocketBase app, and configured model in an isolated profile:
The review modal also explains that app requests can start agent work and use connected services, including while the app is not being viewed.
Screenshot evidence
Captures use disposable local test data. The desktop and phone scrolling screenshots show the rebuilt focus fix.
Marketplace first-launch review
The installed app lists both requests before they can run.
Native import requires fresh approval
The imported ZIP contained publisher approval data; the acquired app still required a new user decision.
New and changed requests
The review distinguishes already allowed, new and changed definitions.
Approved request completes
Earlier live execution verified that an allowed request can be claimed and completed by CraftBot. The new approval notification confirms permission was saved; an individual action still needs to be attempted and can succeed or fail independently.
Thirty requests on desktop
The list scrolls to request 30 while both decision buttons remain outside the scrolling area.
Thirty requests at phone width
At 390 x 844, the final request and expanded instructions are reachable and the decision buttons remain visible.
Supersedes #510 after renaming the source branch to fix/trigger-approval-modal.